@napi-rs/wasm-runtime
Runtime and polyfill for wasm targets
Last updated a month ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @napi-rs/wasm-runtime 
SYNC missed versions from official npm registry.

@napi-rs/wasm-runtime

Runtime helpers and browser polyfills for napi-rs WebAssembly addons.

emnapi compatibility

Use matching versions of @emnapi/core and @emnapi/runtime:

  • v1: ^1.7.1. Core includes async work and threadsafe functions and ignores the plugins option. Loading this package does not resolve the v2-only @emnapi/core/plugins export.
  • v2: exactly 2.0.0-beta.2. This package bundles the async-work and TSFN plugins from that version. They depend on private core context and ABI fields, which can change between prereleases. Older alphas and untested newer prereleases are deliberately outside the peer range.

For raw instantiateNapiModule / instantiateNapiModuleSync calls loading a single-threaded napi-rs addon, pass plugins: [emnapiAsyncWorkPlugin, emnapiTSFNPlugin] from this package. Generated napi-rs loaders already supply these plugins.

Updating the bundled plugins

Update the exact v2 development dependencies and peer versions together with the workspace resolutions. build checks the resolved core version against the peer contract, and prepack rebuilds the bundles so a package cannot silently reuse output from an earlier build.

yarn workspace @napi-rs/wasm-runtime test exercises actual WebAssembly initialization, async work, TSFN calls from a worker, worker load failures, and cleanup through both module formats. CI also installs the packed tarball with real v1 and v2 peers outside the workspace to avoid root resolution overrides.

Current Tags

  • 1.2.7                                ...           latest (24 days ago)

39 Versions

  • 1.2.7                                ...           24 days ago
  • 1.2.6                                ...           a month ago
  • 1.2.5                                ...           2 months ago
  • 1.2.4                                ...           3 months ago
  • 1.2.3                                ...           4 months ago
  • 1.2.2                                ...           4 months ago
  • 1.2.1                                ...           4 months ago
  • 1.2.0                                ...           4 months ago
  • 1.1.6                                ...           5 months ago
  • 1.1.5                                ...           6 months ago
  • 1.1.4                                ...           7 months ago
  • 1.1.3                                ...           8 months ago
  • 1.1.2                                ...           8 months ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.2.12                                ...           a year ago
  • 0.2.11                                ...           a year ago
  • 0.2.10                                ...           2 years ago
  • 0.2.9                                ...           2 years ago
  • 0.2.8                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Total 162
Today 1
This Week 1
This Month 87
Last Day 0
Last Week 79
Last Month 49
Dependencies (1)
Dev Dependencies (12)

© 2010 - cnpmjs.org x YWFE | Home | YWFE