689 Commits

Author SHA1 Message Date
renovate[bot]
337abca4b1
chore(deps): update dependency @oxc-node/core to ^0.0.35 (#3042)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 11:42:13 +00:00
Copilot
e4f5360dcd
feat(napi): add node_api_create_object_with_properties support for enum creation (#2990) 2025-11-27 23:21:23 +08:00
Chanakya
94a6d37436
fix(cli): use jsPackageName from cli options (#3035) 2025-11-27 18:12:32 +08:00
renovate[bot]
3d23d7d53f
fix(deps): update dependency @inquirer/prompts to v8 (#3020)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-21 13:27:39 +08:00
Kevin Deng
f70331b08e
perf(cli): replace debug with obug (#3019)
* perf: replace debug with obug

* upgrade obug v2
2025-11-21 12:40:48 +08:00
LongYinan
8a60cd0f64
build(napi): fix tsdown config (#3010) 2025-11-10 11:42:38 +08:00
renovate[bot]
8bca68faa0
chore(deps): update dependency @oxc-node/core to ^0.0.34 (#3013)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-09 21:18:57 +00:00
renovate[bot]
4b8cce20b1
chore(deps): update dependency @oxc-node/core to ^0.0.33 (#3012)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-09 13:20:39 +00:00
renovate[bot]
2b33ac212a
chore(deps): update dependency tsdown to ^0.16.0 (#2994)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-08 16:33:04 +00:00
LongYinan
a5abb99a5a
chore(release): publish
- @napi-rs/cli@3.4.1
 - @napi-rs/triples@2.1.4
2025-10-24 17:23:42 +08:00
LongYinan
c388c120cf
fix(cli): remove createRequire in cjs binding (#2976) 2025-10-24 17:19:28 +08:00
LongYinan
2389a73f4a
chore(release): publish
- @napi-rs/cli@3.4.0
 - @napi-rs/triples@2.1.3
2025-10-23 17:21:13 +08:00
LongYinan
13cb9dc1e0
feat(cli): resolve command from args (#2973) 2025-10-23 16:35:26 +08:00
LongYinan
01485ff423
fix(napi): do not invoke process.report on Windows (#2972) 2025-10-23 14:18:30 +08:00
Bubble
b4536731ac
fix(cli): correct OpenHarmony SDK path detection logic (#2963)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-10-21 00:50:06 +08:00
LongYinan
a0d55cc99c
chore(release): publish
- @napi-rs/cli@3.3.1
 - @napi-rs/triples@2.1.2
 - @napi-rs/wasm-runtime@1.0.7
2025-10-10 22:23:03 +08:00
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