3367 Commits

Author SHA1 Message Date
LongYinan
a0d55cc99c
chore(release): publish
- @napi-rs/cli@3.3.1
 - @napi-rs/triples@2.1.2
 - @napi-rs/wasm-runtime@1.0.7
@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
69b8f096fd
fix(wasm-runtime): node:events polyfill on browser (#2954) 2025-10-10 22:08:33 +08:00
renovate[bot]
7ea726b485
fix(deps): update rust crate ctor to v0.6.0 (#2951)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-08 21:37:00 +00: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
@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
renovate[bot]
60b4befad1
chore(deps): lock file maintenance (#2944)
* chore(deps): lock file maintenance

* ignore bench

* fix test

* fix cache key

* fix bundle

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-10-03 20:57:21 +08:00
richerfu
9df9f890f7
feat(napi): add on_abort for AbortSignal (#2942)
* feat(napi): add on_abort for AbortSignal

* chore: upgrade example code

* fix: fix lint error

* fix: fix lint error

* Update examples/napi/src/task.rs

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

* Update crates/napi/src/bindgen_runtime/js_values/task.rs

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

* fmt

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-03 16:14:32 +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
renovate[bot]
f4b771a22d
chore(deps): update dependency cross-env to v10.1.0 (#2941)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 18:08:14 +00: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
renovate[bot]
445ee37b1a
chore(deps): update dependency lerna to v9 (#2937)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-24 16:54:38 +08:00
renovate[bot]
f6e023cf98
chore(deps): update yarn to v4.10.3 (#2936)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-23 11:01:22 +00:00
LongYinan
e5ba267f28
ci: reduce cache (#2933) 2025-09-19 20:58:21 +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
LongYinan
38b0b42592
chore: fix rust 1.90 behavior (#2932) 2025-09-19 19:44:42 +08:00
renovate[bot]
e3a05d1d7c
chore(deps): update yarn to v4.10.2 (#2930)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-18 21:07:49 +00:00
renovate[bot]
41567efa02
chore(deps): update yarn to v4.10.1 (#2929)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-18 16:40:40 +00: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
renovate[bot]
24a6eac7a5
chore(deps): update release-plz/action action to v0.5.117 (#2923)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-13 17:32:06 +00:00
LongYinan
bba5010f6f
chore(release): publish
- @napi-rs/wasm-runtime@1.0.5
@napi-rs/wasm-runtime@1.0.5
2025-09-13 15:08:13 +08:00
Toyo Li
65a85053d3
fix(build): export emnapi_thread_crashed (#2920) 2025-09-13 13:21:03 +08:00
Nikita Sivukhin
7406f09ea5
chore(wasm-runtime): update @tybys/wasm-util in order to avoid runtime error with access to process.env.NODE_DEBUG_NATIVE (#2921)
This PR updates @tybys/wasm-util package to the latest version 0.10.1
In this version process.env access were handled gracefully in order to not fail at runtime for some bundlers

- see https://github.com/toyobayashi/wasm-util/issues/4 for more details
2025-09-13 13:20:30 +08:00
renovate[bot]
eb495ba7f5
chore(deps): update release-plz/action action to v0.5.116 (#2922)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-12 11:02:39 +00: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
@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
renovate[bot]
4e98ebd244
chore(deps): update release-plz/action action to v0.5.115 (#2917)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-10 16:34:01 +00:00
renovate[bot]
f604af0226
chore(deps): update dependency vite to v7.1.5 [security] (#2916)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-09 21:19:36 +00: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
LongYinan
08869f5e7f
fix(napi): node_api_create_external_string_utf16 on wasm (#2912) 2025-09-08 22:37:33 +08:00
github-actions[bot]
2cb9c17e1c
chore: release (#2893)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-derive-backend-v2.2.0 napi-derive-v3.2.5 napi-v3.3.0
2025-09-08 15:02:06 +08: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
LongYinan
3894db5e42
fix(napi): JsStringUtf8 memory leak (#2911) 2025-09-08 13:45:17 +08:00
renovate[bot]
e633c472e7
chore(deps): update release-plz/action action to v0.5.114 (#2909)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-06 02:19:00 +00:00
LongYinan
484ca281dd
feat(napi): implement from_static on JsStringLatin1 and JsStringUtf16 (#2908) 2025-09-05 12:48:41 +08:00
renovate[bot]
3c1a64f261
chore(deps): update dependency electron to v38 (#2904)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-04 16:12:47 +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
renovate[bot]
df80a8447a
chore(deps): update actions/setup-node action to v5 (#2906)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-04 16:12:15 +08:00
renovate[bot]
ca17be8309
chore(deps): update release-plz/action action to v0.5.113 (#2903)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-01 15:17:57 +00:00
renovate[bot]
38e55faf90
chore(deps): lock file maintenance (#2901)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-01 23:07:51 +08:00
LongYinan
07380dfe49
feat(napi): support external JsStringLatin1 and JsStringUtf16 (#2898) 2025-09-01 10:40:40 +08:00
renovate[bot]
10a736e4f2
chore(deps): update yarn to v4.9.4 (#2895)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-26 17:03:32 +00: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
renovate[bot]
7b597bd8b5
chore(deps): update yarn to v4.9.3 (#2890)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-20 20:03:00 +00:00
Kingsword
39380a9420
refactor(cli): fs utils to use fs/promises API (#2889) 2025-08-19 14:35:34 +08:00
github-actions[bot]
93ad5ab916
chore: release (#2882)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
napi-derive-backend-v2.1.4 napi-derive-v3.2.4 napi-v3.2.4
2025-08-16 17:07:19 +08:00