Skip to content

Commit 6cd8dad

Browse files
chore(deps): update dependency @napi-rs/wasm-runtime to v1 (#618)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@napi-rs/wasm-runtime](https://redirect.github.com/napi-rs/napi-rs) ([source](https://redirect.github.com/napi-rs/napi-rs/tree/HEAD/wasi-runtime)) | [`^0.2.12` -> `^1.0.0`](https://renovatebot.com/diffs/npm/@napi-rs%2fwasm-runtime/0.2.12/1.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@napi-rs%2fwasm-runtime/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@napi-rs%2fwasm-runtime/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@napi-rs%2fwasm-runtime/0.2.12/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@napi-rs%2fwasm-runtime/0.2.12/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>napi-rs/napi-rs (@&#8203;napi-rs/wasm-runtime)</summary> ### [`v1.0.0`](https://redirect.github.com/napi-rs/napi-rs/releases/tag/1.0.0): [email protected] [Compare Source](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/[email protected]...@napi-rs/[email protected]) ##### Breaking changes ##### Module register The old way: ```rust register_module!(test_module, init); fn init(module: &mut Module) -> Result<()> { // .... Ok(()) } ``` The new way: ```rust #[module_exports] fn init(mut exports: JsObject) -> Result<()> { // ... Ok(()) } ``` or ```rust #[module_exports] fn init(mut exports: JsObject, env: Env) -> Result<()> { // ... Ok(()) } ``` ##### Task ```diff - pub trait Task: Send { + pub trait Task: Send + Sized { type Output: Send + Sized + 'static; type JsValue: NapiValue; - fn compute(&self) -> Result<Self::Output>; + fn compute(&mut self) -> Result<Self::Output>; - fn resolve(&self, env: &mut Env, output: Self::Output) -> Result<Self::JsValue>; + fn resolve(self, env: Env, output: Self::Output) -> Result<Self::JsValue>; + fn reject(self, _env: Env, err: Error) -> Result<Self::JsValue> { + Err(err) + } } ``` </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 9am on monday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/oxc-project/oxc-resolver). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 41a0933 commit 6cd8dad

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"devDependencies": {
3434
"@napi-rs/cli": "^3.0.0",
35-
"@napi-rs/wasm-runtime": "^0.2.12",
35+
"@napi-rs/wasm-runtime": "^1.0.0",
3636
"@types/node": "^24.0.13",
3737
"emnapi": "^1.4.4",
3838
"prettier": "^3.6.2",

pnpm-lock.yaml

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)