Packages

@emnapi/runtime

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

Your version

51 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.x · latest line
  2. 1.11.3

    25 Jul 2026
    • runtime: Define deferred state as own properties

    • Refresh memory views after unshared memory growth (v1.x backport)

  3. 1.11.2

    3 Jul 2026
    • Bind captured setImmediate to the global receiver

  4. 1.11.1

    13 Jun 2026
    • Refresh stale shared memory buffer before atomic access (v1.x backport)

  5. 1.11.0

    8 Jun 2026
    • Add napi_create_external_sharedarraybuffer

    • Support SharedArrayBuffer in napi_create_typedarray

  6. 1.10.0

    16 Apr 2026
  7. 1.9.2

    2 Apr 2026
    • Allow maximum memory 4GB

  8. 1.9.1

    19 Mar 2026

    fix for emscripten 5.0.3
    3051725

  9. 1.9.0

    12 Mar 2026
    • Fix data race and use-after-free in napi_threadsafe_function

    • Rename node_api_create_object_with_properties

    • Execute tsfn finalizer after queue drains when aborted

  10. 1.8.1

    4 Jan 2026
    • Add support for Float16Array

  11. 1.8.0

    3 Jan 2026
    • Add node_api_set_prototype

  12. 1.7.1

    14 Nov 2025
    • Move Node-API version detection

    • Support SharedArrayBuffer in napi_create_dataview

  13. 1.7.0

    3 Nov 2025
    • Add napi_create_object_with_properties method

  14. 1.6.0

    21 Oct 2025
    • Added SharedArrayBuffer api

    • Make napi_delete_reference use node_api_basic_env

  15. 1.5.0

    29 Aug 2025
    • Env undefined after emitting beforeExit event

    • wasi: Avoid deadlock caused by child thread abort when the main thread is in Atomics.wait and allow blocking calls on browser main thread (requires wasi-sdk 26+ and --export=emnapi_thread_crashed)

  16. 1.4.5

    18 Jul 2025
    • wasm32-wasip1-threads: Process never exit if trap in threads

  17. 1.4.4

    7 Jul 2025
    • Worker.onerror may receive an Event

  18. 1.4.3

    15 Apr 2025
    • Update @emnapi/wasi-threads@1.0.2 in the package.json dependency of @emnapi/core

  19. 1.4.2

    15 Apr 2025
    • Check SharedArrayBuffer

  20. 1.4.1

    12 Apr 2025
    • Add checks for message channel usage in web runtime

  21. 1.4.0

    28 Mar 2025
    • Allow napi_delete_reference in basic finalizers

    • Define NAPI_VERSION 10

    • Reduce the overhead of binding function call (1.5x faster)

  22. 1.3.1

    12 Oct 2024
    • napi_is_buffer(Uint8Array) should return true

    • Add napi_create_buffer_from_arraybuffer

  23. 1.3.0

    4 Oct 2024
    • Add suppressDestroy to context

    • Update libuv source

    • Add support for UTF-8 and Latin-1 property keys

  24. 1.2.0

    19 May 2024
    • Pthread worker leak

    • Gyp add OS wasm alias

    • Add new option to allow waiting thread start before thread-spawn return

  25. 1.1.1

    29 Mar 2024
    • npm@10.4.0+ will run node-gyp rebuild

  26. 1.1.0

    20 Mar 2024
    • Segregate nogc APIs from rest via type system

    • Missing sources in gyp wasi + threads target

  27. 1.0.0

    29 Jan 2024
    • Improve getUnsharedTextDecoderView

    • Add a prepare script

    • Truncate number in napi_get_value_{int32,uint32,int64}

  28. 0.45.x
  29. 0.45.0

    29 Dec 2023
    • feat: separate transformer packages

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

    • feat: add node_api_create_property_key_utf16 as a alias of napi_create_string_utf16

  30. 0.44.x
  31. 0.44.0

    12 Nov 2023
    • 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

  32. 0.43.x
  33. 0.43.1

    21 Oct 2023
    • Fix duplicated symbol __copy_tls in LLVM 17

    • Wasi threads max tid should be 0x1FFFFFFF

    • Throw error with friendly message if symbols are not exported

  34. 0.43.0

    20 Oct 2023
    • Breaking

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

      + #include <js_native_api.h> // or #include <node_api.h>
        #include <emnapi.h>
    • Breaking

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

        const { instantiateNapiModule } = require('@emnapi/core')
      
        instantiateNapiModule({
          // ...
          onCreateWorker ({ type }) {
      -     if (type === 'pthread') {
      +     if (type === 'thread') {
            // ...
            }
          }
        })
    • Enable uncaught exceptions policy by default

  35. 0.42.x
  36. 0.42.0

    16 Sep 2023
    • Rename internal NAPI_VERSION definition

    • Fix package types exports thanks to attw

    • Use -fno-strict-aliasing for emmalloc

  37. 0.41.x
  38. 0.41.0

    24 Jun 2023
    • Expose threadpool cleanup

  39. 0.40.x
  40. 0.40.0

    17 Jun 2023
    • Implement experimental node_api_create_external_string_*

    • Drop ts-macros to fix broken output code

  41. 0.39.x
  42. 0.39.0

    5 Jun 2023
    • Get Node API version used by addon

    • callIntoModule force uncaught exception

    • Add status napi_cannot_run_js

  43. 0.38.x
  44. 0.38.3

    6 May 2023
    • Fix MessageChannel undefined

  45. 0.38.2

    24 Apr 2023
    • Check NAPI_VERSION after #include "node_api.h"

  46. 0.38.1

    24 Apr 2023
    • Fix compilation error when defining NAPI_VERSION < 8

  47. 0.38.0

    21 Apr 2023
    • Breaking

      No longer ship modified node-addon-api headers

    • Fix emnapi_sync_memory signature

    • Decode small UTF8 string

  48. 0.37.x
  49. 0.37.0

    16 Apr 2023
    • Make error message more friendly when Buffer is undefined

    • Support coming emscripten 3.1.36

    • Sync Node-API headers from Node.js official repo

  50. 0.36.x
  51. 0.36.3

    4 Apr 2023

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  52. 0.36.2

    31 Mar 2023
    • Fix wasm32-wasi-threads prebuilt libraries missing in emnapi npm package

  53. 0.36.1

    31 Mar 2023
    • Prebuild wasm32-wasi-threads libraries

  54. 0.36.0

    30 Mar 2023
    • Breaking

      (BREAKING CHANGE) rename onInstantiated to beforeInit and change function signature 8c208e4

    • Prebuilt library use emscripten 3.1.34

    • Fix prebuilt library use wrong symbol after emscripten 3.1.32 #41

  55. 0.35.x
  56. 0.35.0

    23 Mar 2023
    • Implement multithreaded async work in JS

  57. 0.34.x
  58. 0.34.0

    16 Mar 2023
    • Add tsfn JS implementation so that tsfn can be used with libemnapi-basic.a

  59. 0.33.x
  60. 0.33.1

    9 Mar 2023

    small fix

  61. 0.33.0

    9 Mar 2023
    • Support wasm32-wasi-threads

    • Add new API for non-emscripten

  62. 0.32.x
  63. 0.32.2

    25 Feb 2023
    • Fix SyntaxError when using keywords as name

    • Prebuild libemnapi-basic.a (exclude napi_*_{async_work,threadsafe_function}) and implement async work in single thread

  64. 0.32.0 – 0.32.12 releases without a noteShow each

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.