PackageTrack
Sign in Get early access

code_assets

This library contains the hook protocol specification for bundling native code with Dart packages.

2.0.0 9.5M downloads/mo #33 most downloaded on pub.dev dart-lang/native

What this package is like to depend on

Last release 6 days ago

18 Aug 2026

Release timing varies

gaps range from 8 days to 6 months

Nearly every release is documented

notes for 15 of 16 stable releases

Nothing withdrawn

no release was ever pulled

1 years old

17 releases · first in 2025

9 releases in the last 12 months

see the full history below

Release timeline

17 releases · Apr 2025 to Aug 2026
2026
Release Pre-release

Releases

latest 17
  1. 2.0.0 18 Aug 2026
    Release notes
    • Validate bundled dynamic libraries by reading their header: when the file is
      a recognized ELF, Mach-O, or PE binary, check that it was built for the
      target architecture. Reject multi-architecture Mach-O output because hooks
      run once per target architecture. A file the built-in validators do not
      recognize, or a recognized library built for an architecture they do not
      know, warns on the supplied logger instead of failing.
    • Bump the dependency on package:hooks to ^2.2.0.
    • Breaking change: Overrode == 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.
      • Migration: Use 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.
    • Support custom target OS, architecture, and santizer in protocol extension.
    Open source →
    Release notes
    • Validate bundled dynamic libraries by reading their header: when the file is a recognized ELF, Mach-O, or PE binary, check that it was built for the target architecture. Reject multi-architecture Mach-O output because hooks run once per target architecture. A file the built-in validators do not recognize, or a recognized library built for an architecture they do not know, warns on the supplied logger instead of failing.
    • Bump the dependency on package:hooks to ^2.2.0.
    • Breaking change: Overrode == 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.
      • Migration: Use 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.
    • Support custom target OS, architecture, and santizer in protocol extension.
    Open source →
  2. 1.2.1 01 Jun 2026
    Release notes
    • Avoid throwing a null-assertion error/exception when input.config.code is accessed but input.config.buildCodeAssets is false. Instead, throw a clear and descriptive StateError.
    Open source →
  3. 1.2.0 27 May 2026
    Release notes
    • Added an optional sanitizer parameter to CodeConfig and CodeAssetExtension supporting asan, msan, and tsan.
    Open source →
  4. 1.1.0 18 May 2026
    Release notes
    • Added Recordings.+ to combine two recordings.
    Open source →
    Release notes
    • Bumped dependency on 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.
    Open source →
  5. 1.0.0 07 Nov 2025
    Release notes
    • Stable release.
    Open source →
  6. 0.19.10 27 Oct 2025
    Release notes
    • Document input.packageRoot in more places.
    • Document CodeAsset.id package namespacing.
    Open source →
  7. 0.19.9 20 Oct 2025
    Release notes
    • Document that asset file paths must be absolute.
    Open source →
  8. 0.19.8 13 Oct 2025
    Release notes
    • Polished README.md, Dartdocs, and examples.
    Open source →
  9. 0.19.7 02 Sep 2025
    Release notes
    • Bump examples to use package:ffigen 20.0.0-dev.0.
    Open source →
  10. 0.19.6 27 Aug 2025
    Release notes
    • Added a library comment detailing how to use the package.
    • Fixed duplicate asset id detection with assets coming from both build and link hooks.
    Open source →
  11. 0.19.5 04 Aug 2025
    Release notes
    • Bump package:hooks to 0.20.0.
    Open source →
  12. 0.19.4 12 Jun 2025
    Release notes
    • Fix native_toolchain_c failing with MSSSMS installed by requiring vswhere to only show output that includes the necessary build tools
    • Link frameworks for C and C++ sources targeting macOS or iOS.
      (#3162)
    • Bump package:code_assets dependency to ^2.0.0.
    • Spawn all processes through a package:process ProcessManager, exposed as
      an optional parameter on CBuilder.run, CLinker.run, CLibrary.build, and
      CLibrary.link (defaulting to LocalProcessManager), so process invocations
      can be mocked in tests. (#3072)
    Open source →
    Release notes
    • Add doc comments to all public members.
    Open source →
  13. 0.19.3 21 May 2025
    Release notes
    • Mark this package as in preview.
    Open source →
  14. 0.19.2 21 May 2025

    Nothing published for this version

  15. 0.19.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 →
  16. 0.19.0 01 May 2025
    Release notes
    • Split up package:native_assets_cli in package:hooks, package:code_assets, and package:data_assets.
    Open source →
  17. 0.1.0-wip 01 Apr 2025 pre-release

    Nothing published for this version

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