Skip to content

Releases: toyobayashi/emnapi

v0.45.0

29 Dec 13:00
Compare
Choose a tag to compare

What's Changed

Engineering

Full Changelog: v0.44.0...v0.45.0

v0.44.0

12 Nov 08:15
Compare
Choose a tag to compare

What's Changed

Breaking Changes

  • emnapi_get_emscripten_version has been removed, use __EMSCRIPTEN_{major,minor,tiny}__ instead.

Possible upcoming breaking changes in the future

  • Require node-api-headers as a dependency
  • Users should always define -DBUILDING_NODE_EXTENSION
  • 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 emscripten-core/emscripten#20035

Full Changelog: v0.43.1...v0.44.0

v0.43.1

21 Oct 17:00
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.43.0...v0.43.1

v0.43.0

20 Oct 14:49
Compare
Choose a tag to compare

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

v0.42.0

16 Sep 04:03
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.41.0...v0.42.0

v0.41.0

24 Jun 12:54
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.40.0...v0.41.0

v0.40.0

17 Jun 10:05
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.39.0...v0.40.0

v0.39.0

08 Jun 13:16
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.38.3...v0.39.0

v0.38.3

06 May 04:43
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.38.2...v0.38.3

v0.38.2

24 Apr 16:45
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.38.1...v0.38.2