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
renovate[bot]
c250bb2c0a
chore(deps): update github artifact actions ( #2978 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-26 23:13:46 +08:00
LongYinan
3d5f5bf2ce
docs: add sponsors
2025-10-24 23:18:20 +08:00
LongYinan
a5abb99a5a
chore(release): publish
...
- @napi-rs/cli@3.4.1
- @napi-rs/triples@2.1.4
@napi-rs/cli@3.4.1
@napi-rs/triples@2.1.4
2025-10-24 17:23:42 +08:00
LongYinan
c388c120cf
fix(cli): remove createRequire in cjs binding ( #2976 )
2025-10-24 17:19:28 +08:00
github-actions[bot]
0db7ceb47d
chore: release ( #2913 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-build-v2.2.4
napi-derive-backend-v3.0.0
napi-derive-v3.3.0
napi-sys-v3.0.1
napi-v3.4.0
2025-10-24 09:47:01 +08:00
LongYinan
d9498f5cec
fix(napi): stop ref error object in wasm targets ( #2975 )
2025-10-24 09:36:59 +08:00
LongYinan
2389a73f4a
chore(release): publish
...
- @napi-rs/cli@3.4.0
- @napi-rs/triples@2.1.3
@napi-rs/cli@3.4.0
@napi-rs/triples@2.1.3
2025-10-23 17:21:13 +08:00
renovate[bot]
657aab3ce9
chore(deps): update vitest monorepo to v4 (major) ( #2971 )
2025-10-23 17:15:30 +08:00
LongYinan
13cb9dc1e0
feat(cli): resolve command from args ( #2973 )
2025-10-23 16:35:26 +08:00
LongYinan
4c5bf78ab4
test: re-enable worker_threads tests on Windows ( #2974 )
2025-10-23 16:34:13 +08:00
LongYinan
01485ff423
fix(napi): do not invoke process.report on Windows ( #2972 )
2025-10-23 14:18:30 +08:00
khj809
694db41895
feat(napi-derive): add discriminant_case to allow changing case of discriminant ( #2960 )
2025-10-23 10:25:17 +08:00
renovate[bot]
42eb08768e
chore(deps): update dependency vite to v7.1.11 [security] ( #2967 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-20 22:42:19 +00:00
Bubble
b4536731ac
fix(cli): correct OpenHarmony SDK path detection logic ( #2963 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-10-21 00:50:06 +08:00
LongYinan
637e3e7a34
chore(napi): bump rust-version ( #2966 )
2025-10-21 00:12:39 +08:00
renovate[bot]
6965bc6ff6
chore(deps): update rust-lang/crates-io-auth-action action to v1.0.2 ( #2961 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-15 13:49:13 +00:00
renovate[bot]
f128d43559
chore(deps): update actions/setup-node action to v6 ( #2959 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-15 16:20:23 +08:00
LongYinan
656bdca927
refactor(napi-derive): make typegen easier to read ( #2956 )
2025-10-11 14:46:38 +08:00
renovate[bot]
7a9397cb43
chore(deps): update release-plz/action action to v0.5.118 ( #2957 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-11 02:31:24 +00:00
LongYinan
a0d55cc99c
chore(release): publish
...
- @napi-rs/cli@3.3.1
- @napi-rs/triples@2.1.2
- @napi-rs/wasm-runtime@1.0.7
@napi-rs/cli@3.3.1
@napi-rs/triples@2.1.2
@napi-rs/wasm-runtime@1.0.7
2025-10-10 22:23:03 +08:00
LongYinan
69b8f096fd
fix(wasm-runtime): node:events polyfill on browser ( #2954 )
2025-10-10 22:08:33 +08:00
renovate[bot]
7ea726b485
fix(deps): update rust crate ctor to v0.6.0 ( #2951 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-08 21:37:00 +00:00
LongYinan
8f40ebd206
fix(napi): cleanup memory issues ( #2949 )
2025-10-05 19:35:20 +08:00
LongYinan
2cdf5fd6fb
chore(release): publish
...
- @napi-rs/cli@3.3.0
- @napi-rs/triples@2.1.1
- @napi-rs/wasm-runtime@1.0.6
@napi-rs/cli@3.3.0
@napi-rs/triples@2.1.1
@napi-rs/wasm-runtime@1.0.6
2025-10-03 21:58:20 +08:00
LongYinan
89d0f20b3d
chore(cli): test path assertion ( #2947 )
2025-10-03 21:57:40 +08:00
renovate[bot]
60b4befad1
chore(deps): lock file maintenance ( #2944 )
...
* chore(deps): lock file maintenance
* ignore bench
* fix test
* fix cache key
* fix bundle
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-10-03 20:57:21 +08:00
richerfu
9df9f890f7
feat(napi): add on_abort for AbortSignal ( #2942 )
...
* feat(napi): add on_abort for AbortSignal
* chore: upgrade example code
* fix: fix lint error
* fix: fix lint error
* Update examples/napi/src/task.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update crates/napi/src/bindgen_runtime/js_values/task.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fmt
---------
Co-authored-by: LongYinan <lynweklm@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-03 16:14:32 +08:00
Brooooooklyn
70b66ee1b0
fix(cli): bundle empathic ( #2946 )
...
- Close https://github.com/napi-rs/napi-rs/issues/2940
2025-10-03 14:27:19 +08:00
Brooooooklyn
ac118df1d4
feat(cli): export more build apis ( #2945 )
...
- Close https://github.com/napi-rs/napi-rs/issues/2709
2025-10-03 05:37:42 +00:00
Bjorn Lu
ab976cd739
chore(cli): add type imports ( #2943 )
2025-10-03 11:29:39 +08:00
renovate[bot]
f4b771a22d
chore(deps): update dependency cross-env to v10.1.0 ( #2941 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 18:08:14 +00:00
lsq
cdccff74cc
chore(cli): add support for x86_64-pc-windows-gnu ( #2935 )
...
Co-authored-by: lsq <lsqypj.gmail.com>
2025-09-24 22:08:41 +08:00
renovate[bot]
445ee37b1a
chore(deps): update dependency lerna to v9 ( #2937 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-24 16:54:38 +08:00
renovate[bot]
f6e023cf98
chore(deps): update yarn to v4.10.3 ( #2936 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-23 11:01:22 +00:00