diff --git a/CHANGELOG.md b/CHANGELOG.md index f93a123c6e9d3..0b066dade9c9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -261,20 +261,29 @@ Updated the Linter to `1.30.0`, which includes changes that These will show up in the lock file on the first run of `dart pub get`. See https://dart.dev/go/content-hashes for more details. +- New flag `dart pub get --enforce-lockfile` will fetch dependencies, but fail + if anything deviates from `pubspec.lock`. Useful for ensuring reproducible runs + in CI and production. - Remove remaining support for `.packages` files. The flag `--legacy-packages-file` is no longer supported. - The client will now default to the `pub.dev` repository instead of `pub.dartlang.org`. - This will cause a change in pubspec.lock. -- Support a new field [`funding`](https://dart.dev/tools/pub/pubspec#funding) in pubspec.yaml. + This will cause a change in `pubspec.lock`. +- Support a new field [`funding`](https://dart.dev/tools/pub/pubspec#funding) in `pubspec.yaml`. - Validate the CRC32c checksum of downloaded archives and retry on failure. - `dart pub add foo:` with an existing dependency will now update the constraint rather than fail. -- Update `dart pub publish` to allow `dependency_overrides` in pubspec.yaml. +- Update `dart pub publish` to allow `dependency_overrides` in `pubspec.yaml`. They will still cause a publication warning. Note that only `dependency_overrides` from the root package effect resolution. - Update `dart pub publish` to require a working resolution. If publishing a breaking release of mutually dependent packages use `dependency_overrides` to obtain a resolution. +- `dart pub add` will now allow adding multiple packages from any source using the same YAML syntax as in `pubspec.yaml`. + + For example: + ``` + $ dart pub add retry:^1.0.0 'dev:foo{"git":"https://github.com/foo/foo"}' + ``` - `dart pub publish` will now give a warning if `dart analyze` reports any diagnostics. - `dart pub get` now fails gracefully when run from inside the pub-cache. - `dart pub publish` now shows the file sizes of large files in your package to diff --git a/DEPS b/DEPS index 68515072d6118..6a842ff1a6867 100644 --- a/DEPS +++ b/DEPS @@ -152,7 +152,7 @@ vars = { "ply_rev": "604b32590ffad5cbb82e4afef1d305512d06ae93", "pool_rev": "1ea5b031cfda37786d305292cb8104dffb45d9ae", "protobuf_rev": "ae90e53cd690edbfc72fa6c293fdb7b4a09ee0a2", - "pub_rev": "6ac42d7644dedfcc500147ab47886eecab4b1b38", # manually rev'd + "pub_rev": "6fdcdd4357645817e7d7027ee2157ed68ef69c53", # manually rev'd "pub_semver_rev": "28159b8c5b96fc2709d0904389d7932880f68659", # b/258766867 "root_certificates_rev": "692f6d6488af68e0121317a9c2c9eb393eb0ee50", "shelf_rev": "1c2104737973715426035c11ba840c7f23d8f186", @@ -176,7 +176,7 @@ vars = { "web_components_rev": "8f57dac273412a7172c8ade6f361b407e2e4ed02", "web_socket_channel_rev": "1b0561cfec8ff7e9465896eb340ea3c382b59393", "WebCore_rev": "bcb10901266c884e7b3740abc597ab95373ab55c", - "webdev_rev": "3ec168f6815af9d5f11278111d147bc82c0755c3", + "webdev_rev": "637b406f325669507b5c1048c19a7c0083c1bd6e", "webdriver_rev": "336dd3d1208d0b390ac437a785a78760ca7cac7d", "webkit_inspection_protocol_rev": "ddb624cd85954dd384056cc253a8fc2b9da5364d", "yaml_edit_rev": "299f74594ff9fda412c1da5c0b5d5231d0c6fc42", diff --git a/sdk/lib/_internal/wasm/lib/class_id.dart b/sdk/lib/_internal/wasm/lib/class_id.dart index 737ce447fedc4..3a412531fb1bb 100644 --- a/sdk/lib/_internal/wasm/lib/class_id.dart +++ b/sdk/lib/_internal/wasm/lib/class_id.dart @@ -28,8 +28,8 @@ class ClassID { external static int get cidInt8ArrayView; @pragma("wasm:class-id", "dart.core#Object") external static int get cidObject; - @pragma("wasm:class-id", "dart.async#_Future") - external static int get cid_Future; + @pragma("wasm:class-id", "dart.async#Future") + external static int get cidFuture; @pragma("wasm:class-id", "dart.core#Function") external static int get cidFunction; @pragma("wasm:class-id", "dart.core#_Function") diff --git a/sdk/lib/_internal/wasm/lib/type.dart b/sdk/lib/_internal/wasm/lib/type.dart index 140030baa4c33..3bb6cef1df274 100644 --- a/sdk/lib/_internal/wasm/lib/type.dart +++ b/sdk/lib/_internal/wasm/lib/type.dart @@ -184,7 +184,7 @@ class _FutureOrType extends _Type { const _FutureOrType(super.isDeclaredNullable, this.typeArgument); _InterfaceType get asFuture => - _InterfaceType(ClassID.cid_Future, isDeclaredNullable, [typeArgument]); + _InterfaceType(ClassID.cidFuture, isDeclaredNullable, [typeArgument]); // Removing a `?` from a type should not require additional normalization. @override @@ -554,9 +554,10 @@ class _TypeUniverse { if (isTopType(typeArgument) || isObjectType(typeArgument)) { return typeArgument; } else if (typeArgument.isNever) { - return _InterfaceType(ClassID.cid_Future, false, [const _NeverType()]); + return _InterfaceType( + ClassID.cidFuture, isDeclaredNullable, [const _NeverType()]); } else if (typeArgument.isNull) { - return _InterfaceType(ClassID.cid_Future, true, [const _NullType()]); + return _InterfaceType(ClassID.cidFuture, true, [const _NullType()]); } bool declaredNullability = diff --git a/tools/VERSION b/tools/VERSION index eac52df6b897e..e834b0eaa8c90 100644 --- a/tools/VERSION +++ b/tools/VERSION @@ -27,5 +27,5 @@ CHANNEL dev MAJOR 2 MINOR 19 PATCH 0 -PRERELEASE 431 +PRERELEASE 432 PRERELEASE_PATCH 0