Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare devtools_shared for 11.0.0 release. #8313

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions packages/devtools_shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# 10.1.0
* Deprecate `apiGetLastReleaseNotesVersion` in favor of `ReleaseNotesApi.getLastReleaseNotesVersion`.
* Deprecate `apiSetLastReleaseNotesVersion` in favor of `ReleaseNotesApi.setLastReleaseNotesVersion`.
* Deprecate `lastReleaseNotesVersionPropertyName`.
* Deprecate `apiGetBaseAppSizeFile` in favor of `AppSizeApi.getBaseAppSizeFile`.
* Deprecate `apiGetTestAppSizeFile` in favor of `AppSizeApi.getTestAppSizeFile`.
* Deprecate `baseAppSizeFilePropertyName` in favor of `AppSizeApi.baseAppSizeFilePropertyName`.
* Deprecate `testAppSizeFilePropertyName` in favor of `AppSizeApi.testAppSizeFilePropertyName`.
* Deprecate `apiSetActiveSurvey` in favor of `SurveyApi.setActiveSurvey`.
* Deprecate `activeSurveyName`.
* Deprecate `apiGetSurveyActionTaken` in favor of `SurveyApi.getSurveyActionTaken`.
* Deprecate `apiSetSurveyActionTaken` in favor of `SurveyApi.setSurveyActionTaken`.
* Deprecate `surveyActionTakenPropertyName`.
* Deprecate `apiGetSurveyShownCount` in favor of `SurveyApi.getSurveyShownCount`.
* Deprecate `apiIncrementSurveyShownCount` in favor of `SurveyApi.incrementSurveyShownCount`.
# 11.0.0
* **Breaking change:** replace `apiGetLastReleaseNotesVersion` with `ReleaseNotesApi.getLastReleaseNotesVersion`.
* **Breaking change:** replace `apiSetLastReleaseNotesVersion` with `ReleaseNotesApi.setLastReleaseNotesVersion`.
* **Breaking change:** replace `lastReleaseNotesVersionPropertyName`.
* **Breaking change:** replace `apiGetBaseAppSizeFile` with `AppSizeApi.getBaseAppSizeFile`.
* **Breaking change:** replace `apiGetTestAppSizeFile` with `AppSizeApi.getTestAppSizeFile`.
* **Breaking change:** replace `baseAppSizeFilePropertyName` with `AppSizeApi.baseAppSizeFilePropertyName`.
* **Breaking change:** replace `testAppSizeFilePropertyName` with `AppSizeApi.testAppSizeFilePropertyName`.
* **Breaking change:** replace `apiSetActiveSurvey` with `SurveyApi.setActiveSurvey`.
* **Breaking change:** remove `activeSurveyName`.
* **Breaking change:** replace `apiGetSurveyActionTaken` with `SurveyApi.getSurveyActionTaken`.
* **Breaking change:** replace `apiSetSurveyActionTaken` with `SurveyApi.setSurveyActionTaken`.
* **Breaking change:** remove `surveyActionTakenPropertyName`.
* **Breaking change:** replace `apiGetSurveyShownCount` with `SurveyApi.getSurveyShownCount`.
* **Breaking change:** replace `apiIncrementSurveyShownCount` with `SurveyApi.incrementSurveyShownCount`.
* Support Chrome's new headless mode in the integration test runner.
* Add `PreferencesApi` to get and set preference values.
* Deprecate `DTDConnectionInfo` in favor of `DtdInfo` which supports tracking two URIs for DTD to better support web/remote environments.
Expand Down
89 changes: 0 additions & 89 deletions packages/devtools_shared/lib/src/devtools_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,50 +45,6 @@ abstract class PreferencesApi {
static const preferenceKeyProperty = 'key';
}

@Deprecated(
'Use SurveyApi.setActiveSurvey instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const apiSetActiveSurvey = SurveyApi.setActiveSurvey;

@Deprecated(
'Use apiParameterValueKey for the query parameter of the '
'SurveyApi.setActiveSurvey request instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const activeSurveyName = apiParameterValueKey;

@Deprecated(
'Use SurveyApi.getSurveyActionTaken instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const apiGetSurveyActionTaken = SurveyApi.getSurveyActionTaken;

@Deprecated(
'Use SurveyApi.setSurveyActionTaken instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const apiSetSurveyActionTaken = SurveyApi.setSurveyActionTaken;

@Deprecated(
'This query parameter is no longer required for the '
'SurveyApi.setSurveyActionTaken request. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const surveyActionTakenPropertyName = 'surveyActionTaken';

@Deprecated(
'Use SurveyApi.getSurveyShownCount instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const apiGetSurveyShownCount = SurveyApi.getSurveyShownCount;

@Deprecated(
'Use SurveyApi.incrementSurveyShownCount instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const apiIncrementSurveyShownCount = SurveyApi.incrementSurveyShownCount;

abstract class SurveyApi {
/// Sets the active survey value for the DevTools session.
///
Expand All @@ -114,27 +70,6 @@ abstract class SurveyApi {
'${apiPrefix}incrementSurveyShownCount';
}

@Deprecated(
'Use apiParameterValueKey for the query parameter of the '
'ReleaseNotesApi.setLastReleaseNotesVersion request instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const lastReleaseNotesVersionPropertyName = apiParameterValueKey;

@Deprecated(
'Use ReleaseNotesApi.getLastReleaseNotesVersion instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const apiGetLastReleaseNotesVersion =
ReleaseNotesApi.getLastReleaseNotesVersion;

@Deprecated(
'Use ReleaseNotesApi.setLastReleaseNotesVersion instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const apiSetLastReleaseNotesVersion =
ReleaseNotesApi.setLastReleaseNotesVersion;

abstract class ReleaseNotesApi {
/// Returns the last DevTools version for which we have shown release notes.
static const getLastReleaseNotesVersion =
Expand All @@ -145,30 +80,6 @@ abstract class ReleaseNotesApi {
'${apiPrefix}setLastReleaseNotesVersion';
}

@Deprecated(
'Use AppSizeApi.getBaseAppSizeFile instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const apiGetBaseAppSizeFile = AppSizeApi.getBaseAppSizeFile;

@Deprecated(
'Use AppSizeApi.getTestAppSizeFile instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const apiGetTestAppSizeFile = AppSizeApi.getTestAppSizeFile;

@Deprecated(
'Use AppSizeApi.baseAppSizeFilePropertyName instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const baseAppSizeFilePropertyName = AppSizeApi.baseAppSizeFilePropertyName;

@Deprecated(
'Use AppSizeApi.testAppSizeFilePropertyName instead. '
'This field will be removed in devtools_shared >= 11.0.0.',
)
const testAppSizeFilePropertyName = AppSizeApi.testAppSizeFilePropertyName;

abstract class AppSizeApi {
/// Returns the base app size file, if present.
static const getBaseAppSizeFile = '${apiPrefix}getBaseAppSizeFile';
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools_shared/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: devtools_shared
description: Package of shared Dart structures between devtools_app, dds, and other tools.

version: 10.1.0
version: 11.0.0

repository: https://github.com/flutter/devtools/tree/master/packages/devtools_shared

Expand Down
Loading