Packages

emnapi

1.11.3 · 25 Jul 2026MIT633.5k / weekRepositoryHomepagenpmAtom feed

Your version

0.44.0

12 Nov 2023Where it was published

0.45.0 is the newest release of 0.44.x.

In short

4 breaking1 new3 changed1 internal

  • Breaking

    emnapi_get_emscripten_version has been removed, use __EMSCRIPTEN_{major,minor,tiny}__ instead.

  • Breaking

    Require node-api-headers as a dependency

  • Breaking

    Users should always define -DBUILDING_NODE_EXTENSION

  • Breaking

    Emscripten users should define -DNAPI_EXTERN=__attribute__((__import_module__("env"))) manually since napi is the default module where Node.js wants to import symbols from. See #20035

Release note

What's Changed

  • Delay injecting HEAP_DATA_VIEW declaration

  • Move napi_adjust_external_memory to JS

  • Sync latest headers

  • Add EMNAPI_{MAJOR,MINOR,PATCH}_VERSION and emnapi_get_runtime_version

Breaking Changes

  • Breaking

    emnapi_get_emscripten_version has been removed, use __EMSCRIPTEN_{major,minor,tiny}__ instead.

Possible upcoming breaking changes in the future

  • Breaking

    Require node-api-headers as a dependency

  • Breaking

    Users should always define -DBUILDING_NODE_EXTENSION

  • Breaking

    Emscripten users should define -DNAPI_EXTERN=__attribute__((__import_module__("env"))) manually since napi is the default module where Node.js wants to import symbols from. See #20035

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.