devongovett / dprint-node

A node API for the dprint TypeScript and JavaScript code formatter
MIT License
483 stars 11 forks source link

Bump napi-derive from 2.7.0 to 2.11.1 #171

Open dependabot[bot] opened 1 year ago

dependabot[bot] commented 1 year ago

Bumps napi-derive from 2.7.0 to 2.11.1.

Release notes

Sourced from napi-derive's releases.

napi-derive@2.11.1

Changes

Full Changelog: https://github.com/napi-rs/napi-rs/compare/@​napi-rs/cli@​2.14.8...napi-derive@2.11.1

napi-derive@2.10.1

What's Changed

Full Changelog: https://github.com/napi-rs/napi-rs/compare/napi-derive@2.10.0...napi-derive@2.10.1

napi-derive@2.10.0

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)