unstale

cargo / napi-derive-backend

napi-derive-backend

What changed in napi-derive-backend 3 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-23.

1 security7 new APIs and options1 performance1 tooling23 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

napi-derive-backend 76 changes

New APIs and options 2

Fixes and other changes 4

  • Fixes per-environment teardown for multi-load addons and prevents AsyncTask promises from leaking.

    7.0.1release notes

  • Avoids TS1016 errors in constructors.

    7.0.0release notes

  • Closures defined with define_class are freed.

    7.0.0release notes

  • Static flags are now honoured.

    7.0.0release notes

napi-derive-backend 613 changes

Security 1

  • Classes marked with #[napi] have unforgeable identity via Node object type tags.

    6.0.0release notes

Tooling 1

  • The CLI now supports non-threaded WASI targets.

    6.1.0release notes

Fixes and other changes 11

  • Borrowed class arguments remain alive across AsyncTask and AsyncBlock.

    6.1.6release notes

  • Unadopted class values are dropped and the factory flag is reset when conversion fails.

    6.1.6release notes

  • Enum variants are exported as writable, enumerable, configurable properties.

    6.1.5release notes

  • Guards AsyncTask completion against environment teardown.

    6.1.4release notes

  • Aligns generated file formats.

    6.1.3release notes

  • The macro now recognizes fully qualified napi::Env as the special Env parameter.

    6.1.3release notes

  • Addons with live native code are no longer unloaded.

    6.1.2release notes

  • Non-Error rejections are preserved.

    6.1.2release notes

  • Add a teardown barrier for wasm.

    6.1.2release notes

  • Preserves the namespace when resolving cross-namespace type references.

    6.1.1release notes

  • Validation looks up constructors by js_name.

    6.1.1release notes

napi-derive-backend 59 changes

New APIs and options 3

  • To/FromNapiValue implementations are added for OsString, OsStr, Path and PathBuf, enabling these types to be converted through napi.

    5.1.0release notes

  • Outlines field-error decoration for #[napi(object)].

    5.0.5release notes

  • Adds the async_iterator macro attribute for napi.

    5.0.0release notes

Performance 1

  • Object field raw property access was optimized.

    5.1.1release notes

Fixes and other changes 5

  • The derive implementation defers borrowing the receiver until after argument conversion.

    5.1.2release notes

  • Only FnArgs unpacks a tuple to variadic parameters.

    5.0.4release notes

  • Preserves generator class methods.

    5.0.3release notes

  • Asterisks in comments are now escaped.

    5.0.2release notes

  • Fixed a memory leak in async functions.

    5.0.1release notes

napi-derive-backend 43 changes

New APIs and options 1

  • A tracing feature was added for debug logging NAPI function calls.

    4.0.0release notes

Fixes and other changes 2

  • Fixes the inability to use an optional parameter for a class setter.

    4.0.1release notes

  • Parentheses are added for function types.

    4.0.0release notes

napi-derive-backend 32 changes

New APIs and options 1

  • Adds discriminant_case to allow changing the case of discriminants.

    3.0.0release notes

Fixes and other changes 1