@@ -261,20 +261,29 @@ Updated the Linter to `1.30.0`, which includes changes that
261
261
These will show up in the lock file on the first run of ` dart pub get ` .
262
262
263
263
See https://dart.dev/go/content-hashes for more details.
264
+ - New flag ` dart pub get --enforce-lockfile ` will fetch dependencies, but fail
265
+ if anything deviates from ` pubspec.lock ` . Useful for ensuring reproducible runs
266
+ in CI and production.
264
267
- Remove remaining support for ` .packages ` files. The flag
265
268
` --legacy-packages-file ` is no longer supported.
266
269
- The client will now default to the ` pub.dev ` repository instead of ` pub.dartlang.org ` .
267
- This will cause a change in pubspec.lock.
268
- - Support a new field [ ` funding ` ] ( https://dart.dev/tools/pub/pubspec#funding ) in pubspec.yaml.
270
+ This will cause a change in ` pubspec.lock ` .
271
+ - Support a new field [ ` funding ` ] ( https://dart.dev/tools/pub/pubspec#funding ) in ` pubspec.yaml ` .
269
272
- Validate the CRC32c checksum of downloaded archives and retry on failure.
270
273
- ` dart pub add foo:<constraint> ` with an existing dependency will now update
271
274
the constraint rather than fail.
272
- - Update ` dart pub publish ` to allow ` dependency_overrides ` in pubspec.yaml.
275
+ - Update ` dart pub publish ` to allow ` dependency_overrides ` in ` pubspec.yaml ` .
273
276
They will still cause a publication warning.
274
277
Note that only ` dependency_overrides ` from the root package effect resolution.
275
278
- Update ` dart pub publish ` to require a working resolution.
276
279
If publishing a breaking release of mutually dependent packages use ` dependency_overrides `
277
280
to obtain a resolution.
281
+ - ` dart pub add ` will now allow adding multiple packages from any source using the same YAML syntax as in ` pubspec.yaml ` .
282
+
283
+ For example:
284
+ ```
285
+ $ dart pub add retry:^1.0.0 'dev:foo{"git":"https://github.com/foo/foo"}'
286
+ ```
278
287
- ` dart pub publish ` will now give a warning if ` dart analyze ` reports any diagnostics.
279
288
- ` dart pub get ` now fails gracefully when run from inside the pub-cache.
280
289
- ` dart pub publish ` now shows the file sizes of large files in your package to
0 commit comments