@emnapi/core
1.11.3 · 25 Jul 2026MIT92.4M / weekRepositoryHomepagenpmAtom feed
Upgrading @emnapi/core From 0.39.0 to 0.45.0
7 releases in betweenevery note read
Reading releases, release notes and advisories…
- 6
- changes to make
- 0
- advisories fixed
- 6
- new
- 8
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.44.0
- Breaking0.44.0
- Breaking0.44.0
- Breaking0.44.0
- Breaking0.43.0
- Breaking0.43.0
Release by release
- New
feat: add
node_api_create_property_key_utf16as a alias ofnapi_create_string_utf16 - New
refactor: allow macros defined in source code
- New
- 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 - New
Add
EMNAPI_{MAJOR,MINOR,PATCH}_VERSIONandemnapi_get_runtime_version
- Breaking
- Fixed
Fix duplicated symbol __copy_tls in LLVM 17
- Fixed
Wasi threads max tid should be 0x1FFFFFFF
- Fixed
- Breaking
If you are using
emnapi.h, it should be included after includingjs_native_api.hornode_api.h - Breaking
onCreateWorker(info: { type: 'pthread' | 'async-work' })has been changed toonCreateWorker(info: { type: 'thread' | 'async-work' }) - New
Enable uncaught exceptions policy by default
- Fixed
Add missing
CHECK_ARG(env, cbinfo);tonapi_create_functionandnapi_get_new_target - Fixed
Wrap
napi_get_array_lengthandnapi_get_prototypewith PREAMBLE - Fixed
Do not include
js_native_api.hinemnapi.h
- Breaking
- New
Expose threadpool cleanup
- New
- New
Implement experimental
node_api_create_external_string_*
- New
16 other lines we could not sort, mostly version bumps
- 0.45.0
feat: separate transformer packages
- 0.45.0
fix: incorrect result of
napi_create_bigint_uint64when the input is greater than0x7fffffffffffffff - 0.45.0
build: prebuilt library is built by LLVM 17 (wasi-sdk-21 & emscripten 3.1.44)
- 0.45.0
refactor: factor out common code into macros
- 0.45.0
refactor: migrate to ESM
- 0.45.0
refactor: improve TypeScript custom transformers
- 0.44.0
Delay injecting HEAP_DATA_VIEW declaration
- 0.44.0
Move
napi_adjust_external_memoryto JS - 0.44.0
Sync latest headers
- 0.43.1
Throw error with friendly message if symbols are not exported
4 internal lines (docs, tests, tooling) left out.
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.