dprint-node
dprint-node copied to clipboard
Bump napi-derive from 2.7.0 to 2.11.1
Bumps napi-derive from 2.7.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
- fix(napi-derive): incorrect Task output type in some cases by
@Brooooooklynin napi-rs/napi-rs#1466Full Changelog: https://github.com/napi-rs/napi-rs/compare/[email protected]@2.10.1
[email protected]
Highlights
ThreadsafeFunctionas 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
ToNapiValuefor ObjectWith the
object_to_js = falsefiled, theThreadsafeFunctioncould 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
- feat(napi-derive): generate ThreadsafeFunction types by
@Brooooooklynin napi-rs/napi-rs#1449- feat(napi-derive): allow partial implement From/To Napivalue for Object by
@Brooooooklynin napi-rs/napi-rs#1448- chore(napi-derive): allow unsafe async &mut self by
@Brooooooklynin napi-rs/napi-rs#1453
... (truncated)
Commits
25cc07bRelease independent packages11286b8chore: publish7281f53fix(cli): always generate typedef file even native code never changes (#1489)853f52efix(napi): error should be send sync conditionally (#1487)ec9349bRelease independent packages8e3eb62fix(napi): support custom status in Error (#1486)8e5ed4cRelease independent packages90cc0a6feat(napi): convert ToNapiValue tuple to variadic tsfn (#1475)a7dcf2afix(napi): convert u64 to u32 in serialization (#1478)80ec3ddRelease independent packages- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)