PackageTrack
Sign in Get early access

hooks_runner

This package is the backend that invokes build hooks.

1.6.3 5.7M downloads/mo #135 most downloaded on pub.dev dart-lang/native

What this package is like to depend on

Last release 3 days ago

21 Aug 2026

Ships fairly regularly

a new release about every 3 weeks

Nearly every release is documented

notes for 24 of 24 stable releases

Nothing withdrawn

no release was ever pulled

1 years old

24 releases · first in 2025

17 releases in the last 12 months

see the full history below

Release timeline

24 releases · May 2025 to Aug 2026
2026
Release Pre-release

Releases

latest 24
  1. 1.6.3 21 Aug 2026
    Release notes
    • Invalidate cached hook compilations when the Dart SDK version changes.
    Open source →
    Release notes
    • Invalidate cached hook compilations when the Dart SDK version changes.
    Open source →
  2. 1.6.2 18 Aug 2026
    Release notes
    • Provide the runner's logger to protocol extensions before any other method is
      invoked, so they can emit validation diagnostics.
    • Require dartExecutable to be an absolute path, and on Windows to include a
      file extension
    • Report a format error instead of throwing a TypeError when a hook's cached
      output.json contains valid JSON that is not an object.
    • Bump package:code_assets dependency to ^2.0.0.
    • Add PATHEXT to the environment variables allowlist.
    • Add prefixes RUSTUP_ and CARGO_ to the environment variables allowlist.
    • Store size and last modification time in dependency hashes to skip content
      hashing when unchanged.
    Open source →
    Release notes
    • Provide the runner's logger to protocol extensions before any other method is invoked, so they can emit validation diagnostics.
    • Require dartExecutable to be an absolute path, and on Windows to include a file extension
    • Report a format error instead of throwing a TypeError when a hook's cached output.json contains valid JSON that is not an object.
    • Bump package:code_assets dependency to ^2.0.0.
    • Add PATHEXT to the environment variables allowlist.
    • Add prefixes RUSTUP_ and CARGO_ to the environment variables allowlist.
    • Store size and last modification time in dependency hashes to skip content hashing when unchanged.
    Open source →
  3. 1.6.1 14 Jul 2026
    Release notes
    • Support versions 3.x of package:package_config.
    Open source →
  4. 1.6.0 13 Jul 2026
    Release notes
    • Fix record_use path changing caching issue.
    • Fix hook invocation when the Dart executable or an argument path contains a space on Windows.
    Open source →
  5. 1.5.0 12 Jun 2026
    Release notes
    • Add GOPATH, and prefix CONAN_ to the environment variables allowlist.
    Open source →
  6. 1.4.0 27 May 2026
    Release notes
    • Add cache-isolation for recorded usages under link hooks using RecordUseConfig, and deprecate the legacy resourceIdentifiers parameters.
    • Add APPDATA, LOCALAPPDATA, and prefixes DOTNET_ and NUGET_ to the environment variables allowlist.
    • Bumped dependency on package:code_assets to ^1.2.0.
    Open source →
  7. 1.3.0 18 May 2026
    Release notes
    • Resolved caching abstraction violation by delegating generated output file identification to ProtocolExtension.outputFiles.
    • Bumped dependency on package:hooks to ^2.0.0.
    Open source →
  8. 1.2.1 14 Apr 2026
    Release notes
    • Add PROCESSOR_ARCHITECTURE to environment variables allowlist.
    Open source →
  9. 1.2.0 10 Apr 2026
    Release notes
    • Add toJson() and fromJson() to BuildResult to support serialization.
    Open source →
  10. 1.1.1 25 Mar 2026
    Release notes
    • Fix quadratic deserialization performance and index corruption in
      Recordings.fromJson.
    Open source →
    Release notes
    • Bump package:record_use to 0.6.0.
    Open source →
  11. 1.1.0 06 Mar 2026
    Release notes
    • Added Recordings.+ to combine two recordings.
    Open source →
    Release notes
    • Filter recorded_uses.json passed to link hooks based on the package name of the definition.
    • Add CCACHE_ to the environment variables allowlist.
    Open source →
  12. 1.0.2 04 Feb 2026
    Release notes
    • Revert an unnecessary (and breaking) KGP migration.
    Open source →
    Release notes
    • Pass HTTP(S)_PROXY and related environment variables to hooks.
    • Add ANDROID_NDK, ANDROID_NDK_HOME, ANDROID_NDK_LATEST_HOME and ANDROID_NDK_ROOT to the environment variables allowlist.
    Open source →
  13. 1.0.1 25 Nov 2025
    Release notes
    • Ensure build fails if a build hook does not produce an output file.
    Open source →
  14. 1.0.0 07 Nov 2025
    Release notes
    • Stable release.
    Open source →
  15. 0.23.2 20 Oct 2025
    Release notes
    • Add LIBCLANG_PATH to the environment variables allowlist.
    Open source →
  16. 0.23.1 08 Oct 2025
    Release notes
    • Change the length of the checksum used for outputDirectory to 10 hexadecimal characters to avoid running out of path length on Windows.
    Open source →
  17. 0.23.0 29 Sep 2025
    Release notes
    • Breaking change: Replaced NativeAssetsBuildRunner.hookEnvironmentVariablesFilter with NativeAssetsBuildRunner.includeHookEnvironmentVariable to account for environment variables that start with a particular prefix (i.e., NIX_).
    Open source →
  18. 0.22.1 27 Aug 2025
    Release notes
    • Fix caches not being invalidated on (1) user-defines changing, (2) metadata changing, and (3) assets sent to link hooks.
    Open source →
  19. 0.22.0 04 Aug 2025
    Release notes
    • Bump package:hooks to 0.20.0.
    • Enable passing metadata from link hooks of a package to the link hooks in depending packages, by fixing the link hook execution order. This brings an order in which the link hooks are run - reverse to the build hook run order. Starting at the application link hook, then it's dependencies, and so on. This enables us to pass information from on link hook to another as MetadataAssets - but also means that now link hooks must be invoked, regardless of whether assets are sent to the from a build hook.
    Open source →
  20. 0.21.0 03 Jun 2025
    Release notes
    • Add includeDevDependencies param to BuildLayout to enable building the assets for dev dependencies of the runPackage.
    Open source →
  21. 0.20.2 23 May 2025
    Release notes
    • Add dart:developer TimelineEvents to enable performance tracing for hook invocations.
    Open source →
  22. 0.20.1 21 May 2025
    Release notes
    • Bump the SDK constraint to at least the one from package:hooks to fix dartdoc generation on https://pub.dev.
    Open source →
  23. 0.20.0 19 May 2025
    Release notes
    • Breaking change Refactored error handling to use a Result type for more explicit success/failure states.
    • Remove package_graph.json fallback.
    Open source →
  24. 0.19.0 01 May 2025
    Release notes
    • Renamed package from native_assets_builder to hooks_runner.
    • Depend on package:code_assets, package:data_assets, and package:hooks 0.19.0. (package:native_assets_cli was split up into these packages.)
    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