Packages

@emnapi/runtime

1.11.3 · 25 Jul 2026MIT145.1M / weekRepositoryHomepagenpmAtom feed

Upgrading @emnapi/runtime From 0.39.0 to 0.45.0

7 releases in betweenevery note read

Other targets from 0.39.0Latest1.11.3
  1. 0.39.0yours
  2. 0.40.0major
  3. 0.41.0major
  4. 0.42.0major
  5. 0.43.0major
  6. 0.43.1
  7. 0.44.0major
  8. 0.45.0target

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

  1. 0.45.0

    29 Dec 20232 new
    • New

      feat: add node_api_create_property_key_utf16 as a alias of napi_create_string_utf16

    • New

      refactor: allow macros defined in source code

  2. 0.44.0

    Migration needed12 Nov 20231 new
    • 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

    • New

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

  3. 0.43.1

    21 Oct 20232 fixes
    • Fixed

      Fix duplicated symbol __copy_tls in LLVM 17

    • Fixed

      Wasi threads max tid should be 0x1FFFFFFF

  4. 0.43.0

    Migration needed20 Oct 20231 new · 3 fixes
    • Breaking

      If you are using emnapi.h, it should be included after including js_native_api.h or node_api.h

    • Breaking

      onCreateWorker(info: { type: 'pthread' | 'async-work' }) has been changed to onCreateWorker(info: { type: 'thread' | 'async-work' })

    • New

      Enable uncaught exceptions policy by default

    • Fixed

      Add missing CHECK_ARG(env, cbinfo); to napi_create_function and napi_get_new_target

    • Fixed

      Wrap napi_get_array_length and napi_get_prototype with PREAMBLE

    • Fixed

      Do not include js_native_api.h in emnapi.h

  5. 0.42.0

    16 Sep 20233 fixes
    • Fixed

      Fix package types exports thanks to attw

    • Fixed

      Fix import namespace of _emnapi_async_work_pool_size

    • Fixed

      Fix uncaught exceptions policy

  6. 0.41.0

    24 Jun 20231 new
    • New

      Expose threadpool cleanup

  7. 0.40.0

    17 Jun 20231 new
    • New

      Implement experimental node_api_create_external_string_*

16 other lines we could not sort, mostly version bumps
  • feat: separate transformer packages

    0.45.0
  • fix: incorrect result of napi_create_bigint_uint64 when the input is greater than 0x7fffffffffffffff

    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.45.0
  • Delay injecting HEAP_DATA_VIEW declaration

    0.44.0
  • Move napi_adjust_external_memory to JS

    0.44.0
  • Sync latest headers

    0.44.0
  • Throw error with friendly message if symbols are not exported

    0.43.1

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.