Releases: toyobayashi/emnapi
Releases · toyobayashi/emnapi
v1.9.0
What's Changed
- fix data race and use-after-free in napi_threadsafe_function by @toyobayashi in #199
- fix tsfn not work in JS based async_work workers
- fix pthread_create not work in JS based async_work workers
- emnapi_basic[-mt].a includes libuv symbols now
- refactor: dispatch async work queue in shared memory by @toyobayashi in #200
- Avoids deadlock when main thread block on waiting queued async work starting. Completed work can not be dispatched to main thread that cause no new worker available, then queued work never start.
- wasm32-wasip1-threads target spawn async worker in JS will use pthread_create, no longer maintain a separate worker pool.
- rename node_api_create_object_with_properties by @toyobayashi in #193
- fix: execute tsfn finalizer after queue drains when aborted
- feat: add required config hint in package entry
const { requiredConfig } = require('emnapi') console.log(requiredConfig.clang.wasmld)
[ '--import-memory', '--shared-memory', '--export-table', '--export=malloc', '--export=free', '--export=napi_register_wasm_v1', '--export-if-defined=node_api_module_get_api_version_v1', '--export=emnapi_thread_crashed', '--export-if-defined=emnapi_async_worker_create', '--export-if-defined=emnapi_async_worker_init' ]
Full Changelog: v1.8.1...v1.9.0
v1.8.1
What's Changed
- feat: add support for Float16Array by @toyobayashi in #190
Full Changelog: v1.8.0...v1.8.1
v1.8.0
What's Changed
- feat: add node_api_set_prototype by @toyobayashi in #188
Full Changelog: v1.7.1...v1.8.0
v1.7.1
What's Changed
- move Node-API version detection by @toyobayashi in #182
- feat: support SharedArrayBuffer in napi_create_dataview by @toyobayashi in #183
Full Changelog: v1.7.0...v1.7.1
v1.7.0
What's Changed
- feat: add napi_create_object_with_properties method by @toyobayashi in #181
Full Changelog: v1.6.0...v1.7.0
v1.6.0
What's Changed
- feat: added SharedArrayBuffer api by @toyobayashi in #171
- feat: make napi_delete_reference use node_api_basic_env by @toyobayashi in #170
- ci: migrate to npm trusted publishing by @toyobayashi in #168
Full Changelog: v1.5.0...v1.6.0
v1.5.0
What's Changed
Prebuilt libraries are built by LLVM clang 20.
- fix: env undefined after emitting beforeExit event by @toyobayashi in #162
- fix(wasi): avoid deadlock caused by child thread abort when the main thread is in
Atomics.waitand allow blocking calls on browser main thread (requires wasi-sdk 26+ and--export=emnapi_thread_crashed) by @toyobayashi in #163 - build: backport emscripten parse tools changes to v1 by @toyobayashi in #165
Full Changelog: v1.4.5...v1.5.0
v1.4.5
What's Changed
- fix(wasm32-wasip1-threads): process never exit if trap in threads (#156)
Full Changelog: v1.4.4...v1.4.5
v1.4.4
v1.4.3
What's Changed
- update @emnapi/wasi-threads@1.0.2 in the package.json dependency of @emnapi/core
Full Changelog: v1.4.2...v1.4.3