diff --git a/CHANGELOG.md b/CHANGELOG.md index 59b4b9f25bb..71cc68712c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,10 @@ [#53005]: https://dartbug.com/53005 +#### `dart:isolate` + +- Added `Isolate.packageConfigSync` and `Isolate.resolvePackageUriSync` APIs. + #### `dart:js_interop` - **JSNumber.toDart and Object.toJS**: @@ -144,10 +148,6 @@ [#51486]: https://github.com/dart-lang/sdk/issues/51486 [#52027]: https://github.com/dart-lang/sdk/issues/52027 -#### `dart:isolate` - -- Added `Isolate.packageConfigSync` and `Isolate.resolvePackageUriSync` APIs. - #### `dart:js_interop` - **Object literal constructors**: diff --git a/sdk/lib/isolate/isolate.dart b/sdk/lib/isolate/isolate.dart index 4f21f3ec517..0f586bf0acc 100644 --- a/sdk/lib/isolate/isolate.dart +++ b/sdk/lib/isolate/isolate.dart @@ -342,7 +342,7 @@ final class Isolate { /// The package configuration file is usually named `package_config.json`, /// and you can use [`package:package_config`](https://pub.dev/documentation/package_config/latest/) /// to read and parse it. - @Since('3.1') + @Since('3.2') external static Uri? get packageConfigSync; /// Resolves a `package:` URI to its actual location. @@ -393,7 +393,7 @@ final class Isolate { /// A program may be run in a way where source files are not available, /// and if so, the returned URI may not correspond to the actual file or /// directory or be `null`. - @Since('3.1') + @Since('3.2') external static Uri? resolvePackageUriSync(Uri packageUri); /// Creates and spawns an isolate that shares the same code as the current