Skip to content

Commit

Permalink
Version 2.19.0-432.0.dev
Browse files Browse the repository at this point in the history
Merge 28be06f into dev
  • Loading branch information
Dart CI committed Nov 25, 2022
2 parents ae7042b + 28be06f commit eb65e5c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<constraint>` 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
Expand Down
4 changes: 2 additions & 2 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions sdk/lib/_internal/wasm/lib/class_id.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
7 changes: 4 additions & 3 deletions sdk/lib/_internal/wasm/lib/type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion tools/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ CHANNEL dev
MAJOR 2
MINOR 19
PATCH 0
PRERELEASE 431
PRERELEASE 432
PRERELEASE_PATCH 0

0 comments on commit eb65e5c

Please sign in to comment.