NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #128 most downloaded on pub.dev
This package is the backend that invokes build hooks.
Latest stable
2.0.0
Last release 16 days ago
06 Nov 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 26 of 26 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
26 releases · first in 2025
Drag across the ruler to compare, or tap a release to open it.
Breaking change : Remove KernelAssets (and related KernelAsset* classes) and Target .
KernelAssets (and related KernelAsset*Target.package:code_assets.PKG_CONFIG_PATH to the environment variables allowlist.NativeAssetsBuildRunner.link by writingrecorded_uses.json under the directory lock.Use the path separator of the target platform in native_assets.yaml.
package:code_assets dependency to ^2.1.0.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Invalidate cached hook compilations when the Dart SDK version changes.
Provide the runner's logger to protocol extensions before any other method is invoked, so they can emit validation diagnostics.
dartExecutable to be an absolute path, and on Windows to include a
file extensionTypeError when a hook's cached
output.json contains valid JSON that is not an object.package:code_assets dependency to ^2.0.0.PATHEXT to the environment variables allowlist.RUSTUP_ and CARGO_ to the environment variables allowlist.Support versions 3.x of package:package_config.
package:package_config.Fix record_use path changing caching issue.
Add GOPATH, and prefix CONAN_ to the environment variables allowlist.
GOPATH, and prefix CONAN_ to the environment variables allowlist.Add cache-isolation for recorded usages under link hooks using RecordUseConfig, and deprecate the legacy resourceIdentifiers parameters.
RecordUseConfig, and deprecate the legacy resourceIdentifiers parameters.APPDATA, LOCALAPPDATA, and prefixes DOTNET_ and NUGET_ to the
environment variables allowlist.package:code_assets to ^1.2.0.Resolved caching abstraction violation by delegating generated output file identification to ProtocolExtension.outputFiles.
ProtocolExtension.outputFiles.package:hooks to ^2.0.0.Add PROCESSOR_ARCHITECTURE to environment variables allowlist.
PROCESSOR_ARCHITECTURE to environment variables allowlist.Add toJson() and fromJson() to BuildResult to support serialization.
toJson() and fromJson() to BuildResult to support serialization.Bump package:record_use to 0.6.0.
package:record_use to 0.6.0.Recordings.fromJson.Bump package:jni dependency to 1.2.1.
package:jni dependency to 1.2.1.recorded_uses.json passed to link hooks based on the
package name of the definition.CCACHE_ to the environment variables allowlist.dumpApi utility and ApiDumperVisitor to dump parsed Java AST.package:jni version to 1.2.Pass HTTP(S)_PROXY and related environment variables to hooks.
HTTP(S)_PROXY and related environment variables to hooks.ANDROID_NDK, ANDROID_NDK_HOME, ANDROID_NDK_LATEST_HOME and
ANDROID_NDK_ROOT to the environment variables allowlist.Ensure build fails if a build hook does not produce an output file.
classes in the config file as a config error- Stable release.
Add LIBCLANG_PATH to the environment variables allowlist.
LIBCLANG_PATH to the environment variables allowlist.Change the length of the checksum used for outputDirectory to 10 hexadecimal characters to avoid running out of path length on Windows.
outputDirectory to 10 hexadecimal
characters to avoid running out of path length on Windows.Breaking change: Replaced NativeAssetsBuildRunner.hookEnvironmentVariablesFilter with NativeAssetsBuildRunner.includeHookEnvironmentVariable to accoun…
NativeAssetsBuildRunner.hookEnvironmentVariablesFilter
with NativeAssetsBuildRunner.includeHookEnvironmentVariable to account for
environment variables that start with a particular prefix (i.e., NIX_).Fix caches not being invalidated on (1) user-defines changing, (2) metadata changing, and (3) assets sent to link hooks.
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
package:hooks to 0.20.0.MetadataAssets - but also means that now link hooks must be invoked,
regardless of whether assets are sent to the from a build hook.Add includeDevDependencies param to BuildLayout to enable building the assets for dev dependencies of the runPackage.
includeDevDependencies param to BuildLayout to enable building the
assets for dev dependencies of the runPackage.Add dart:developer TimelineEvents to enable performance tracing for hook invocations.
dart:developer TimelineEvents to enable performance tracing for
hook invocations.Bump the SDK constraint to at least the one from package:hooks to fix dartdoc generation on https://pub.dev.
package:hooks to fix
dartdoc generation on https://pub.dev.Breaking change Refactored error handling to use a Result type for more explicit success/failure states.
Result type for more
explicit success/failure states.package_graph.json fallback.Renamed package from native_assets_builder to hooks_runner.
native_assets_builder to hooks_runner.package:code_assets, package:data_assets, and package:hooks
0.19.0. (package:native_assets_cli was split up into these packages.)One column per month.