Skip to content

v0.43.0

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Oct 14:49
· 91 commits to main since this release

What's Changed

  • enable uncaught exceptions policy by default by @toyobayashi in #81
  • run finalizers directly from GC by @toyobayashi in #72
  • fix: add missing CHECK_ARG(env, cbinfo); to napi_create_function and napi_get_new_target by @toyobayashi in #82
  • fix: wrap napi_get_array_length and napi_get_prototype with PREAMBLE by @toyobayashi in #83
  • do not include js_native_api.h in emnapi.h by @toyobayashi in #86

Breaking Changes

  • 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>
  • [non-emscripten] 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') {
          // ...
          }
        }
      })

Full Changelog: v0.42.0...v0.43.0