v0.43.0
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);
tonapi_create_function
andnapi_get_new_target
by @toyobayashi in #82 - fix: wrap
napi_get_array_length
andnapi_get_prototype
with PREAMBLE by @toyobayashi in #83 - do not include
js_native_api.h
inemnapi.h
by @toyobayashi in #86
Breaking Changes
-
If you are using
emnapi.h
, it should be included after includingjs_native_api.h
ornode_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 toonCreateWorker(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