PackageTrack
Sign in Get early access

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 2026
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 29
  1. 3.0.0 08 Jun 2026
    Release notes
    • Adds discovery API to find both a configuration and its location:
      findPackageConfigAndFile and findPackageConfigAndUri.
    • 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.
        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.
    Open source →
    Release notes
    • Adds discovery API to find both a configuration and its location: findPackageConfigAndFile and findPackageConfigAndUri.

    • 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.

      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.

    Open source →
  2. 2.2.0 11 Mar 2025
    Release notes
    • Add relational operators to LanguageVersion with extension methods exported under LanguageVersionRelationalOperators.

    • Include correct parameter names in errors when validating the major and minor versions in the LanguageVersion.new constructor.

    Open source →
  3. 2.1.1 11 Dec 2024
    Release notes
    • Require Dart 3.4
    • Move to dart-lang/tools monorepo.
    Open source →
  4. 2.1.0 15 Jun 2022
    Release notes
    • Adds minVersion to findPackageConfig and findPackageConfigVersion which allows ignoring earlier versions (which currently only means ignoring version 1, aka. .packages files.)

    • Changes the version number of SimplePackageConfig.empty to 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.

    Open source →
  5. 2.0.2 13 Sep 2021
    Release notes
    • Update package description and README.
    • Change to package:lints for style checking.
    • Add an example.
    Open source →
  6. 2.0.0 05 Feb 2021
    Release notes
    • Migrate to null safety.
    • Remove legacy APIs.
    • Adds relativeRoot property to Package which controls whether to make the root URI relative when writing a configuration file.
    Open source →
  7. 2.0.0-nullsafety.0 19 Jan 2021 pre-release

    Nothing published for this version

  8. 2.0.0-dev 16 Dec 2020 pre-release

    Nothing published for this version

  9. 1.9.3 26 Mar 2020
    Release notes
    • Fix Package constructor not accepting relative packageUriRoot.
    Open source →
  10. 1.9.2 18 Mar 2020
    Release notes
    • Updated to support new rules for picking package_config.json over a specified .packages.
    • Deduce package root from .packages derived package configuration, and default all such packages to language version 2.7.
    Open source →
  11. 1.9.1 26 Feb 2020
    Release notes
    • Remove accidental transitive import of dart:io from entrypoints that are supposed to be cross-platform compatible.
    Open source →
  12. 1.9.0 26 Feb 2020
    Release notes
    • 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.
    Open source →
  13. 1.1.0 16 Aug 2019
    Release notes
    • 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.
    Open source →
  14. 1.0.5 18 Jul 2018
    Release notes
    • Fix usage of SDK constants.
    Open source →
  15. 1.0.4 17 Jul 2018
    Release notes
    • Set max SDK version to <3.0.0.
    Open source →
  16. 1.0.3 22 Sep 2017
    Release notes
    • Removed unneeded dependency constraint on SDK.
    Open source →
  17. 1.0.2 19 Jul 2017
    Release notes
    • Update SDK constraint to be 2.0.0 dev friendly.
    Open source →
  18. 1.0.1 04 May 2017
    Release notes
    • Fix test to not write to sink after it's closed.
    Open source →
  19. 1.0.0 14 Jun 2016
    Release notes
    • Public API marked stable.
    Open source →
  20. 0.1.5 09 Jun 2016
    Release notes
    • FilePackagesDirectoryPackages.getBase(..) performance improvements.
    Open source →
  21. 0.1.3 20 Aug 2015
    Release notes
    • Invalid test cleanup (to keep up with changes in Uri).
    Open source →
  22. 0.1.1 24 Jun 2015
    Release notes
    • Syntax updates.
    Open source →
  23. 0.0.4 16 Jun 2015

    Nothing published for this version

  24. 0.0.3+1 09 Jun 2015

    Nothing published for this version

  25. 0.0.2 28 May 2015

    Nothing published for this version

  26. 0.0.2+1 28 May 2015

    Nothing published for this version

  27. 0.0.2+2 28 May 2015

    Nothing published for this version

  28. 0.0.2+3 28 May 2015

    Nothing published for this version

  29. 0.0.2+4 29 May 2015

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive