3275 Commits

Author SHA1 Message Date
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
CPunisher
946f8929fc
fix(wasm-runtime): add constructors for nested values in objects (#2827)
* Fix

* Pass processed recursively
2025-08-07 12:35:00 +08:00
LongYinan
ec889e566a
ci: use npm trusted publisher (#2839) 2025-08-07 12:20:47 +08:00
LongYinan
310581a5f8
feat(cli): validate the native binding versions (#2837) 2025-08-07 11:58:56 +08:00
renovate[bot]
5611735775
chore(deps): update actions/download-artifact action to v5 (#2834)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 10:33:24 +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
Kingsword
04aacf4abc
chore(ci): use mlugg/setup-zig instead of unmaintained action (#2828) 2025-08-04 09:03:43 -07:00
github-actions[bot]
b35ff14e77
chore(napi): release v3.1.6 (#2825)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-v3.1.6
2025-08-01 15:10:53 +08:00
renovate[bot]
f73d7b6ec4
chore(deps): lock file maintenance (#2822)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-01 15:05:22 +08:00
LongYinan
e175512d43
fix(napi): async task finally is not called (#2824) 2025-08-01 15:05:08 +08:00
github-actions[bot]
e44329a059
chore(napi): release v3.1.5 (#2820)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-v3.1.5
2025-07-31 09:53:58 +08:00
LongYinan
10416f1b43
fix(napi): relax the lifetime restriction in PromiseRaw callbacks (#2819) 2025-07-31 09:51:10 +08:00
github-actions[bot]
045f0afedd
chore(napi): release v3.1.4 (#2818) napi-v3.1.4 2025-07-31 07:01:10 +08:00
LongYinan
7a26a98ee9
fix(napi): the generic trait rectiction of Env::spawn should be ScopedTask (#2817) 2025-07-31 00:49:24 +08:00
github-actions[bot]
a40e2368e6
chore: release (#2814)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-derive-backend-v2.0.3 napi-derive-v3.1.2
2025-07-30 11:56:41 +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
github-actions[bot]
069661e91d
chore: release (#2805)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-build-v2.2.3 napi-v3.1.3
2025-07-24 21:41:32 +08:00
LongYinan
521b5774aa
chore(release): publish
- @napi-rs/cli@3.0.4
 - @napi-rs/triples@2.0.3
@napi-rs/cli@3.0.4 @napi-rs/triples@2.0.3
2025-07-24 21:34:20 +08:00
LongYinan
552f9c9ac4
chore(cli): setjmp link path (#2808) 2025-07-24 21:24:28 +08:00
LongYinan
02bd12a724
fix(cli): migrate to latest wasm sjlj (#2806) 2025-07-24 20:23:27 +08:00
renovate[bot]
d450209efd
chore(deps): update release-plz/action action to v0.5.110 (#2807)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-24 12:06:18 +00:00
Cong-Cong Pan
7c3dc968c1
perf(napi): optimize HashMap allocation in FromNapiValue implementation for HashMap (#2796)
* perf(napi): optimize HashMap allocation in FromNapiValue implementation for HashMap

* fix type

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-07-24 15:41:00 +08:00
LongYinan
9f0dc581be
chore(release): publish
- @napi-rs/cli@3.0.3
 - @napi-rs/triples@2.0.2
@napi-rs/cli@3.0.3 @napi-rs/triples@2.0.2
2025-07-23 22:16:59 +08:00
LongYinan
cf6d8b0334
fix(cli): rename options (#2804) 2025-07-23 22:14:24 +08:00
LongYinan
5816924e6e
chore(release): publish
- @napi-rs/cli@3.0.2
 - @napi-rs/triples@2.0.1
@napi-rs/cli@3.0.2 @napi-rs/triples@2.0.1
2025-07-23 21:19:37 +08:00
LongYinan
c6cf127e7e
chore(cli): upgrade all NAPI-RS projects (#2803) 2025-07-23 21:17:30 +08:00
LongYinan
8c5a6c4fa7
chore(cli): upgrade @napi-rs/cross-toolchain (#2801) 2025-07-23 17:09:51 +08:00
LongYinan
df26ae6b65
chore(cli): upgrade @napi-rs/wasm-tools (#2800) 2025-07-23 16:14:11 +08:00
LongYinan
167c9e2c6a
chore(cli): enforce the option values if user not provided (#2799) 2025-07-23 15:51:16 +08:00
dependabot[bot]
bec83c2a24
chore(deps): bump form-data from 4.0.3 to 4.0.4 (#2797)
---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-23 14:06:07 +08:00
renovate[bot]
56f6bc87a5
chore(deps): update cross-platform-actions/action action to v0.29.0 (#2798)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-22 17:14:59 +00:00
github-actions[bot]
da45fc2d30
chore(napi): release v3.1.2 (#2795)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-derive-backend-v2.0.2 napi-derive-v3.1.1 napi-v3.1.2
2025-07-22 18:02:31 +08:00
LongYinan
bb9883ab09
fix(napi-derive): lifetime codegen issue (#2794) 2025-07-22 17:54:18 +08:00
Cong-Cong Pan
a2ade0dfe5
perf(napi): use Vec with_capacity in FromNapiValue (#2793) 2025-07-22 17:40:15 +08:00
LongYinan
739b091a71
chore(release): publish
- @napi-rs/cli@3.0.1
 - @napi-rs/triples@2.0.0
 - @napi-rs/wasm-runtime@1.0.1
@napi-rs/wasm-runtime@1.0.1
2025-07-21 21:30:55 +08:00
github-actions[bot]
63d536be4f
chore(napi): release v3.1.1 (#2792)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-v3.1.1
2025-07-21 20:47:24 +08:00
LongYinan
b6f883a053
Revert "fix(napi): callback should be Fn rather than FnOnce" (#2791)
This reverts commit 7449e5f5cc24e3b92e83aeba68991da7cf8a5b2c.
2025-07-21 20:45:17 +08:00
LongYinan
78d76709fa
chore(release): publish
- @napi-rs/cli@3.0.1
 - @napi-rs/triples@2.0.0
 - @napi-rs/wasm-runtime@1.0.0
@napi-rs/cli@3.0.1
2025-07-21 17:56:04 +08:00
LongYinan
0bf30cc77e
ci: fix cargo registry token napi-derive-backend-v2.0.1 napi-derive-v3.1.0 napi-v3.1.0 2025-07-21 16:19:50 +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
16dbf68dca
chore(napi): add UnwindSafe and RefUnwindSafe back to AbortSignal and AsyncWorkPromise (#2789) 2025-07-21 16:03:24 +08:00
LongYinan
1ca2bad43f
feat(napi): provide ScopedTask to resolve JsValue with lifetime (#2786) 2025-07-21 13:55:44 +08:00
LongYinan
c657665a01
ci: pin release-plz action 2025-07-21 10:39:48 +08:00
LongYinan
e12d905ff0
ci: add release-crates job (#2787) 2025-07-21 10:21:18 +08:00
LongYinan
9aff30fc3c
chore: dedupe lockfile 2025-07-18 20:55:08 +08:00
CPunisher
9765f62589
refactor(cli): reuse buffer in @napi-fs/wasm-time/fs (#2782) 2025-07-18 20:54:16 +08:00