Packages

emnapi

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

Your version

1.9.0

12 Mar 2026Where it was published

1.11.3 is the newest release of 1.x.

In short

1 new2 fixed1 changed1 internal

Release note

What's Changed

  • Fix data race and use-after-free in napi_threadsafe_function

    • fix tsfn not work in JS based async_work workers

    • fix pthread_create not work in JS based async_work workers

    • emnapi_basic[-mt].a includes libuv symbols now

  • Rename node_api_create_object_with_properties

  • Execute tsfn finalizer after queue drains when aborted

  • Add required config hint in package entry

    const { requiredConfig } = require('emnapi')
    console.log(requiredConfig.clang.wasmld)
    [
      '--import-memory',
      '--shared-memory',
      '--export-table',
      '--export=malloc',
      '--export=free',
      '--export=napi_register_wasm_v1',
      '--export-if-defined=node_api_module_get_api_version_v1',
      '--export=emnapi_thread_crashed',
      '--export-if-defined=emnapi_async_worker_create',
      '--export-if-defined=emnapi_async_worker_init'
    ]

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.