Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package_config] Remove support for .packages files. #2034

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/package_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
sdk: [3.4, dev]
sdk: [3.7, dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
Expand Down
21 changes: 21 additions & 0 deletions pkgs/package_config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## 2.3.0-wip

- Removes support for the `.packages` file.
The Dart SDK no longer supports that file, and no new `.packages` files
will be generated.
Since the SDK requirement for this package is above 3.0.0,
no supporting SDK can use or generate `.packages`.

- Simplifies API that no longer needs to support two separate files.
- Renamed `readAnyConfigFile` to `readConfigFile`, and removed
the `preferNewest` parameter.
- Same for `readAnyConfigFileUri` which becomes `readConfigFileUri`.
- Old functions still exists as deprecated, forwarding to the new
functions without the `preferNewest` argument.

Also makes `PackageConfig`, `Package` and `LanguageVersion` `@sealed` classes,
in preparation for making them `final` in a future update.

- Adds `PackageConfig.minVersion` to complement `.maxVersion`.
Currently both are `2`.

## 2.2.0

- Add relational operators to `LanguageVersion` with extension methods
Expand Down
5 changes: 2 additions & 3 deletions pkgs/package_config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ The primary libraries of this package are
Just the `PackageConfig` class and other types needed to use
package configurations. This library does not depend on `dart:io`.

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