491 Commits

Author SHA1 Message Date
Valentin Semirulnik
841ddf4231
fix(cli): NAPI_RS_NATIVE_LIBRARY_PATH usage (#2907)
* return value for NAPI_RS_NATIVE_LIBRARY_PATH branch

* update example

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-09-08 14:23:30 +08:00
LongYinan
3894db5e42
fix(napi): JsStringUtf8 memory leak (#2911) 2025-09-08 13:45:17 +08:00
LongYinan
484ca281dd
feat(napi): implement from_static on JsStringLatin1 and JsStringUtf16 (#2908) 2025-09-05 12:48:41 +08:00
renovate[bot]
3c1a64f261
chore(deps): update dependency electron to v38 (#2904)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-04 16:12:47 +08:00
LongYinan
07380dfe49
feat(napi): support external JsStringLatin1 and JsStringUtf16 (#2898) 2025-09-01 10:40:40 +08:00
lghuahua
9d338543b9
chore(napi): extends the Set types interoperability (#2875) 2025-08-15 19:12:46 -07:00
LongYinan
cf5807f9f9
fix(napi-derive): codegen issue for &'env [u8] param (#2881) 2025-08-15 05:18:51 -07:00
LongYinan
583a2ba5c8
chore(triples): update target list (#2879)
* chore(triples): update target list

* convert compat tests to esm

* Fix node 20 test
2025-08-15 18:31:56 +08:00
LongYinan
0f69c71127
chore: add publish: false to tests crate 2025-08-14 14:25:38 +08:00
github-actions[bot]
264a8797c8
chore: release v3.2.3 (#2866) 2025-08-13 10:13:04 -07:00
LongYinan
cdfef770e3
fix(napi): link issue on cargo test --features noop (#2872) 2025-08-13 10:08:09 -07:00
LongYinan
364e81648b
fix(cli): generate next method on Iterator (#2864)
* fix(cli): generate next method on Iterator

* update snapshot
2025-08-10 19:00:03 +08:00
LongYinan
bcef141990
fix(napi-derive): comments idents regression (#2857) 2025-08-09 23:02:07 +08:00
renovate[bot]
fb4b878212
chore(deps): update dependency @oxc-node/core to ^0.0.32 (#2855)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-08 17:14:08 +00:00
LongYinan
b47efee028
fix(cli): wrong condition for the native binding version check (#2853) 2025-08-08 23:03:44 +08:00
LongYinan
eef8221421
fix(cli): don't enforce version check (#2849) 2025-08-08 15:31:55 +08:00
LongYinan
dca00683d8
fix(napi): handle the return_if_invalid for Array param (#2846)
* fix(napi): handle the return_if_invalid for Array param

* Update crates/backend/src/codegen/fn.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update crates/backend/src/codegen/fn.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-08 15:10:43 +08:00
Mikaël Francoeur
83389a186b
feat(napi): add ScopeGenerator trait (#2831)
* add lifetime to iterator

* Add ScopedIterator

* fix type gen

* Clippy fix

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-08-07 21:44:01 +08:00
Mikaël Francoeur
88fca29e3b
feat: make generator an iterator (#2784)
* make the generator an iterator

* add JSDoc for generators

* prevent naming conflicts

* add JSDoc struct

* update snapshot

* clippy

* Update typedef

* update fmt

* Apply code review

* test compatible

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-08-07 08:03:37 +00:00
LongYinan
1e30088198
fix(wasm-runtime): avoid wasm-util from tree shaking by rollup (#2810)
* fix(wasm-runtime): avoid wasm-util from tree shaking by rollup

* fix filename
2025-08-07 12:55:48 +08:00
LongYinan
ce4699025b
chore(napi): align the subsystem target triple parsing (#2838) 2025-08-07 12:55:05 +08:00
LongYinan
310581a5f8
feat(cli): validate the native binding versions (#2837) 2025-08-07 11:58:56 +08:00
cddf31fbad
test(napi): add more tests for Error.cause support (#2835) 2025-08-07 10:33:10 +08:00
7f5013eee3
feat(napi): add Error.cause support to napi::Error (#2829)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-08-05 12:53:36 +08:00
LongYinan
e175512d43
fix(napi): async task finally is not called (#2824) 2025-08-01 15:05:08 +08:00
LongYinan
10416f1b43
fix(napi): relax the lifetime restriction in PromiseRaw callbacks (#2819) 2025-07-31 09:51:10 +08:00
renovate[bot]
642b5aba1c
chore(deps): update dependency cross-env to v10 (#2811)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-30 11:10:02 +08:00
bde407ddab
fix(napi-derive): generate types for threadsafe_function with WEAK=true correctly (#2813) 2025-07-30 00:24:15 +08:00
LongYinan
c6cf127e7e
chore(cli): upgrade all NAPI-RS projects (#2803) 2025-07-23 21:17:30 +08:00
LongYinan
bb9883ab09
fix(napi-derive): lifetime codegen issue (#2794) 2025-07-22 17:54:18 +08:00
github-actions[bot]
03805d1d3a
chore: release (#2788)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-21 16:12:40 +08:00
LongYinan
1ca2bad43f
feat(napi): provide ScopedTask to resolve JsValue with lifetime (#2786) 2025-07-21 13:55:44 +08:00
LongYinan
c067e0d7bb
chore(cli): skip Buffer import if fs is enable (#2779) 2025-07-17 14:10:48 +08:00
LongYinan
2700b04782
fix(cli): ohos binding 2025-07-13 00:04:52 +08:00
LongYinan
16b5a37951
fix(cli): ohos js binding logic (#2775) 2025-07-12 23:13:23 +08:00
LongYinan
0a8a499fa6
fix(cli): binding format (#2774) 2025-07-12 17:55:04 +08:00
LongYinan
69d28061ff
feat(cli): support ohos (#2773) 2025-07-12 17:29:15 +08:00
JounQin
93b9aa267c
fix(cli): check kHandle instead (#2768) 2025-07-07 17:24:52 +08:00
LongYinan
485befffcb
chore(example): add define_class example (#2765) 2025-07-06 21:43:35 -07:00
renovate[bot]
0443dc5133
chore(deps): update dependency vite-plugin-node-polyfills to ^0.24.0 (#2767)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-07 01:47:54 +00:00
LongYinan
0119f09237
feat(napi): support untyped TypedArray slice (#2762) 2025-07-03 16:50:35 +08:00
Brooooooklyn
2fed7f85e0
fix(napi): spawn_future_with_callback lifetime (#2760) 2025-07-03 07:09:22 +00:00
LongYinan
5add173ca2
feat(napi): support c string for object apis (#2759) 2025-07-03 14:08:05 +08:00
LongYinan
7e34e30b66
feat!(napi): create function from #[napi] fn (#2757) 2025-07-02 16:54:31 +08:00
LongYinan
99f4c089d4
feat(napi): add napi_ref impl for Object Symbol and External (#2754) 2025-07-01 00:45:32 -07:00
LongYinan
092f887f39
fix(napi-derive): generate object key types properly (#2752) 2025-06-30 17:10:17 +08:00
LongYinan
2273031264
test(napi): add fixture for #2746 (#2747) 2025-06-25 22:35:25 +08:00
LongYinan
8c3db48686
style: run clippy on nightly Rust (#2744) 2025-06-25 13:55:11 +08:00
Cameron
562bb698d6
fix(napi-derive): single parentheses arg is provided in ThreadsafeFunction (#2742)
* test: add repro for #2726

* fix

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-06-24 16:09:47 +00:00
renovate[bot]
adcd6aaa3b
chore(deps): update dependency electron to v37 (#2741)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-24 23:59:29 +08:00