Releases: toyobayashi/emnapi
Releases · toyobayashi/emnapi
v0.36.2
What's Changed
- fix wasm32-wasi-threads prebuilt libraries missing in emnapi npm package
Full Changelog: v0.36.1...v0.36.2
v0.36.1
What's Changed
- prebuild wasm32-wasi-threads libraries by @toyobayashi in #44
Full Changelog: v0.36.0...v0.36.1
v0.36.0
What's Changed
- prebuilt library use emscripten 3.1.34
- fix prebuilt library use wrong symbol after emscripten 3.1.32 #41 (comment)
- allow symbol as reference target by @toyobayashi in #43
- allow
napi_create_string_*
receiveNULL
as parameter if length is set to0
in #43 - (BREAKING CHANGE) rename
onInstantiated
tobeforeInit
and change function signature 8c208e4
Full Changelog: v0.35.0...v0.36.0
v0.35.0
What's Changed
- Implement multithreaded async work in JS by @toyobayashi in #40
Full Changelog: v0.34.0...v0.35.0
v0.34.0
- Add tsfn JS implementation so that tsfn can be used with
libemnapi-basic.a
v0.33.1
small fix
v0.33.0
v0.32.2
- fix
SyntaxError
when using keywords as name (#36) - Prebuild
libemnapi-basic.a
(excludenapi_*_{async_work,threadsafe_function}
) and implement async work in single thread (#37)
Breaking Change
(non-emscripten) Now napiModule.init
receive an object as first parameter and require a WebAssembly.Module
in module
field.
before:
import { createNapiModule } from '@emnapi/core'
const napiModule = createNapiModule({ /* ... */ })
WebAssembly.instantiate(/* ... */).then(({ instance }) => {
const binding = napiModule.init(instance, memory, table)
})
after:
import { createNapiModule } from '@emnapi/core'
const napiModule = createNapiModule({ /* ... */ })
WebAssembly.instantiate(/* ... */).then(({ instance, module }) => {
const binding = napiModule.init({
instance,
module,
memory,
table
})
})