{"_id":"@napi-rs/wasm-runtime@1.2.6","bugs":{"url":"https://github.com/napi-rs/napi-rs/issues"},"dist":{"shasum":"bc856c4ab60cd9c6c8e4432b5d6f50ceba0ca8f4","tarball":"http://registry-npm.ywwl.com/@napi-rs/wasm-runtime/download/@napi-rs/wasm-runtime-1.2.6.tgz","fileCount":9,"integrity":"sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==","signatures":[{"sig":"MEUCIQDuBZwoC7vyEPsV4hLn8XQPiBcUK9OznCgjByuRw2TdTQIgQiRREKi40lhy4kY9ennijpTJn98S28MyQJbdRhQ9oXg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDsC/nxkGK8FgJ1DrYFdQnCZFXCEGfq6FeRcAayj+QzKgIhAI+nSZqNBLcozviP/shrJkylzsfcday5wrwrLrl6U6A2"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@napi-rs%2fwasm-runtime@1.2.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":763319,"size":153575,"noattachment":false,"key":"/@napi-rs/wasm-runtime/-/@napi-rs/wasm-runtime-1.2.6.tgz"},"name":"@napi-rs/wasm-runtime","type":"module","author":{"url":"https://github.com/Brooooooklyn","name":"LongYinan"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=23.5.0"},"exports":{".":{"import":"./runtime.js","require":"./runtime.cjs"},"./fs":{"import":"./dist/fs.js"}},"funding":{"url":"https://github.com/sponsors/Brooooooklyn","type":"github"},"gitHead":"4fff029f67693d08be0ff16818eb9ead2637a99e","license":"MIT","scripts":{"test":"yarn run build && node --test","build":"rolldown -c","prepack":"yarn run build"},"version":"1.2.6","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c47c19cd-f258-4286-9041-9000dd20acb2"}},"homepage":"https://napi.rs/","repository":{"url":"git+https://github.com/napi-rs/napi-rs.git","type":"git","directory":"wasm-runtime"},"_npmVersion":"12.2.1","description":"Runtime and polyfill for wasm targets","directories":{},"maintainers":[{"name":"broooooklyn","email":"lynweklm@gmail.com"},{"name":"forehalo","email":"forehalo@gmail.com"}],"_nodeVersion":"24.21.0","dependencies":{"@tybys/wasm-util":"^0.10.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"wabt":"^1.0.39","memfs":"^4.64.0","tslib":"^2.8.1","buffer":"^6.0.3","events":"^3.3.0","process":"^0.11.10","rolldown":"^1.2.1","@emnapi/core":"2.0.0-beta.2","@emnapi/runtime":"2.0.0-beta.2","path-browserify":"^1.0.1","readable-stream":"^4.7.0","node-inspect-extracted":"^3.3.2"},"peerDependencies":{"@emnapi/core":"^1.7.1 || 2.0.0-beta.2","@emnapi/runtime":"^1.7.1 || 2.0.0-beta.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wasm-runtime_1.2.6_1792915230926_0.42889031469657013"},"readme":"# @napi-rs/wasm-runtime\n\nRuntime helpers and browser polyfills for napi-rs WebAssembly addons.\n\n## emnapi compatibility\n\nUse matching versions of `@emnapi/core` and `@emnapi/runtime`:\n\n- v1: `^1.7.1`. Core includes async work and threadsafe functions and ignores the\n  plugins option. Loading this package does not resolve the v2-only\n  `@emnapi/core/plugins` export.\n- v2: exactly `2.0.0-beta.2`. This package bundles the async-work and TSFN plugins\n  from that version. They depend on private core context and ABI fields, which\n  can change between prereleases. Older alphas and untested newer prereleases\n  are deliberately outside the peer range.\n\nFor raw `instantiateNapiModule` / `instantiateNapiModuleSync` calls loading a\nsingle-threaded napi-rs addon, pass\n`plugins: [emnapiAsyncWorkPlugin, emnapiTSFNPlugin]` from this package. Generated\nnapi-rs loaders already supply these plugins.\n\n## Updating the bundled plugins\n\nUpdate the exact v2 development dependencies and peer versions together with\nthe workspace resolutions. `build` checks the resolved core version against\nthe peer contract, and `prepack` rebuilds the bundles so a package cannot\nsilently reuse output from an earlier build.\n\n`yarn workspace @napi-rs/wasm-runtime test` exercises actual WebAssembly\ninitialization, async work, TSFN calls from a worker, worker load failures, and\ncleanup through both module formats. CI also installs the packed tarball with\nreal v1 and v2 peers outside the workspace to avoid root resolution overrides.\n","publish_time":1792915231017,"_cnpm_publish_time":1792915231017,"dist-tags":{"latest":"1.2.7"}}