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.10.1 #165

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps napi-derive from 2.7.0 to 2.10.1.

Release notes

Sourced from napi-derive's releases.

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

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

napi-derive@2.9.5

What's Changed

... (truncated)

Commits
  • dc372d9 Release independent packages
  • 3bd2bf4 fix(napi): run_script return type (#1467)
  • 3158cb0 fix(napi-derive): incorrect Task output type in some cases (#1466)
  • 9506e3f chore: publish
  • 2888080 ci: use rust beta on FreeBSD
  • a302c9c fix(cli): upload GitHub assets issue
  • 47a0d1a Release independent packages
  • e9de568 fix(napi): also apply electron external data fallback to lowlevel APIs (#1458)
  • fde2d64 Release independent packages
  • adb2508 fix(napi): add missing NoExternalBuffersAllowed (#1457)
  • 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)
dependabot[bot] commented 1 year ago

Superseded by #168.