Packages

emnapi

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

Upgrading emnapi From 0.42.0 to 0.43.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.42.0Newest 0.x0.45.0Latest1.11.3
  1. 0.42.0yours
  2. 0.43.0target

Before you upgrade

Tick each one off as you go
  • Breaking0.43.0
  • Breaking0.43.0

Release by release

  1. 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

1 other line we could not sort, mostly version bumps
  • Run finalizers directly from GC

    0.43.0

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.