devongovett / dprint-node

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

Bump napi-derive from 2.7.0 to 2.11.0 #168

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps napi-derive from 2.7.0 to 2.11.0.

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
  • 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
  • c34ccc9 fix(napi): impl Send Sync to External
  • efacce7 chore: publish
  • cb529d2 fix(cli): JS bindgen file now respects destDir (#1481)
  • f24c9e6 Release independent packages
  • 3101565 fix(napi): dropping Error should not call napi-sys if feature is set to noop ...
  • c70c76d 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)
dependabot[bot] commented 1 year ago

Superseded by #171.