Skip to content

package:code_assets v2.0.0

Choose a tag to compare

@dcharkes dcharkes released this 18 Aug 07:24
· 18 commits to main since this release
fc06ab3
  • 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.