From 3d3a52f704c90940e0c752148767e3d66c6b1c92 Mon Sep 17 00:00:00 2001 From: bkonyi Date: Thu, 3 Dec 2026 16:42:48 +0000 Subject: [PATCH] Prepare `devtools_shared` 15.0.0 for release Bumps `packages/devtools_shared` from `14.0.1` to `15.0.0` to reflect the breaking `ServerApi.handle`, `normalizeVmServiceUri`, and `DevToolsExtensionConfig` changes since `14.0.0`. Updates the `devtools_shared` constraints and unreleased changelogs in `devtools_app_shared` and `devtools_extensions` to `^15.0.0`. --- packages/devtools_app_shared/CHANGELOG.md | 2 +- packages/devtools_app_shared/pubspec.yaml | 2 +- packages/devtools_extensions/CHANGELOG.md | 2 +- packages/devtools_extensions/pubspec.yaml | 2 +- packages/devtools_shared/CHANGELOG.md | 32 +++++++++++++---------- packages/devtools_shared/pubspec.yaml | 2 +- 6 files changed, 23 insertions(+), 19 deletions(-) diff --git a/packages/devtools_app_shared/CHANGELOG.md b/packages/devtools_app_shared/CHANGELOG.md index f12fddc7fd5..d0240881e4b 100644 --- a/packages/devtools_app_shared/CHANGELOG.md +++ b/packages/devtools_app_shared/CHANGELOG.md @@ -18,7 +18,7 @@ found in the LICENSE file or at https://developers.google.com/open-source/licens * Fix `RootInfo.package` to be `null` when the root library is not a `package:` URI, such as the `file:` URI of a Dart CLI app started with `dart run`. Previously it was the scheme of the URI, such as `file:`, which is not a package. -* Updates `devtools_shared` constraint to `^14.0.1`. +* Updates `devtools_shared` constraint to `^15.0.0`. * Deprecate `ServiceManager.connectedAppPackageRoot` in favor of `VmService.rootPackageDirectoryForMainIsolate` from `devtools_shared`. diff --git a/packages/devtools_app_shared/pubspec.yaml b/packages/devtools_app_shared/pubspec.yaml index 5c6312247b4..4248f66f7e6 100644 --- a/packages/devtools_app_shared/pubspec.yaml +++ b/packages/devtools_app_shared/pubspec.yaml @@ -15,7 +15,7 @@ resolution: workspace dependencies: collection: ^1.15.0 dds_service_extensions: ^2.0.0 - devtools_shared: ^14.0.1 + devtools_shared: ^15.0.0 dtd: ^4.0.0 flutter: sdk: flutter diff --git a/packages/devtools_extensions/CHANGELOG.md b/packages/devtools_extensions/CHANGELOG.md index f6d209188be..76d1afdca03 100644 --- a/packages/devtools_extensions/CHANGELOG.md +++ b/packages/devtools_extensions/CHANGELOG.md @@ -9,7 +9,7 @@ found in the LICENSE file or at https://developers.google.com/open-source/licens dropping messages from untrusted origins or unexpected window sources. * The minimum Dart SDK version is bumped to 3.11.0. * The minimum Flutter SDK version is bumped to 3.41.0. -* Updates `devtools_shared` constraint to `^14.0.1`. +* Updates `devtools_shared` constraint to `^15.0.0`. * Add validation for `pubspec.yaml` existence and valid characters in the `config.yaml` `name` field to the `validate` command. * Remove the deprecated `--pwa-strategy` flag from the `build_and_copy` command. diff --git a/packages/devtools_extensions/pubspec.yaml b/packages/devtools_extensions/pubspec.yaml index 66338ab4c25..bdfaaf262b1 100644 --- a/packages/devtools_extensions/pubspec.yaml +++ b/packages/devtools_extensions/pubspec.yaml @@ -18,7 +18,7 @@ executables: dependencies: args: ^2.4.2 - devtools_shared: ^14.0.1 + devtools_shared: ^15.0.0 devtools_app_shared: ^0.5.1 flutter: sdk: flutter diff --git a/packages/devtools_shared/CHANGELOG.md b/packages/devtools_shared/CHANGELOG.md index d8695a94b09..3ca97527974 100644 --- a/packages/devtools_shared/CHANGELOG.md +++ b/packages/devtools_shared/CHANGELOG.md @@ -3,16 +3,26 @@ Copyright 2025 The Flutter Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. --> -# 14.0.1 - -* Track providing package name for DevTools extensions to isolate extension enablement, - deduplication, and asset loading. -* Validated `DevToolsExtensionConfig.version` as a semantic version and used a collision-free - delimiter in `DevToolsExtensionConfig.identifier`. +# 15.0.0 + +* **Breaking change:** Require `POST` (with `devToolsRequestHeader`) or `OPTIONS` + CORS preflight requests and validate `Host`, `Origin`, and `Sec-Fetch-Site` + headers in `ServerApi.handle` to prevent cross-site and DNS rebinding requests, + with optional `disableOriginCheck` and `allowedOrigins` parameters. +* **Breaking change:** Restrict `normalizeVmServiceUri` to allowed VM service + schemes (`http`, `https`, `ws`, `wss`, `sse`, `sses`) and loopback hosts + (`localhost`, `127.0.0.0/8`, `::1`). +* **Breaking change:** Track providing package name for DevTools extensions + (requiring `packageName` in `DevToolsExtensionConfig.parse`) to isolate + extension enablement, deduplication, and asset loading. +* **Breaking change:** Validate `DevToolsExtensionConfig.version` as a semantic + version and use a collision-free delimiter in + `DevToolsExtensionConfig.identifier`. * Validate `rootPath`, `buildVariant`, `configuration`, and `target` parameters in `DeeplinkManager`. -* Add `UniversalLinkSettings.fromErrorJson`, `UniversalLinkSettings.error`, and - `UniversalLinkSettings.error` getter to surface iOS universal link settings errors. +* Add `UniversalLinkSettings.fromErrorJson` and `UniversalLinkSettings.error` + factory constructors, and the `UniversalLinkSettings.error` getter, to surface + iOS universal link settings errors. * `DeeplinkManager` now builds the environment for the `flutter` processes it starts with `getEnvironment()` from `package:unified_analytics`, so `DASH__TOOL` passes on this process's root tool. A known `ide` still overrides @@ -21,10 +31,6 @@ found in the LICENSE file or at https://developers.google.com/open-source/licens `DASH__SUPPRESS_ANALYTICS=true` is now passed on instead of being reset to `false`. * Require `package:unified_analytics` `^8.4.0`. -* Require `POST` (with `devToolsRequestHeader`) or `OPTIONS` CORS preflight - requests and validate `Host`, `Origin`, and `Sec-Fetch-Site` headers in - `ServerApi.handle` to prevent cross-site and DNS rebinding requests, with - optional `disableOriginCheck` and `allowedOrigins` parameters. * Add `devToolsRequestHeader` constant (`X-DevTools-Request`). * Reject `file://` URIs with non-empty hosts (UNC paths), absolute, missing, or non-directory `buildLocation` paths, and symbolic links resolving outside the @@ -33,8 +39,6 @@ found in the LICENSE file or at https://developers.google.com/open-source/licens * Confine `devtoolsOptionsUri` in `api/extensionEnabledState` to currently served extensions, reject symlinked `devtools_options.yaml` files, and prevent recursive directory creation when looking up `devtools_options.yaml`. -* Restrict `normalizeVmServiceUri` to allowed VM service schemes (`http`, `https`, - `ws`, `wss`, `sse`, `sses`) and loopback hosts (`localhost`, `127.0.0.0/8`, `::1`). * Add `ExtensionsApi.vmServiceUriPropertyName`, deprecate `ExtensionsApi.packageRootUriPropertyName`, and resolve the connected application's package root on the server from `vmServiceUri` in diff --git a/packages/devtools_shared/pubspec.yaml b/packages/devtools_shared/pubspec.yaml index c59665c0e46..41a6984cedf 100644 --- a/packages/devtools_shared/pubspec.yaml +++ b/packages/devtools_shared/pubspec.yaml @@ -4,7 +4,7 @@ name: devtools_shared description: Package of shared Dart structures between devtools_app, dds, and other tools. -version: 14.0.1 +version: 15.0.0 repository: https://github.com/flutter/devtools/tree/master/packages/devtools_shared