3436 Commits

Author SHA1 Message Date
LongYinan
257dde1cb5
chore(release): publish
- @napi-rs/cli@3.5.0
 - @napi-rs/triples@2.1.5
 - @napi-rs/wasm-runtime@1.1.0
@napi-rs/cli@3.5.0 @napi-rs/triples@2.1.5 @napi-rs/wasm-runtime@1.1.0
2025-12-02 17:25:16 +08:00
LongYinan
4ca47e1aef
chore(napi): add back pub NODE_VERSION_* (#3046) 2025-12-02 17:22:39 +08:00
LongYinan
cf0465f390
chore(sys): add back non dyn-symbols behavior (#3045) 2025-12-02 16:46:42 +08:00
Stanisław Czech
295c6b3c60
fix(napi): bigInt comparison (#3039) 2025-12-02 14:58:37 +08:00
LongYinan
54a9654fae
fix(napi-derive): add paren for function types (#3044) 2025-12-02 14:56:17 +08:00
Copilot
a67347189d
feat(napi-derive): add tracing feature for debug logging NAPI function calls (#3041) 2025-12-02 14:20:08 +08:00
renovate[bot]
3cca48c652
chore(deps): lock file maintenance (#3040)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-02 11:04:22 +08:00
renovate[bot]
e0f59938a8
chore(deps): update dependency tinybench to v6 (#3043)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-02 11:04:10 +08:00
renovate[bot]
337abca4b1
chore(deps): update dependency @oxc-node/core to ^0.0.35 (#3042)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 11:42:13 +00:00
Copilot
e4f5360dcd
feat(napi): add node_api_create_object_with_properties support for enum creation (#2990) 2025-11-27 23:21:23 +08:00
Chanakya
94a6d37436
fix(cli): use jsPackageName from cli options (#3035) 2025-11-27 18:12:32 +08:00
Stanisław Czech
dc4d475eee
chore(napi): add Eq and PartialEq trait to BigInt (#3033) 2025-11-25 17:33:51 +08:00
LongYinan
a10be50edb
fix(napi): shutdown runtime at env cleanup on windows (#3026) 2025-11-25 17:31:09 +08:00
renovate[bot]
b561839f1f
chore(deps): update release-plz/action action to v0.5.119 (#3032)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-24 21:55:04 +00:00
renovate[bot]
51e781e035
fix(deps): update rust crate convert_case to 0.10 (#3031)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-23 13:30:08 +00:00
renovate[bot]
ff94a9520e
chore(deps): update yarn to v4.12.0 (#3030)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-23 13:18:14 +00:00
renovate[bot]
4a38ca7848
chore(deps): update actions/checkout action to v6 (#3025)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-21 16:54:27 +08:00
renovate[bot]
3d23d7d53f
fix(deps): update dependency @inquirer/prompts to v8 (#3020)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-21 13:27:39 +08:00
Kevin Deng
f70331b08e
perf(cli): replace debug with obug (#3019)
* perf: replace debug with obug

* upgrade obug v2
2025-11-21 12:40:48 +08:00
renovate[bot]
dddfe12274
chore(deps): update dependency @types/sinon to v21 (#3021)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-21 12:38:09 +08:00
spacebear
6449f7d310
chore: update MSRV in README.md (#3023)
The MSRV changed to 1.88.0 as of napi-build 2.3.0 https://crates.io/crates/napi-build/versions
2025-11-19 13:10:34 +08:00
renovate[bot]
f1dcc4e120
chore(deps): update dependency js-yaml to v4.1.1 [security] (#3017)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-14 19:08:39 +00:00
github-actions[bot]
67e711d69b
chore: release (#3009)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-build-v2.3.1 napi-derive-backend-v3.0.2 napi-derive-v3.3.3 napi-v3.5.2
2025-11-10 12:33:53 +08:00
LongYinan
f61c6e9f6e
fix(build): add back undefined symbols lookup behavior (#3015) 2025-11-10 12:27:40 +08:00
LongYinan
8a60cd0f64
build(napi): fix tsdown config (#3010) 2025-11-10 11:42:38 +08:00
renovate[bot]
4ba887fbe6
chore(deps): update dependency esbuild to ^0.27.0 (#3014)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-09 21:30:35 +00:00
renovate[bot]
8bca68faa0
chore(deps): update dependency @oxc-node/core to ^0.0.34 (#3013)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-09 21:18:57 +00:00
renovate[bot]
4b8cce20b1
chore(deps): update dependency @oxc-node/core to ^0.0.33 (#3012)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-09 13:20:39 +00:00
renovate[bot]
9a3f7d8b3e
chore(deps): update dependency esbuild to ^0.26.0 (#3011)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-09 06:44:12 +00:00
renovate[bot]
347caf4c1c
fix(deps): update rust crate convert_case to 0.9 (#3001)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-08 22:07:16 +00:00
renovate[bot]
2b33ac212a
chore(deps): update dependency tsdown to ^0.16.0 (#2994)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-08 16:33:04 +00:00
LongYinan
eea268d3dd
ci: fix memory testing hang (#3008) 2025-11-09 00:21:36 +08:00
github-actions[bot]
26f1805ec6
chore: release (#3006)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-derive-backend-v3.0.1 napi-derive-v3.3.2
2025-11-07 22:51:05 +08:00
renovate[bot]
c929dd3753
chore(deps): update yarn to v4.11.0 (#3007)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-07 22:49:11 +08:00
LongYinan
25c159c500
fix(napi-derive): TypedArray typegen (#3005) 2025-11-07 22:47:15 +08:00
github-actions[bot]
f71d660b43
chore: release (#3002)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-derive-v3.3.1 napi-sys-v3.1.1 napi-v3.5.1
2025-11-07 21:24:30 +08:00
LongYinan
2a34f77272
fix(napi): TypedArraySlice creation (#3004) 2025-11-07 21:22:48 +08:00
renovate[bot]
ffd09cf177
chore(deps): update rust-lang/crates-io-auth-action action to v1.0.3 (#3000)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-07 15:10:48 +08:00
LongYinan
2ceecf6ea1
chore(napi): Promise and ThreadsafeFunction::call_async don't require tokio (#2998) 2025-11-07 15:10:31 +08:00
github-actions[bot]
39230082f6
chore: release (#2977)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-build-v2.3.0 napi-sys-v3.1.0 napi-v3.5.0
2025-11-06 17:08:41 +08:00
LongYinan
52c0da5c19
fix(napi): memory leak in PromiseRaw cleanup callback (#2995)
* fix(napi): fix memory leak in Promise::from_unknown()

This commit fixes a memory leak that occurred when converting a Promise
from an Unknown object, specifically manifesting in Deno environments.

The issue was in the `promise_callback_finalizer` function, which had
a type mismatch when cleaning up callback allocations:

1. The callback was stored as `Box<(Cb, *mut bool)>` (a tuple containing
   the callback and an executed flag pointer)
2. The finalizer incorrectly cast it as `Box<Cb>` when trying to free it
3. This caused improper deallocation and memory leaks

The fix ensures:
- The executed flag allocation is always properly cleaned up
- The callback tuple is cast to the correct type `(Cb, *mut bool)`
  before being dropped
- All allocations are properly freed in both execution paths (callback
  executed or not executed)

Fixes #2926

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-06 17:07:00 +08:00
Boshen
606ff62192
feat(sys): use libloading to load napi symbols at runtime on all platform (#2996) 2025-11-06 17:05:29 +08:00
renovate[bot]
4828b9d20e
chore(deps): update cross-platform-actions/action action to v0.30.0 (#2993)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-05 22:13:03 +08:00
richerfu
31bde7a763
chore(napi): mark tsfn data as pub and split SendableResolver to indent file (#2992) 2025-11-04 18:14:14 +08:00
renovate[bot]
edd419aeba
chore(deps): lock file maintenance (#2989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-01 19:48:41 +08:00
renovate[bot]
8173c228ad
chore(deps): update dependency @rollup/plugin-commonjs to v29 (#2983)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-31 10:37:21 +08:00
LongYinan
bfc3cae718
ci: change armv7-lts to armv7-22 (#2984) 2025-10-30 23:22:29 +08:00
renovate[bot]
a62b9f2a98
chore(deps): update dependency @rollup/plugin-alias to v6 (#2982)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-29 15:12:25 +08:00
richerfu
dd2625339e
chore(napi): mark SendableResolver and PromiseRaw as pub (#2981) 2025-10-29 15:12:09 +08:00
renovate[bot]
e2a4ee6548
chore(deps): update dependency electron to v39 (#2979)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-28 23:03:01 +08:00