PackageTrack
Sign in Get early access

build_resolvers

Resolve Dart code in a Builder

3.0.4 2.4M downloads/mo #237 most downloaded on pub.dev dart-lang/build

What this package is like to depend on

Last release 11 months ago

02 Sep 2025

Ships unpredictably

gaps range from 8 days to 12 months

Nearly every release is documented

notes for 84 of 84 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

86 releases · first in 2018

2 releases in the last 12 months

see the full history below

Release timeline

86 releases · Feb 2018 to Sep 2025
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 86
  1. 3.0.4 02 Sep 2025
    Release notes
    • Use build 4.0.0.
    • Use build_runner 2.7.2.
    Open source →
  2. 3.0.3 02 Sep 2025
    Release notes
    • Use build 3.1.0.
    • Use build_runner 2.7.1.
    Open source →
  3. 3.0.2 15 Aug 2025
    Release notes
    • Use build 3.0.2.
    • Use build_runner 2.7.0.
    • Remove unused TransitiveDigestsBuilder.
    • Remove unused deps: convert, crypto.
    Open source →
  4. 3.0.1 07 Aug 2025
    Release notes
    • Use build 3.0.1.
    • Allow analyzer 8.0.0.
    Open source →
  5. 3.0.0 17 Jul 2025
    Release notes
    • Remove unused deps: graphs, logging, stream_transform.
    • Breaking: use the new element2 APIs in analyzer. Builders that do resolution need to switch to the new API, see https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md. For questions please use https://github.com/dart-lang/build/discussions.
    Open source →
  6. 3.0.0-dev.2 16 Jul 2025 pre-release
    Release notes
    • Remove unused deps: graphs, logging, stream_transform.
    Open source →
  7. 3.0.0-dev.1 24 Jun 2025 pre-release
    Release notes
    • Breaking: use the new element2 APIs in analyzer. Builders that do resolution need to switch to the new API, see https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md. For questions please use https://github.com/dart-lang/build/discussions.
    Open source →
  8. 2.5.4 23 Jun 2025
    Release notes
    • Use build_runner_core 9.1.2.
    Open source →
  9. 2.5.3 20 Jun 2025
    Release notes
    • Use build_runner_core 9.1.1.
    Open source →
  10. 2.5.2 18 Jun 2025
    Release notes
    • Simplify warnings for outdated analyzer.
    Open source →
  11. 2.5.1 17 Jun 2025
    Release notes
    • Use build_runner_core 9.0.1.
    Open source →
  12. 2.5.0 16 Jun 2025
    Release notes

    User-visible changes:

    • Improved performance for large builds. More performance improvements will follow, if your workflow is affected by slow build_runner performance then please consider sharing details at https://github.com/dart-lang/build/discussions.
    • Improved logging: show what builders are running and, for long-running builders, where the time is spent.
    • Bug fix: fix delay on shutdown for fast builds when the "analyzer out of date" warning is displayed.

    Versions:

    • Bump the min SDK to 3.7.0.
    • Use build_test 3.0.0.
    • Use build_runner_core 9.0.0.
    • Start using package:build/src/internal.dart.

    Internal changes:

    • Switch BuildAssetUriResolver dependency crawl to an iterative algorithm, preventing stack overflows.
    • Move BuildStepImpl to build_runner_core, use SingleStepReader directly.
    • Stop building transitive_digest files by default.
    • Use LibraryCycleGraphLoader to load transitive deps for analysis.
    • Track resolver dependencies as library cycle graphs.
    • Ignore deprecated analyzer API usages.
    Open source →
  13. 2.4.4 11 Feb 2025
    Release notes
    • Refactor BuildAssetUriResolver into AnalysisDriverModel and AnalysisDriverFilesystem. Add new implementation of AnalysisDriverModel.
    • Make resolver only throw SyntaxErrorInAssetException on severe syntax errors
    • Add BuildAssetUriResolver.useExperimentalResolver for --use-experimental-resolver flag. This will be removed.
    Open source →
  14. 2.4.3 16 Dec 2024
    Release notes
    • Require the latest analyzer, and stop passing the withNullability parameter which was previously required and is now deprecated.
    • Bump the min sdk to 3.6.0.
    • Fix SDK summary reads when multiple isolates are using build resolvers (not recommended).
    • Fix analyzer deprecations.
    • Support analyzer version 7.x.
    Open source →
  15. 2.4.2 13 Dec 2023
    Release notes
    • Add a builder to clean up transitive digest files from the build output.
    Open source →
  16. 2.4.1 29 Sep 2023
    Release notes
    • Fix an issue where deleted files were not removed from the analysis engine, and were still accessible via the analyzer apis.
    • Bump the min sdk to 3.0.0.
    Open source →
  17. 2.4.0 25 Sep 2023
    Release notes
    • Deprecate the unnamed AnalyzerResolvers constructor, an replace it with the AnalyzerResolvers.sharedInstance getter and AnalyzerResolvers.custom constructor. These new apis enforce a 1:1 relationship between the BuildAssetUriResolver instances and AnalyzerResolvers instances, which is necessary to ensure correct builds in the presence of multiple resolvers.
    Open source →
  18. 2.3.2 08 Sep 2023
    Release notes
    • Skip file delete for SDK summary and deps file. This will only impact behavior for usage in build_test where there may be multiple resolvers used concurrently.
    Open source →
  19. 2.3.1 30 Aug 2023
    Release notes
    • Fix a bug in the transitive digest builder, ensure we check if assets are readable before asking for their digest.
    Open source →
  20. 2.3.0 30 Aug 2023
    Release notes
    • Improve performance for resolves by adding a builder which serializes transitive digests to disk.
    Open source →
  21. 2.2.1 29 Jun 2023
    Release notes
    • Allow the latest analyzer (6.x.x).
    Open source →
  22. 2.2.0 16 Feb 2023
    Release notes
    • Add support for CompilationUnitElement to AnalysisResolver.astNodeFor().
    Open source →
  23. 2.1.0 27 Oct 2022
    Release notes
    • Migrate off deprecated analyzer apis.
    • Update min sdk constraint to 2.18.0.
    • Return all SDK libraries in Resolver.libraries, making the implementation consistent with the documentation.
    Open source →
  24. 2.0.10 13 Sep 2022
    Release notes
    • Migrate from LibraryElement#parts to LibraryElement#parts2.
    • Update min sdk constraint to 2.17.0 since this is the minimum selectable (and testable) sdk.
    • Use a constructor tearoff since our min sdk now supports them.
    • Allow the latest package:analyzer.
    Open source →
  25. 2.0.9 26 May 2022
    Release notes
    • Fix a new case of InconsistentAnalysisException errors that can occur with the newer analyzer.
    Open source →
  26. 2.0.8 14 Apr 2022
    Release notes
    • Allow analyzer version 4.x.
    Open source →
  27. 2.0.7 13 Apr 2022
    Release notes
    • Updated error messages to use dart pub instead of pub.
    • Add performance tracking stages to all the per-action resolver calls.
    Open source →
  28. 2.0.6 16 Dec 2021
    Release notes
    • Allow the latest analyzer.
    Open source →
  29. 2.0.5 19 Nov 2021
    Release notes
    • Consider files without a .dart extension as not Dart libraries. Previously the isLibrary getter was behaving like isNotDartPartFile which included many assets that weren't Dart at all. This is potentially breaking if any builders were intentionally resolving files with different extensions, but will give a more predictable result for the majority of cases.
    • Update usages of deprecated analyzer apis.
    • Require at least analyzer 2.1.0.
    • Support upcoming analyzer changes to UriResolver.
    Open source →
  30. 2.0.4 09 Jul 2021
    Release notes
    • Allow analyzer version 2.x.x.
    Open source →
  31. 2.0.3 27 May 2021
    Release notes
    • Fix an issue where the build process would hang if the resolver fails to properly initialize.
    Open source →
  32. 2.0.2 19 May 2021
    Release notes
    • Add more context to the outdated analyzer version message. It now provides different suggestions depending on if you are on the latest analyzer.
    Open source →
  33. 2.0.1 20 Apr 2021
    Release notes
    • Update to allow package:graphs 2.0.0.
    Open source →
  34. 2.0.0 12 Mar 2021
    Release notes
    • Migrate to null-safety
    • Update to build 2.x.
    Open source →
  35. 1.5.4 17 Feb 2021
    Release notes
    • Allow analyzer 1.0.0.
    Open source →
  36. 1.5.3 01 Feb 2021
    Release notes
    • Allow the null safe pre-release of package_config.
    Open source →
  37. 1.5.2 07 Jan 2021
    Release notes
    • Allow the null safe pre-releases of all migrated deps.
    Open source →
  38. 1.5.1 16 Dec 2020
    Release notes
    • Fix a potential nullability issue in the astNodeFor api.
    Open source →
  39. 1.5.0 15 Dec 2020
    Release notes
    • Support the latest build package (1.6.x).
      • Implements the new Future<AstNode> astNodeFor(Element, {bool resolve}) method.
    Open source →
  40. 1.4.4 02 Dec 2020
    Release notes
    • Allow the latest analyzer verion 0.41.x.
    Open source →
  41. 1.4.3 30 Oct 2020
    Release notes
    • Change the error to a warning when enabling experiments with mismatched analyzer/sdk versions since this will still work for experiments with release versions (such as null safety).
    Open source →
  42. 1.4.2 20 Oct 2020
    Release notes
    • Fix a bug around assets that appear missing to the analyzer even when they should be visible to the build step using the resolver.
    Open source →
  43. 1.4.1 25 Sep 2020
    Release notes
    • Update the exception thrown when using experiments without an exactly matching analyzer version to instead ensure that the sdk version is not ahead of the analyzer version.
    Open source →
  44. 1.4.0 22 Sep 2020
    Release notes
    • Support versions 1.5.x of the build package.
      • Implements the compilationUnitFor method on Resolver.
    Open source →
  45. 1.3.11 10 Aug 2020
    Release notes
    • Use the public buildSdkSummary api from the analyzer instead of the private one.
    • Migrate off of other deprecated analyzer apis.
    Open source →
  46. 1.3.10 06 Jul 2020
    Release notes
    • Migrate to new analyzer API for creating an SDK summary after the old approach was broken.
    Open source →
  47. 1.3.9 15 May 2020
    Release notes
    • Fix isLibrary for unreadable assets to return false.
    • Fix libraryFor to do an explicit canRead check and throw an AssetNotFound exception if it cannot be read.
    Open source →
  48. 1.3.8 11 May 2020
    Release notes
    • Enables the non-nullable experiment when summarizing the SDK, see https://github.com/dart-lang/sdk/issues/41820.
    • Reverts the enableExperiments option on AnalyzerResolvers.
      • To enable experiments you should instead run your code in an experiment Zone using the withEnabledExperiments function from package:build/experiments.dart.
    Open source →
  49. 1.3.7 21 Apr 2020
    Release notes
    • Pass an explicit FeatureSet to the analyzer based on the current sdk version.
    • ~Add an extra option enableExperiments to AnalyzerResolvers.~
      • This was reverted in 1.3.8 and replaced with a different mechanism.
    • Added a warning if the current analyzers language version does not support the current SDK language version.
    Open source →
  50. 1.3.6 20 Apr 2020
    Release notes
    • Fix bug when a package has no language version (as a result of having no sdk constraint).
    Open source →
  51. 1.3.5 15 Apr 2020
    Release notes
    • Create and pass a correct Packages argument to analysis driver, this enables getting the proper language version for a given LibraryElement using the languageVersionMajor and languageVersionMinor getters.
    Open source →
  52. 1.3.4 06 Apr 2020
    Release notes
    • Remove dependency on package_resolver.
    • Add new required featureSet argument to SummaryBuilder.build call.
    Open source →
  53. 1.3.3 05 Feb 2020
    Release notes
    • Fix an issue where non-existing Dart assets weren't visible to the analyzer, even when they are created later.
    Open source →
  54. 1.3.2 24 Jan 2020
    Release notes
    • Improve detection of the flutter SDK for older flutter versions.
    Open source →
  55. 1.3.1 09 Jan 2020
    Release notes
    • Add an exception on trying to resolve an AssetId that is not a Dart library with libraryFor to fit the contract expressed by the doc comment on Resolver.
    Open source →
  56. 1.3.0 15 Nov 2019
    Release notes

    New feature

    You can now resolve additional libraries other than those imported by the primary entrypoint.

    • This is supported through the isLibrary and libraryFor methods on Resolver, which will now resolve the provided asset if it is not already resolved.
    • Note: Doing this may affect the result of subsequent calls to resolver.libraries and resolver.findLibraryByName if new libraries are discovered.

    Note: If using build_runner then this will also require you to upgrade to version 4.2.0 of build_runner_core .

    Other

    • Changed a hide declaration to a show declaration to support a package:analyzer change.
    Open source →
  57. 1.2.2 29 Oct 2019
    Release notes
    • Update to package:analyzer version 0.39.0.
    Open source →
  58. 1.2.1 15 Oct 2019
    Release notes

    Check the build_resolvers version as a part of sdk summary invalidation.

    Open source →
  59. 1.2.0 15 Oct 2019
    Release notes

    Add flutters embedded sdk to the summary if available. This has the effect of making dart:ui and any future libraries available if using the flutter sdk instead of the dart sdk.

    Open source →
  60. 1.1.1 26 Sep 2019
    Release notes

    Bug Fix

    Check the analyzer path before reading cached summaries in addition to the SDK version.

    Open source →

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