3210 Commits

Author SHA1 Message Date
LongYinan
0aa36c39a6
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.95
 - @napi-rs/triples@2.0.0-alpha.57
@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
@napi-rs/cli@3.0.0-alpha.94 @napi-rs/triples@2.0.0-alpha.56
2025-07-12 09:56:05 +08:00
LongYinan
948e0762e9
feat(cli): allow skip optionalDependencies publish (#2771) 2025-07-12 09:54:17 +08:00
LongYinan
47ced636f9
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.93
 - @napi-rs/triples@2.0.0-alpha.55
 - @napi-rs/wasm-runtime@0.2.12
@napi-rs/cli@3.0.0-alpha.93 @napi-rs/triples@2.0.0-alpha.55 @napi-rs/wasm-runtime@0.2.12
2025-07-10 22:02:12 +08:00
renovate[bot]
1f6cb6c453
fix(deps): update dependency @tybys/wasm-util to ^0.10.0 (#2769)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-08 13:37:53 +00:00
JounQin
93b9aa267c
fix(cli): check kHandle instead (#2768) 2025-07-07 17:24:52 +08:00
LongYinan
485befffcb
chore(example): add define_class example (#2765) 2025-07-06 21:43:35 -07:00
renovate[bot]
0443dc5133
chore(deps): update dependency vite-plugin-node-polyfills to ^0.24.0 (#2767)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-07 01:47:54 +00:00
LongYinan
b5fa1ff688
Release independent packages
- napi@3.0.0-beta.12
- napi-derive@3.0.0-beta.12
napi-derive@3.0.0-beta.12 napi@3.0.0-beta.12
2025-07-04 22:50:28 +08:00
LongYinan
e9e806e920
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.92
 - @napi-rs/triples@2.0.0-alpha.54
@napi-rs/cli@3.0.0-alpha.92 @napi-rs/triples@2.0.0-alpha.54
2025-07-04 22:40:52 +08:00
CPunisher
5078d548be
feat(wasm-runtime): never refer handles of workers (#2763) 2025-07-04 21:46:52 +08:00
LongYinan
3985bc68cf
fix(cli): set TARGET_CC rather than CC (#2764) 2025-07-04 21:45:42 +08:00
LongYinan
0119f09237
feat(napi): support untyped TypedArray slice (#2762) 2025-07-03 16:50:35 +08:00
Brooooooklyn
2fed7f85e0
fix(napi): spawn_future_with_callback lifetime (#2760) 2025-07-03 07:09:22 +00:00
LongYinan
5add173ca2
feat(napi): support c string for object apis (#2759) 2025-07-03 14:08:05 +08:00
LongYinan
7e34e30b66
feat!(napi): create function from #[napi] fn (#2757) 2025-07-02 16:54:31 +08:00
Cong-Cong Pan
6222b39f5a
perf(napi): use Cell<bool> to replace AtomicBool (#2506)
* perf: use Cell<bool> to replace AtomicBool

* cargo fmt

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-07-02 09:29:07 +08:00
LongYinan
a64df02e84
perf(napi): sender in Promise does not need to be Arc (#2756) 2025-07-01 08:40:24 -07:00
LongYinan
718b7d1ee0
fix(napi): drop SymbolRef and ObjectRef properly (#2755) 2025-07-01 08:28:42 -07:00
renovate[bot]
7033044488
chore(deps): lock file maintenance (#2753)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-01 17:13:09 +08:00
LongYinan
99f4c089d4
feat(napi): add napi_ref impl for Object Symbol and External (#2754) 2025-07-01 00:45:32 -07:00
LongYinan
0a8de79fc4
Release independent packages
- napi-build@2.2.2
napi-build@2.2.2
2025-06-30 17:15:43 +08:00
LongYinan
caf0400090
Release independent packages
- napi@3.0.0-beta.11
- napi-derive@3.0.0-beta.11
napi-derive@3.0.0-beta.11 napi@3.0.0-beta.11
2025-06-30 17:12:39 +08:00
LongYinan
092f887f39
fix(napi-derive): generate object key types properly (#2752) 2025-06-30 17:10:17 +08:00
LongYinan
b5e9c41d14
fix(napi): remove DerefMut impl for all TypedArray types (#2750) 2025-06-29 08:49:29 -07:00
LongYinan
56998d5f12
fix(napi): callback should be Fn rather than FnOnce (#2749)
In ThreadsafeFunction::call_with_return_value
2025-06-28 21:57:54 +08:00
CPunisher
b25c5de30c
fix(build): increase wasi stack size (#2748) 2025-06-27 19:29:54 +08:00
LongYinan
2273031264
test(napi): add fixture for #2746 (#2747) 2025-06-25 22:35:25 +08:00
LongYinan
3898211b3a
Release independent packages
- napi@3.0.0-beta.10
- napi-derive@3.0.0-beta.10
napi-derive@3.0.0-beta.10 napi@3.0.0-beta.10
2025-06-25 16:06:28 +08:00
LongYinan
9a376fe3f1
test(cli): prevent path error on Windows (#2745) 2025-06-25 16:03:53 +08:00
LongYinan
8c3db48686
style: run clippy on nightly Rust (#2744) 2025-06-25 13:55:11 +08:00
Cameron
562bb698d6
fix(napi-derive): single parentheses arg is provided in ThreadsafeFunction (#2742)
* test: add repro for #2726

* fix

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-06-24 16:09:47 +00:00
renovate[bot]
adcd6aaa3b
chore(deps): update dependency electron to v37 (#2741)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-24 23:59:29 +08:00
LongYinan
27d0d923c6
fix(cli): throw error if targets are duplicated (#2743) 2025-06-24 23:48:27 +08:00
LongYinan
3e2fe8a2a3
fix(napi): create external TypedArray in Electron env (#2740) 2025-06-24 22:48:00 +08:00
LongYinan
71da5b6dc1
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.91
 - @napi-rs/triples@2.0.0-alpha.53
@napi-rs/cli@3.0.0-alpha.91 @napi-rs/triples@2.0.0-alpha.53
2025-06-24 17:58:00 +08:00
renovate[bot]
a023dd54c7
chore(deps): update dependency vite to v7 (#2736)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-24 17:57:14 +08:00
LongYinan
6c2b0b54de
fix(cli): build config (#2735) 2025-06-24 17:56:59 +08:00
LongYinan
b40aaa8d71
Release independent packages
- napi@3.0.0-beta.9
- napi-derive@3.0.0-beta.9
napi-derive@3.0.0-beta.9 napi@3.0.0-beta.9
2025-06-24 16:33:32 +08:00
LongYinan
aeefd091b1
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.90
 - @napi-rs/triples@2.0.0-alpha.52
@napi-rs/cli@3.0.0-alpha.90 @napi-rs/triples@2.0.0-alpha.52
2025-06-24 16:32:30 +08:00
LongYinan
3dce1533fd
test(napi): add fixture for re-export complex class (#2733) 2025-06-24 16:31:26 +08:00
LongYinan
1486b1f174
test(napi): add complex pub type fixture (#2732) 2025-06-24 15:37:43 +08:00
LongYinan
a773f8d438
fix(napi): prevent panic in ThreadsafeFunctionHandle::drop if ThreadsafeFunction::create fail (#2731) 2025-06-24 15:01:08 +08:00
LongYinan
0d1a4c4a94
fix(cli): handle CI.yaml targets omit (#2730) 2025-06-24 13:21:01 +08:00
dependabot[bot]
52206cc4ce
chore(deps): bump pbkdf2 from 3.1.2 to 3.1.3 (#2729)
Bumps [pbkdf2](https://github.com/crypto-browserify/pbkdf2) from 3.1.2 to 3.1.3.
- [Changelog](https://github.com/browserify/pbkdf2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/pbkdf2/compare/v3.1.2...v3.1.3)

---
updated-dependencies:
- dependency-name: pbkdf2
  dependency-version: 3.1.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-24 13:16:03 +08:00
LongYinan
1481031f37
fix(cli): handle the wasi names in new command (#2725) 2025-06-23 21:23:42 +08:00
LongYinan
8df3f942e6
fix(napi): wrong drop impl for TypedArray::with_external_data (#2724) 2025-06-23 17:48:21 +08:00
LongYinan
de954666e0
feat(cli): new project from github project template (#2723) 2025-06-23 16:21:48 +08:00
renovate[bot]
99d2930f7d
chore(deps): update dependency @oxc-node/core to ^0.0.29 (#2718)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-19 19:55:55 +00:00