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
Releases
latest 24-
1.6.321 Aug 2026 -
1.6.218 Aug 2026Release notes
Open source →- Provide the runner's logger to protocol extensions before any other method is
invoked, so they can emit validation diagnostics. - Require
dartExecutableto be an absolute path, and on Windows to include a
file extension - Report a format error instead of throwing a
TypeErrorwhen a hook's cached
output.jsoncontains valid JSON that is not an object. - Bump
package:code_assetsdependency to^2.0.0. - Add
PATHEXTto the environment variables allowlist. - Add prefixes
RUSTUP_andCARGO_to the environment variables allowlist. - Store size and last modification time in dependency hashes to skip content
hashing when unchanged.
Release notes
Open source →- Provide the runner's logger to protocol extensions before any other method is invoked, so they can emit validation diagnostics.
- Require
dartExecutableto be an absolute path, and on Windows to include a file extension - Report a format error instead of throwing a
TypeErrorwhen a hook's cachedoutput.jsoncontains valid JSON that is not an object. - Bump
package:code_assetsdependency to^2.0.0. - Add
PATHEXTto the environment variables allowlist. - Add prefixes
RUSTUP_andCARGO_to the environment variables allowlist. - Store size and last modification time in dependency hashes to skip content hashing when unchanged.
- Provide the runner's logger to protocol extensions before any other method is
-
1.6.114 Jul 2026 -
1.6.013 Jul 2026Release notes
Open source →- Fix record_use path changing caching issue.
- Fix hook invocation when the Dart executable or an argument path contains a space on Windows.
-
1.5.012 Jun 2026 -
1.4.027 May 2026Release notes
Open source →- Add cache-isolation for recorded usages under link hooks using
RecordUseConfig, and deprecate the legacyresourceIdentifiersparameters. - Add
APPDATA,LOCALAPPDATA, and prefixesDOTNET_andNUGET_to the environment variables allowlist. - Bumped dependency on
package:code_assetsto^1.2.0.
- Add cache-isolation for recorded usages under link hooks using
-
1.3.018 May 2026Release notes
Open source →- Resolved caching abstraction violation by delegating generated output file identification to
ProtocolExtension.outputFiles. - Bumped dependency on
package:hooksto^2.0.0.
- Resolved caching abstraction violation by delegating generated output file identification to
-
1.2.114 Apr 2026 -
1.2.010 Apr 2026 -
1.1.125 Mar 2026Release notes
Open source →- Fix quadratic deserialization performance and index corruption in
Recordings.fromJson.
- Fix quadratic deserialization performance and index corruption in
-
1.1.006 Mar 2026Release notes
Open source →- Filter
recorded_uses.jsonpassed to link hooks based on the package name of the definition. - Add
CCACHE_to the environment variables allowlist.
- Filter
-
1.0.204 Feb 2026Release notes
Open source →- Pass
HTTP(S)_PROXYand related environment variables to hooks. - Add
ANDROID_NDK,ANDROID_NDK_HOME,ANDROID_NDK_LATEST_HOMEandANDROID_NDK_ROOTto the environment variables allowlist.
- Pass
-
1.0.125 Nov 2025 -
1.0.007 Nov 2025 -
0.23.220 Oct 2025 -
0.23.108 Oct 2025Release notes
Open source →- Change the length of the checksum used for
outputDirectoryto 10 hexadecimal characters to avoid running out of path length on Windows.
- Change the length of the checksum used for
-
0.23.029 Sep 2025Release notes
Open source →- Breaking change: Replaced
NativeAssetsBuildRunner.hookEnvironmentVariablesFilterwithNativeAssetsBuildRunner.includeHookEnvironmentVariableto account for environment variables that start with a particular prefix (i.e.,NIX_).
- Breaking change: Replaced
-
0.22.127 Aug 2025Release notes
Open source →- Fix caches not being invalidated on (1) user-defines changing, (2) metadata changing, and (3) assets sent to link hooks.
-
0.22.004 Aug 2025Release notes
Open source →- Bump
package:hooksto 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.
- Bump
-
0.21.003 Jun 2025Release notes
Open source →- Add
includeDevDependenciesparam toBuildLayoutto enable building the assets for dev dependencies of therunPackage.
- Add
-
0.20.223 May 2025Release notes
Open source →- Add
dart:developerTimelineEvents to enable performance tracing for hook invocations.
- Add
-
0.20.121 May 2025Release notes
Open source →- Bump the SDK constraint to at least the one from
package:hooksto fix dartdoc generation on https://pub.dev.
- Bump the SDK constraint to at least the one from
-
0.20.019 May 2025Release notes
Open source →- Breaking change Refactored error handling to use a
Resulttype for more explicit success/failure states. - Remove
package_graph.jsonfallback.
- Breaking change Refactored error handling to use a
-
0.19.001 May 2025Release notes
Open source →- Renamed package from
native_assets_buildertohooks_runner. - Depend on
package:code_assets,package:data_assets, andpackage:hooks0.19.0. (package:native_assets_cliwas split up into these packages.)
- Renamed package from