NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #29 most downloaded on pub.dev
This library contains the hook protocol specification for bundling native code with Dart packages.
Latest stable
2.2.0
Last release 17 days ago
06 Nov 2026
Release timing varies
gaps range from 8 days to 6 months
Nearly every release is documented
notes for 18 of 18 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
19 releases · first in 2025
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, andAdded Architecture.arm64e .
Architecture.arm64e.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Breaking change: Overrode == and hashCode in OS, Architecture, and Sanitizer to support custom targets. These objects can no longer be used as keys of…
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.Avoid throwing a null-assertion error/exception when input.config.code is accessed but input.config.buildCodeAssets is false. Instead, throw a clear a
input.config.code is
accessed but input.config.buildCodeAssets is false. Instead, throw a
clear and descriptive StateError.Added an optional sanitizer parameter to CodeConfig and CodeAssetExtension supporting asan, msan, and tsan.
sanitizer parameter to CodeConfig and CodeAssetExtension supporting asan, msan, and tsan.Bump package:jni dependency to 1.2.1.
package:jni dependency to 1.2.1.package:hooks to ^2.0.0 and implemented the new outputFiles protocol extension method to track generated files for cache invalidation, correctly omitting non-local assets like system libraries.dumpApi utility and ApiDumperVisitor to dump parsed Java AST.package:jni version to 1.2.- Stable release.
Document input.packageRoot in more places.
input.packageRoot in more places.CodeAsset.id package namespacing.Document that asset file paths must be absolute.
Polished README.md, Dartdocs, and examples.
Bump examples to use package:ffigen 20.0.0-dev.0.
package:ffigen 20.0.0-dev.0.Added a library comment detailing how to use the package.
vswhere -utf8 output as streaming UTF-8, preserving localizedCBuilder and CLinker. Requires package:code_assets 2.2.0..h files in CBuilder.sources to track header changes aslinkerOptions to LinkerOptions.manual() in CLinker.run when omitted so static archives link all symbols by default.LinkerOptions.treeshake on Windows for thousands of symbols: no longer/INCLUDE: flag per symbol in addition to the generatedMyDLL.-Wl,-encryptable, -Wl,-z,max-page-size=16384,-framework, and C++ standard library link flags) when compiling object files-c).environmentFromBatchFile, and with it finding the MSVC environment onNoDefaultCurrentDirectoryInExePath environment variable.\<name>.bat.environmentFromBatchFile now throws a ProcessException if running the- Bump package:hooks to 0.20.0.
package:hooks to 0.20.0.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.
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.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
One column per month.