Skip to content

chore(deps): update dependency @napi-rs/wasm-runtime to v1#210

Merged
renovate[bot] merged 1 commit intomainfrom
renovate/major-npm-packages
Jul 20, 2025
Merged

chore(deps): update dependency @napi-rs/wasm-runtime to v1#210
renovate[bot] merged 1 commit intomainfrom
renovate/major-npm-packages

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jul 20, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@napi-rs/wasm-runtime (source) ^0.2.4 -> ^1.0.0 age adoption passing confidence
@napi-rs/wasm-runtime (source) ^0.2.6 -> ^1.0.0 age adoption passing confidence

Release Notes

napi-rs/napi-rs (@​napi-rs/wasm-runtime)

v1.0.0: napi@1.0.0

Compare Source

Breaking changes
Module register

The old way:

register_module!(test_module, init);

fn init(module: &mut Module) -> Result<()> {
  // ....
  Ok(())
}

The new way:

#[module_exports]
fn init(mut exports: JsObject) -> Result<()> {
  // ...
  Ok(())
}

or

#[module_exports]
fn init(mut exports: JsObject, env: Env) -> Result<()> {
  // ...
  Ok(())
}
Task
- 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)
+   }
}

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 these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) July 20, 2025 18:45
@renovate renovate bot merged commit 5e06631 into main Jul 20, 2025
57 checks passed
@renovate renovate bot deleted the renovate/major-npm-packages branch July 20, 2025 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants