Skip to content

Releases: toyobayashi/emnapi

v1.3.1

12 Oct 08:46
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.3.0...v1.3.1

v1.3.0

04 Oct 08:47
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.3.0

v1.2.0

19 May 08:52
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.1...v1.2.0

v1.1.1

30 Mar 00:03
Compare
Choose a tag to compare

What's Changed

  • fix: npm@10.4.0+ will run node-gyp rebuild (228a78d)

Full Changelog: v1.1.0...v1.1.1

v1.1.0

20 Mar 10:37
Compare
Choose a tag to compare

What's Changed

  • test: make napi_get_buffer_info check if passed buffer is valid by @toyobayashi in #108
  • feat: segregate nogc APIs from rest via type system by @toyobayashi in #110
  • test: fix unreliable assumption in js-native-api/test_cannot_run_js by @toyobayashi in #111
  • fix: missing sources in gyp wasi + threads target

Full Changelog: v1.0.0...v1.1.0

v1.0.0

29 Jan 17:00
Compare
Choose a tag to compare

What's Changed

Breaking Changes

The headers location is changed from node_modules/emnapi/include to node_modules/emnapi/include/node

# old
# emcc ... -Inode_modules/emnapi/include

# new
emcc ... -Inode_modules/emnapi/include/node

New Contributors

Full Changelog: v0.45.0...v1.0.0

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