@emnapi/core
1.11.3 · 25 Jul 2026MIT92.4M / weekRepositoryHomepagenpmAtom feed
0.45.0 is the newest release of 0.44.x.
In short
4 breaking1 new3 changed1 internal
- Breaking
emnapi_get_emscripten_versionhas 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 sincenapiis 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_memoryto JSSync latest headers
Add
EMNAPI_{MAJOR,MINOR,PATCH}_VERSIONandemnapi_get_runtime_version
Breaking Changes
- Breaking
emnapi_get_emscripten_versionhas 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 sincenapiis 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.