NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #31 most downloaded on pub.dev
A library that contains a Dart API for the JSON-based protocol for `hook/build.dart` and `hook/link.dart`.
Latest stable
2.2.0
Last release 3 months ago
18 Aug 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 21 of 21 stable releases
4 versions withdrawn
withdrawn after publishing
13 years old
25 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
Support complete iOS and macOS deployment versions through AppleVersion and deploymentVersion , and deprecate the integer targetVersion API while pres…
AppleVersion anddeploymentVersion, and deprecate the integer targetVersion API whileAppleVersion supports numeric comparison.iOSDeploymentVersion and macOSDeploymentVersion to testCodeBuildHook, andProtocolExtension.setupLogger, which the hooks runner calls to provide
the logger used for validation diagnostics before any other method is invoked
on the extension.HookInputUserDefines.path mangling absolute Windows paths: the drive
letter was parsed as a URI scheme. Absolute paths are now returned as-is;
relative paths are resolved against the source of the path.HookInputUserDefines.baseUri, which can be used to resolve paths
from nested user-defined options.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Added Architecture.arm64e .
Architecture.arm64e.Update documentation for user-defines.
Updated documentation for hook caching behavior and semi-hermetic environment variables.
Breaking change: Turned ProtocolExtension into a base class instead of an interface, with default implementations for all methods including the newly…
ProtocolExtension into a base class instead of an interface, with default implementations for all methods including the newly added outputFiles.package:hooks to ^2.2.0.== and hashCode in OS, Architecture, and Sanitizer to support custom targets. These objects can no longer be used as keys of const maps and sets.
final (runtime) maps and sets instead of const, or use the string representations (e.g., OS.name, Architecture.name) as keys if const is required.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.Deprecated recordedUsagesFile in LinkInput.
recordedUsagesFile in LinkInput.recordedUses getter to LinkInput.package:record_use.Update documentation about CCACHE_ environment variables.
CCACHE_ environment variables.Update documentation about environment variables.
classes in the config file as a config error- Stable release.
Document input.packageRoot in more places.
input.packageRoot in more places.Improved documentation on debugging and added a documentation index.
Polished README.md, Dartdocs, and examples.
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.Deprecate HookOutputBuilder.addDependency and HookOutputBuilder.addDependencies in favor of HookOutputBuilder.dependencies.add and HookOutputBuilder.d…
HookOutputBuilder.addDependency and
HookOutputBuilder.addDependencies in favor of
HookOutputBuilder.dependencies.add and
HookOutputBuilder.dependencies.addAll.Breaking change Rename EncodedAsset.jsonPath to EncodedAsset.encodingJsonPath. This field only governs the EncodedAsset.encoding field, not the whole…
EncodedAsset.jsonPath to
EncodedAsset.encodingJsonPath. This field only governs the EncodedAsset.encoding field, not the whole object.Support Architecture.arm64e for macOS and iOS.
Architecture.arm64e for macOS and iOS.package:code_assets dependency to ^2.1.0.package:file FileSystem, exposed asCBuilder.run, CLinker.run, CLibrary.build, andCLibrary.link (defaulting to LocalFileSystem), so file system access can beAdd doc comments to all public members.
package:code_assets dependency to ^2.0.0.package:process ProcessManager, exposed asCBuilder.run, CLinker.run, CLibrary.build, andCLibrary.link (defaulting to LocalProcessManager), so process invocationsMark this package as in preview.
Mark this package as in preview.
Added links to the build and link methods as primary entry points.
build and link methods as primary entry points.Split up package:native_assets_cli in package:hooks, package:code_assets, and package:data_assets.
package:native_assets_cli in package:hooks,
package:code_assets, and package:data_assets.Nothing published for this version
Nothing published for this version
- Initial version.
Nothing published for this version
One column per quarter.