package_config
Support for reading and writing Dart Package Configuration files.
3.0.0
11M downloads/mo
#18 most downloaded on pub.dev
dart-lang/tools
What this package is like to depend on
Last release 2 months ago
08 Jun 2026
Release timing varies
gaps range from 8 days to 2.5 years
Most releases are documented
notes for 20 of 27 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
29 releases · first in 2015
1 release in the last 12 months
see the full history below
Release timeline
29 releases · May 2015 to Jun 2026Releases
latest 29-
3.0.008 Jun 2026Release notes
Open source →- Adds discovery API to find both a configuration and its location:
findPackageConfigAndFileandfindPackageConfigAndUri. - Removes support for the
.packagesfile.
The Dart SDK no longer supports that file, and no new.packagesfiles
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
readAnyConfigFiletoreadConfigFile, and removed
thepreferNewestparameter. - Same for
readAnyConfigFileUriwhich becomesreadConfigFileUri. - Old functions still exists as deprecated, forwarding to the new
functions without thepreferNewestargument.
MakesPackageConfig,PackageandLanguageVersion@sealedclasses,
in preparation for making themfinalin a future update.
- Renamed
- Adds
PackageConfig.minVersionto complement.maxVersion.
Currently both are2.
Release notes
Open source →-
Adds discovery API to find both a configuration and its location:
findPackageConfigAndFileandfindPackageConfigAndUri. -
Removes support for the
.packagesfile. The Dart SDK no longer supports that file, and no new.packagesfiles 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
readAnyConfigFiletoreadConfigFile, and removed thepreferNewestparameter. - Same for
readAnyConfigFileUriwhich becomesreadConfigFileUri. - Old functions still exists as deprecated, forwarding to the new
functions without the
preferNewestargument.
Makes
PackageConfig,PackageandLanguageVersion@sealedclasses, in preparation for making themfinalin a future update. - Renamed
-
Adds
PackageConfig.minVersionto complement.maxVersion. Currently both are2.
- Adds discovery API to find both a configuration and its location:
-
2.2.011 Mar 2025Release notes
Open source →-
Add relational operators to
LanguageVersionwith extension methods exported underLanguageVersionRelationalOperators. -
Include correct parameter names in errors when validating the
majorandminorversions in theLanguageVersion.newconstructor.
-
-
2.1.111 Dec 2024 -
2.1.015 Jun 2022Release notes
Open source →-
Adds
minVersiontofindPackageConfigandfindPackageConfigVersionwhich allows ignoring earlier versions (which currently only means ignoring version 1, aka..packagesfiles.) -
Changes the version number of
SimplePackageConfig.emptyto the current maximum version. -
Improve file read performance; improve lookup performance.
-
Emit an error when a package is inside the package root of another package.
-
Fix a link in the readme.
-
-
2.0.213 Sep 2021Release notes
Open source →- Update package description and README.
- Change to package:lints for style checking.
- Add an example.
-
2.0.005 Feb 2021Release notes
Open source →- Migrate to null safety.
- Remove legacy APIs.
- Adds
relativeRootproperty toPackagewhich controls whether to make the root URI relative when writing a configuration file.
-
2.0.0-nullsafety.019 Jan 2021 pre-releaseNothing published for this version
-
2.0.0-dev16 Dec 2020 pre-releaseNothing published for this version
-
1.9.326 Mar 2020 -
1.9.218 Mar 2020Release notes
Open source →- Updated to support new rules for picking
package_config.jsonover a specified.packages. - Deduce package root from
.packagesderived package configuration, and default all such packages to language version 2.7.
- Updated to support new rules for picking
-
1.9.126 Feb 2020Release notes
Open source →- Remove accidental transitive import of
dart:iofrom entrypoints that are supposed to be cross-platform compatible.
- Remove accidental transitive import of
-
1.9.026 Feb 2020Release notes
Open source →- Based on new JSON file format with more content.
- This version includes all the new functionality intended for a 2.0.0 version, as well as the, now deprecated, version 1 functionality. When we release 2.0.0, the deprecated functionality will be removed.
-
1.1.016 Aug 2019Release notes
Open source →- Allow parsing files with default-package entries and metadata. A default-package entry has an empty key and a valid package name as value. Metadata is attached as fragments to base URIs.
-
1.0.518 Jul 2018 -
1.0.417 Jul 2018 -
1.0.322 Sep 2017 -
1.0.219 Jul 2017 -
1.0.104 May 2017 -
1.0.014 Jun 2016 -
0.1.509 Jun 2016 -
0.1.320 Aug 2015 -
0.1.124 Jun 2015 -
0.0.416 Jun 2015Nothing published for this version
-
0.0.3+109 Jun 2015Nothing published for this version
-
0.0.228 May 2015Nothing published for this version
-
0.0.2+128 May 2015Nothing published for this version
-
0.0.2+228 May 2015Nothing published for this version
-
0.0.2+328 May 2015Nothing published for this version
-
0.0.2+429 May 2015Nothing published for this version