unstale

npm / @napi-rs/triples

@napi-rs/triples

What changed in @napi-rs/triples 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-03.

17 breaking1 new APIs and options1 tooling

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

npx @unstale/cli init

@unstale/cli 0.2.9 on npm

@napi-rs/triples 319 changes

Breaking changes 17

  • The flag is removed; use --manifest-path to point at the crate's Cargo.toml.

    3.0.0upgrade guide

  • The flag is removed; pass Cargo flags after -- instead.

    3.0.0upgrade guide

  • This and the listed legacy JsValue APIs are behind compat-mode; migrate to the new APIs.

    3.0.0upgrade guide

  • Use this flag to point napi build at the crate's Cargo.toml.

    3.0.0upgrade guide

  • Flags after -- are passed through to cargo build.

    3.0.0upgrade guide

  • Path flags resolve relative to --cwd or process.cwd() rather than --cargo-cwd or process.cwd().

    3.0.0upgrade guide

  • The create-npm-dir command is renamed; use create-npm-dirs.

    3.0.0upgrade guide

  • Use this macro in place of napi::module_init.

    3.0.0upgrade guide

  • This macro replaces #[module_exports] from compat-mode.

    3.0.0upgrade guide

  • The macro moved to napi_derive::module_init.

    3.0.0upgrade guide

  • The napi universal command is renamed to napi universalize.

    3.0.0upgrade guide

  • Use binaryName instead of name for the binary name in the napi configuration.

    3.0.0upgrade guide

  • The old nested package name field is no longer read; use napi.packageName instead.

    3.0.0upgrade guide

  • Move the package name from napi.package.name to napi.packageName; v3 does not read the old nested field.

    3.0.0upgrade guide

  • Use a flat targets array listing every target explicitly; the triples config has been removed.

    3.0.0upgrade guide

  • The new CLI requires Node.js ^20.17.0 || ^22.13.0 || >=23.5.0 at build time; this does not change addon runtime support.

    3.0.0upgrade guide

  • Rust 1.88 or newer is a prerequisite for the v3 migration.

    3.0.0upgrade guide

New APIs and options 1

  • Enable this feature to keep using deprecated types while migrating incrementally.

    3.0.0upgrade guide

Tooling 1

  • Committing these directories is no longer recommended; create them in CI with napi create-npm-dirs instead.

    3.0.0upgrade guide