Skip to content

Commit dce6155

Browse files
authored
[package_config] Remove support for .packages files. (#2034)
1 parent 62bc13b commit dce6155

18 files changed

+1306
-1569
lines changed

pkgs/package_config/CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
## 2.3.0-wip
22

3+
- Removes support for the `.packages` file.
4+
The Dart SDK no longer supports that file, and no new `.packages` files
5+
will be generated.
6+
Since the SDK requirement for this package is above 3.0.0,
7+
no supporting SDK can use or generate `.packages`.
8+
9+
- Simplifies API that no longer needs to support two separate files.
10+
- Renamed `readAnyConfigFile` to `readConfigFile`, and removed
11+
the `preferNewest` parameter.
12+
- Same for `readAnyConfigFileUri` which becomes `readConfigFileUri`.
13+
- Old functions still exists as deprecated, forwarding to the new
14+
functions without the `preferNewest` argument.
15+
16+
Also makes `PackageConfig`, `Package` and `LanguageVersion` `@sealed` classes,
17+
in preparation for making them `final` in a future update.
18+
19+
- Adds `PackageConfig.minVersion` to complement `.maxVersion`.
20+
Currently both are `2`.
21+
322
## 2.2.0
423

524
- Add relational operators to `LanguageVersion` with extension methods

pkgs/package_config/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ The primary libraries of this package are
2121
Just the `PackageConfig` class and other types needed to use
2222
package configurations. This library does not depend on `dart:io`.
2323

24-
The package includes deprecated backwards compatible functionality to
25-
work with the `.packages` file. This functionality will not be maintained,
26-
and will be removed in a future version of this package.
24+
The package no longer contains backwards compatible functionality to
25+
work with `.packages` files.

0 commit comments

Comments
 (0)