735 Commits

Author SHA1 Message Date
LongYinan
bcf5e14aa8
feat(napi): add from_napi_value for Ref<T: FromNapiValue> (#2603) 2025-05-05 23:38:46 +08:00
LongYinan
674d7c7b56
refactor!(napi): add lifetime to Array (#2599) 2025-05-05 14:16:53 +08:00
LongYinan
4681ac927c
feat(napi): impl into_unknown for External (#2598) 2025-05-05 12:29:29 +08:00
LongYinan
ebcf0ea88e
fix(napi-derive): make_ref with Vec<&S> cases (#2589)
- Close https://github.com/napi-rs/napi-rs/issues/2571
2025-05-02 23:13:46 +08: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
LongYinan
ff2c64b35d
chore: clippy fix (#2545) 2025-04-04 13:52:49 +08:00
LongYinan
c1b840ee61
Release independent packages
- napi-build@2.1.6
2025-03-22 13:24:27 +08:00
CPunisher
6f6c110200
perf(build): remove --export-dynamic flag in wasi compilation (#2523) 2025-03-19 10:51:26 +08:00
LongYinan
69d1c41b7c
Release independent packages
- napi@3.0.0-alpha.33
2025-03-17 12:35:25 +08:00
LongYinan
3dd9143630
fix(napi): re-create async runtime (#2519) 2025-03-17 12:22:39 +08:00
LongYinan
2b27a42893
Release independent packages
- napi@3.0.0-alpha.32
- napi-derive@3.0.0-alpha.29
2025-03-17 00:11:41 +08: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
Cong-Cong Pan
24e4662ff8
fix(napi): reference cannot impl send (#2499) 2025-03-11 19:07:51 +08:00
Cong-Cong Pan
920811f88a
chore(napi): SharedReference can be sync (#2503) 2025-03-11 19:07:24 +08:00
CPunisher
511b0da174
fix(napi-derive): add object_from_js and object_to_js support for enum (#2489) 2025-03-03 15:06:20 +08:00
renovate[bot]
6b166afae7
fix(deps): update rust crate convert_case to 0.8 (#2483)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-01 03:48:37 +00:00
renovate[bot]
211d2d9b76
fix(deps): update rust crate ctor to 0.4.0 (#2482)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 19:40:44 +00:00
LongYinan
98f853ce90
Release independent packages
- napi@3.0.0-alpha.31
- napi-build@2.1.5
2025-02-25 21:51:27 +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
4edea1d303
Release independent packages
- napi@3.0.0-alpha.30
2025-02-24 20:15:52 +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
b818da29e1
Release independent packages
- napi-derive@3.0.0-alpha.28
2025-02-22 12:08:37 +08:00
LongYinan
680742f1b6
fix(napi-derive): module_init macro fix 2025-02-22 12:06:28 +08:00
LongYinan
6ecc4503b5
Release independent packages
- napi@3.0.0-alpha.29
- napi-derive@3.0.0-alpha.27
2025-02-21 12:58:32 +08:00
LongYinan
d96bd288de
fix!(napi): upgrade to ctor 0.3.6 (#2472) 2025-02-20 12:22:29 +08:00
LongYinan
384dcac588
chore(napi): remove thread_local! in REFERENCE_MAP (#2470) 2025-02-16 18:08:04 +08:00
LongYinan
0ce8fab19c
chore(napi): merge thread cleanup (#2469) 2025-02-16 16:55:16 +08:00
LongYinan
b1f8966fa7
Release independent packages
- napi@3.0.0-alpha.28
- napi@3.0.0-alpha.26
2025-02-11 22:36:00 +08:00
renovate[bot]
9e3f809c2e
fix(deps): update rust crate ctor to 0.3 (#2463)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 11:42:45 +00:00
LongYinan
13f4969ee2
chore: remove debug print 2025-02-11 18:12:50 +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
Zack Radisic
2d8e19d7c6
chore(napi): expose functions which turn raw pointer into External (#2449)
* Expose functions which turn raw pointer into External

* Add safety documentation
2025-02-03 13:03:29 +08:00
lghuahua
cc4d8bfa84
fix(napi-derive): enable tuple fields to support js_name attribute (#2439)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-01-22 12:10:26 +08:00
LongYinan
1868b0a214
chore: clippy fix (#2433) 2025-01-20 10:45:44 +08:00
LongYinan
1312763b11
Release independent packages
- napi-derive@3.0.0-alpha.25
2025-01-12 22:36:59 +08:00
LongYinan
ea05ad3845
fix(napi-derive): hide the lifetime recursively in codegen (#2426) 2025-01-12 22:36:14 +08:00
LongYinan
55846053f7
Release independent packages
- napi@3.0.0-alpha.27
- napi-derive@3.0.0-alpha.24
2025-01-12 20:40:29 +08:00
LongYinan
05572bf1d4
feat(napi): allow create ReadableStream from polyfill (#2424) 2025-01-12 15:32:12 +08:00
LongYinan
cf0f03eee4
Revert "fix(deps): update rust crate convert_case to 0.7 (#2422)"
This reverts commit 68a39b4fba1aa5b73fdff52f3debf62f1f88a85c.
2025-01-12 12:36:11 +08:00
renovate[bot]
68a39b4fba
fix(deps): update rust crate convert_case to 0.7 (#2422)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-12 03:57:04 +00:00
LongYinan
73d5c1d803
fix(napi): add back Buffer/TypedArray custom gc on wasi (#2421) 2025-01-12 11:45:50 +08:00
LongYinan
8ebc851fce
Release independent packages
napi@3.0.0-alpha.26

napi-derive@3.0.0-alpha.26
2025-01-04 20:07:20 +08:00
LongYinan
35ebf8f7d4
fix(napi): remove feature flag on Object::new 2025-01-04 20:06:40 +08:00
LongYinan
a24993b773
Release independent packages
- napi@3.0.0-alpha.25
- napi@3.0.0-alpha.23
2025-01-04 15:23:37 +08:00
LongYinan
98cb7671d3
feat(napi): impl ReadableStream and AsyncGenerator (#2418)
* feat(napi): impl ReadableStream and AsyncGenerator

* clippy fix

* Into<Vec<u8>> trait

* Skip node18 stream test due to Node.js bug

* Cleanup

* Also skip wasi test

* Merge test

* Skip wasi

* Useless expect-error
2025-01-03 17:09:42 +08:00
LongYinan
aad71cdb00
docs: update badge and matrix 2025-01-02 17:52:39 +08:00
lghuahua
31cd07c8c2
feat(napi-derive): support type on #[napi] (#2416)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-01-02 17:15:07 +08:00