673 Commits

Author SHA1 Message Date
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
2025-10-03 21:58:20 +08:00
LongYinan
89d0f20b3d
chore(cli): test path assertion (#2947) 2025-10-03 21:57:40 +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
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
Bjorn Lu
6f605cce3c
chore(cli): replace find-up with empathic (#2931)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-09-19 20:14:07 +08:00
renovate[bot]
196f5db7c3
fix(deps): update dependency find-up to v8 (#2928)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-16 06:30:17 +00:00
MK (fengmk2)
b26e8d569b
fix(cli): avoid __tests__ publish to npm (#2927) 2025-09-16 14:19:23 +08:00
LongYinan
105dcede1c
chore(release): publish
- @napi-rs/cli@3.2.0
 - @napi-rs/triples@2.1.0
 - @napi-rs/wasm-runtime@1.0.4
2025-09-11 16:29:45 +08:00
LongYinan
8120ca0ac4
chore(cli): throw error if wasi file not found when NAPI_RS_FORCE_WASI=error (#2919)
* chore(cli): throw error if wasi file not found when NAPI_RS_FORCE_WASI=error

* update snapshot
2025-09-11 16:29:05 +08:00
SkyBird
807f579796
feat(cli): add support for loongarch64-unknown-linux-gnu (#2887)
* feat(target): add support for loongarch64-unknown-linux-gnu

* docs(README): update platform support status

* Update cli/src/utils/target.ts

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

* Update .github/workflows/test-release.yaml

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

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-09 23:29:22 +08:00
renovate[bot]
c3794fb215
chore(deps): update dependency tsdown to ^0.15.0 (#2914)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-09 13:53:06 +00:00
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
Kingsword
c034e1e4f0
fix(cli): fix misuse of configPath as readNapiConfig first argument (#2900)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-09-04 16:12:31 +08:00
MK (fengmk2)
466fd50d4f
chore(cli): show NAPI options on new command (#2892)
- Fix typo "THis" → "This" in promise.rs documentation
- Add pageSize option to NAPI version selection in CLI new command

Before

```bash
? Minimum node-api version (with node version requirement)
  napi1 (>= 8.6.0 < 9 || >= 9.0.0 < 10 || >= 10.0.0)
  napi2 (>= 8.10.0 < 9 || >= 9.3.0 < 10 || >= 10.0.0)
❯ napi3 (>= 6.14.2 < 7 || >= 8.11.2 < 9 || >= 9.11.0 < 10 || >= 10.0.0)
  napi4 (>= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0)
  napi5 (>= 10.17.0 < 11 || >= 12.11.0 < 13 || >= 13.0.0)
  napi6 (>= 10.20.0 < 11 || >= 12.17.0 < 13 || >= 14.0.0)
  napi7 (>= 10.23.0 < 11 || >= 12.19.0 < 13 || >= 14.12.0 < 15 || >= 15.0.0)
```

After

```bash
? Minimum node-api version (with node version requirement)
  napi1 (>= 8.6.0 < 9 || >= 9.0.0 < 10 || >= 10.0.0)
  napi2 (>= 8.10.0 < 9 || >= 9.3.0 < 10 || >= 10.0.0)
❯ napi3 (>= 6.14.2 < 7 || >= 8.11.2 < 9 || >= 9.11.0 < 10 || >= 10.0.0)
  napi4 (>= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0)
  napi5 (>= 10.17.0 < 11 || >= 12.11.0 < 13 || >= 13.0.0)
  napi6 (>= 10.20.0 < 11 || >= 12.17.0 < 13 || >= 14.0.0)
  napi7 (>= 10.23.0 < 11 || >= 12.19.0 < 13 || >= 14.12.0 < 15 || >= 15.0.0)
  napi8 (>= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0)
```

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-23 18:12:26 +08:00
Kingsword
39380a9420
refactor(cli): fs utils to use fs/promises API (#2889) 2025-08-19 14:35:34 +08:00
LongYinan
ff91de0c7f
chore(release): publish
- @napi-rs/cli@3.1.5
 - @napi-rs/triples@2.0.9
2025-08-16 15:45:33 +08:00
LongYinan
db82372302
chore(cli): skip already published native packages (#2874)
Allow to retry failed CI jobs
2025-08-14 12:16:04 +08:00
LongYinan
71408a010e
chore(release): publish
- @napi-rs/cli@3.1.4
 - @napi-rs/triples@2.0.8
2025-08-13 22:58:45 +08:00
LongYinan
81efe51e2f
chore(cli): support read version in preversion hook (#2870) 2025-08-13 02:15:33 -07:00
LongYinan
5e2906affa
chore(release): publish
- @napi-rs/cli@3.1.3
 - @napi-rs/triples@2.0.7
2025-08-10 19:10:51 +08: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
Kevin Deng
8d732027b4
refactor: replace lodash-es with es-toolkit (#2861)
* refactor: replace `lodash-es` with `es-toolkit`

* @ts-expect-error loc

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-08-10 18:46:43 +08:00
renovate[bot]
9197a570c4
chore(deps): update dependency tsdown to ^0.14.0 (#2863)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-10 10:18:41 +00:00
Kevin Deng
daad12241e
build: build with tsdown (#2860) 2025-08-10 18:08:23 +08:00
LongYinan
c56efa4150
chore(cli): set BINDGEN_EXTRA_CLANG_ARGS in cross build (#2862) 2025-08-10 15:47:57 +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
3e0cd8f4b3
chore(release): publish
- @napi-rs/cli@3.1.2
 - @napi-rs/triples@2.0.6
2025-08-08 23:04:29 +08:00
LongYinan
b47efee028
fix(cli): wrong condition for the native binding version check (#2853) 2025-08-08 23:03:44 +08:00
LongYinan
9f2ed2f8e8
chore(release): publish
- @napi-rs/cli@3.1.1
 - @napi-rs/triples@2.0.5
 - @napi-rs/wasm-runtime@1.0.3
2025-08-08 20:16:28 +08:00
LongYinan
eef8221421
fix(cli): don't enforce version check (#2849) 2025-08-08 15:31:55 +08:00
LongYinan
db71fbfad6
chore(release): publish
- @napi-rs/cli@3.1.0
 - @napi-rs/triples@2.0.4
 - @napi-rs/wasm-runtime@1.0.2
2025-08-07 23:22:41 +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
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
LongYinan
521b5774aa
chore(release): publish
- @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
LongYinan
9f0dc581be
chore(release): publish
- @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
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
LongYinan
78d76709fa
chore(release): publish
- @napi-rs/cli@3.0.1
 - @napi-rs/triples@2.0.0
 - @napi-rs/wasm-runtime@1.0.0
2025-07-21 17:56:04 +08:00
CPunisher
9765f62589
refactor(cli): reuse buffer in @napi-fs/wasm-time/fs (#2782) 2025-07-18 20:54:16 +08:00
LongYinan
cdbf2bc439
chore(release): publish
- @napi-rs/cli@3.0.0
 - @napi-rs/triples@2.0.0
 - @napi-rs/wasm-runtime@1.0.0
2025-07-17 21:17:52 +08:00