394 Commits

Author SHA1 Message Date
LongYinan
3a720f09cf
feat(sys): sync Node-API version changes (#2661)
* feat(sys): sync Node-API version changes

* upgrade electron

* move node_api_create_buffer_from_arraybuffer to experimental
2025-05-25 00:48:56 +08:00
LongYinan
f8fab45de7
feat(napi): serialize BigInt to serde::Value (#2659) 2025-05-24 23:18:40 +08:00
LongYinan
3c5f22001b
fix(napi): wrong error status in ThreadsafeFunction callback (#2656) 2025-05-22 17:24:46 +08:00
LongYinan
7182db3a81
feat(napi): EscapableHandleScope API (#2652) 2025-05-19 19:52:21 +08:00
LongYinan
92b094e487
feat(napi): new handle scope API (#2650) 2025-05-18 23:16:40 +08:00
LongYinan
18816c710c
refactor!(napi): move JsObjectValue into bindgen_runtime (#2649) 2025-05-18 22:29:45 +08:00
LongYinan
a9c8ae0f99
fix(napi-derive): disallow JsValue assign to napi class as a field (#2648) 2025-05-18 21:04:30 +08:00
LongYinan
74f349c180
fix(napi): reuse issue on AbortSignal (#2646)
- Close https://github.com/napi-rs/napi-rs/issues/2141
2025-05-18 15:57:10 +08:00
LongYinan
b1fb82dade
fix!(napi): unsound issues in Error (#2644)
- Close https://github.com/napi-rs/napi-rs/issues/1640
2025-05-17 22:44:24 +08:00
LongYinan
4407678a25
fix(napi-derive): #[cfg_attr(feature = "xxx", napi)] (#2640) 2025-05-17 20:37:36 +08:00
LongYinan
8e481c1eba
style: clippy fix (#2639) 2025-05-16 22:24:11 +08:00
LongYinan
ce990542b9
fix(napi): module_exports binding (#2632) 2025-05-13 19:54:25 +08:00
LongYinan
8cd752db86
feat(napi): support #[napi(module_exports)] (#2631) 2025-05-13 17:47:52 +08:00
LongYinan
7a972425b8
fix(napi): nested Either and Promise validate logic (#2625)
- Close https://github.com/napi-rs/napi-rs/issues/2578
2025-05-12 00:33:14 +08:00
LongYinan
653212ac7a
fix(napi): unused warning on JsString::from_raw (#2622)
* fix(napi): unused warning on JsString::from_raw

* Fix compile
2025-05-11 22:18:47 +08:00
LongYinan
9de545e7a2
refactor!(napi): add lifetime to Object (#2619) 2025-05-11 19:51:29 +08:00
LongYinan
813c51e16a
refactor!(napi): move depracated types behind compat-mode feature flag (#2612) 2025-05-07 22:34:26 +08:00
LongYinan
23e9de2caa
refactor!(napi): add lifetime to Unkonwn (#2611)
Remove JsUnknown
2025-05-07 22:32:24 +08:00
LongYinan
ed9ca20daa
refactor!(napi): add lifetime for JsSymbol (#2610) 2025-05-07 20:12:19 +08:00
LongYinan
8f852442cf
test: fix bun test runner (#2607) 2025-05-07 00:06:07 +08:00
LongYinan
95832ff168
refactor!(napi): introduce JsValue and JsObjectValue trait (#2606)
Add lifetime for JsGlobal JsTimeout and JSON
2025-05-06 23:45:37 +08:00
LongYinan
bcf5e14aa8
feat(napi): add from_napi_value for Ref<T: FromNapiValue> (#2603) 2025-05-05 23:38:46 +08:00
LongYinan
55bed7e3fb
test(example): join all threads before return (#2600) 2025-05-05 14:30:53 +08:00
LongYinan
674d7c7b56
refactor!(napi): add lifetime to Array (#2599) 2025-05-05 14:16:53 +08:00
renovate[bot]
407a400ca0
chore(deps): update dependency @oxc-node/core to ^0.0.27 (#2595)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-03 16:17:48 +00:00
renovate[bot]
4baae8dfb2
chore(deps): update dependency @oxc-node/core to ^0.0.25 (#2588)
* chore(deps): update dependency @oxc-node/core to ^0.0.25

* Update oxnode

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-05-03 08:55:22 +00:00
renovate[bot]
69a092eb43
chore(deps): update dependency electron to v36 (#2577)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-03 15:51:53 +08:00
renovate[bot]
a495e55e84
chore(deps): update dependency @oxc-node/core to ^0.0.24 (#2576)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-28 17:00:37 +00:00
Cong-Cong Pan
0ce726d9c7
feat(napi): serde value ref to napi_value (#2550)
* perf: convert serde value ref to napi_value

* chore: add test case

* fix: snapshot
2025-04-10 16:17:59 +08:00
renovate[bot]
9edd39a037
chore(deps): update dependency @oxc-node/core to ^0.0.23 (#2552)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-10 03:13:17 +00:00
LongYinan
ff2c64b35d
chore: clippy fix (#2545) 2025-04-04 13:52:49 +08:00
renovate[bot]
c9c49973c1
chore(deps): update dependency @oxc-node/core to ^0.0.22 (#2543)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-02 11:43:39 +00:00
LongYinan
5554c663ac
chore(cli): update deps (#2542) 2025-04-01 23:49:56 +08:00
LongYinan
59b31b389f
chore(cli): excludeNetwork on getting report (#2531)
* chore(cli): excludeNetwork on getting report

* Update cli/src/api/templates/js-binding.ts

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

* format

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-03-29 23:26:35 +08:00
renovate[bot]
06215529d8
chore(deps): update dependency sinon to v20 (#2526)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-26 21:32:30 +08:00
LongYinan
3dd9143630
fix(napi): re-create async runtime (#2519) 2025-03-17 12:22:39 +08:00
LongYinan
c62acd2bfe
chore: upgrade npm dependencies (#2516) 2025-03-16 22:29:04 +08:00
renovate[bot]
c57ac0cc79
chore(deps): update dependency @oxc-node/core to ^0.0.21 (#2515)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-16 14:07:53 +00:00
Cong-Cong Pan
cc9989f4ac
fix(napi): js callback in threadsafefunction should not be Send (#2510) 2025-03-16 21:56:29 +08:00
LongYinan
1fe6ad0430
feat(napi): tokio multi-thread mode on wasi (#2501)
* feat(napi): tokio multi-thread mode on wasi

* tokio_unstable flag

* snapshot

* ensure runtime

* oncelock combine lazylock

* noop feature
2025-03-13 23:53:19 +08:00
renovate[bot]
a25504a577
chore(deps): update dependency @oxc-node/core to ^0.0.20 (#2498)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-05 12:12:04 +00:00
renovate[bot]
26d89a6f25
chore(deps): update dependency electron to v35 (#2495)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-05 04:17:24 +00:00
LongYinan
68bf0c7561
chore(example): add extends JavaScript Error (#2497) 2025-03-05 11:28:26 +08:00
LongYinan
ee75b119cd
refactor!(napi): link crt1-reactor.o as poor man's wasi-exec-model=reactor (#2480) 2025-02-25 21:45:38 +08:00
LongYinan
ed6da2b741
fix(napi): compile error on noop feature (#2478) 2025-02-24 23:19:47 +08:00
LongYinan
86548570f2
fix(napi): compatible with Rust 1.85 (#2477)
Ref: https://github.com/rust-lang/rust/issues/137510
2025-02-24 20:14:12 +08:00
LongYinan
d96bd288de
fix!(napi): upgrade to ctor 0.3.6 (#2472) 2025-02-20 12:22:29 +08:00
LongYinan
0ce8fab19c
chore(napi): merge thread cleanup (#2469) 2025-02-16 16:55:16 +08:00
LongYinan
8d8ccdfc77
refactor!(napi): TypedArray API surfaces (#2462) 2025-02-11 13:35:43 +08:00
lghuahua
8ea8e9ebfc
feat(napi-derive): impl #[napi(array)] (#2459) 2025-02-11 13:35:27 +08:00