Skip to content

Commit 8d49319

Browse files
authored
Revert "[package_config] Remove support for .packages files. (#2034)" (#2064)
1 parent d3b54e8 commit 8d49319

18 files changed

+1569
-1306
lines changed

pkgs/package_config/CHANGELOG.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
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-
223
## 2.2.0
234

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

pkgs/package_config/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ 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 no longer contains backwards compatible functionality to
25-
work with `.packages` files.
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.

0 commit comments

Comments
 (0)