Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump napi-derive from 2.5.0 to 2.11.1 #83

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 1, 2023

Bumps napi-derive from 2.5.0 to 2.11.1.

Release notes

Sourced from napi-derive's releases.

[email protected]

Changes

Full Changelog: https://github.com/napi-rs/napi-rs/compare/@​napi-rs/cli@​[email protected]

[email protected]

What's Changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/[email protected]@2.10.1

[email protected]

Highlights

ThreadsafeFunction as params and object fields

#[napi]
pub fn accept_callback(callback: ThreadsafeFunction<u32>) {
  std::thread::spawn(move || {
    callback.call(200);
  });
}

⬇️⬇️⬇️⬇️⬇️

export function acceptCallback(callback: (err: Error | null, value: number) -> any)

Disable ToNapiValue for Object

With the object_to_js = false filed, the ThreadsafeFunction could be set as an Object field.

#[napi(object, object_to_js = false)]
pub struct Options {
  pub enable_jsx: bool,
  pub on_data: ThreadsafeFunction<Vec<u8>>,
}

What's Changed

... (truncated)

Commits
  • 25cc07b Release independent packages
  • 11286b8 chore: publish
  • 7281f53 fix(cli): always generate typedef file even native code never changes (#1489)
  • 853f52e fix(napi): error should be send sync conditionally (#1487)
  • ec9349b Release independent packages
  • 8e3eb62 fix(napi): support custom status in Error (#1486)
  • 8e5ed4c Release independent packages
  • 90cc0a6 feat(napi): convert ToNapiValue tuple to variadic tsfn (#1475)
  • a7dcf2a fix(napi): convert u64 to u32 in serialization (#1478)
  • 80ec3dd Release independent packages
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [napi-derive](https://github.com/napi-rs/napi-rs) from 2.5.0 to 2.11.1.
- [Release notes](https://github.com/napi-rs/napi-rs/releases)
- [Commits](https://github.com/napi-rs/napi-rs/compare/[email protected]@2.11.1)

---
updated-dependencies:
- dependency-name: napi-derive
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/napi-derive-2.11.1 branch from 13e2cf7 to 21fcd2d Compare March 1, 2023 08:00
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants