659 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
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
LongYinan
40839a3a5e
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.100
 - @napi-rs/triples@2.0.0-alpha.62
2025-07-17 16:54:23 +08:00
LongYinan
c067e0d7bb
chore(cli): skip Buffer import if fs is enable (#2779) 2025-07-17 14:10:48 +08:00
CPunisher
23a3fec5dc
feat(cli): add buffer to wasi browser template (#2777) 2025-07-15 21:18:34 +08:00
LongYinan
5ae583f73b
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.99
 - @napi-rs/triples@2.0.0-alpha.61
2025-07-13 00:05:08 +08:00
LongYinan
2700b04782
fix(cli): ohos binding 2025-07-13 00:04:52 +08:00
LongYinan
67449f1917
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.98
 - @napi-rs/triples@2.0.0-alpha.60
2025-07-12 23:13:51 +08:00
LongYinan
16b5a37951
fix(cli): ohos js binding logic (#2775) 2025-07-12 23:13:23 +08:00
LongYinan
402679859f
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.97
 - @napi-rs/triples@2.0.0-alpha.59
2025-07-12 17:55:43 +08:00
LongYinan
0a8a499fa6
fix(cli): binding format (#2774) 2025-07-12 17:55:04 +08:00
LongYinan
f2e838cf99
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.96
 - @napi-rs/triples@2.0.0-alpha.58
2025-07-12 17:32:10 +08:00
LongYinan
69d28061ff
feat(cli): support ohos (#2773) 2025-07-12 17:29:15 +08:00
LongYinan
0aa36c39a6
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.95
 - @napi-rs/triples@2.0.0-alpha.57
2025-07-12 13:38:42 +08:00
LongYinan
3bb592d47f
fix(cli): omit exports fields in publishConfig (#2772) 2025-07-12 11:39:38 +08:00
LongYinan
08c364f5a7
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.94
 - @napi-rs/triples@2.0.0-alpha.56
2025-07-12 09:56:05 +08:00