LongYinan
b40aaa8d71
Release independent packages
...
- napi@3.0.0-beta.9
- napi-derive@3.0.0-beta.9
2025-06-24 16:33:32 +08:00
LongYinan
668b53e849
Release independent packages
...
- napi@3.0.0-beta.8
- napi-derive@3.0.0-beta.8
2025-06-08 21:44:17 +08:00
LongYinan
814bc79412
fix(napi-derive): using js_name generating wrong type defs ( #2700 )
...
This commit introduces two main changes:
1. Refactors the variable names used during the creation of
`NapiStruct` in `crates/macro/src/parser/mod.rs`. The goal is to
make the source of `NapiStruct.name` (the Rust identifier) and
`NapiStruct.js_name` (the JavaScript name, potentially from a
`#[napi(js_name = "...")]` attribute) more explicit. This change
is primarily for code readability and maintainability. The core
logic remains the same.
2. Adds a new test case to `examples/napi` to specifically verify
the behavior of `#[napi(js_name = "...")]` on structs. This
includes:
- A new Rust struct `OriginalRustNameForJsNamedStruct` in
`examples/napi/src/class.rs` decorated with
`#[napi(js_name = "MyJsNamedClass")]`.
- Corresponding tests in `examples/napi/__tests__/values.spec.ts`
that check for correct class instantiation, method calls, and
type alias generation (`OriginalRustNameForJsNamedStruct` as an
alias for `MyJsNamedClass`).
Note: I encountered some issues running the full build and tests for the example due to pre-commit hooks in the testing environment that I couldn't bypass. However, I believe the changes are correct based on static analysis and focused checks.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-06-08 17:14:57 +08:00
LongYinan
8256b9515e
Release independent packages
...
- napi@3.0.0-beta.6
- napi-derive@3.0.0-beta.6
- napi-build@3.0.0-beta.0
2025-06-04 18:24:11 +08:00
LongYinan
a8d39e98df
Release independent packages
...
- napi@3.0.0-beta.5
- napi-derive@3.0.0-beta.5
2025-06-04 17:07:12 +08:00
liuyi
5a17b88636
fix: revalidate shared libs if type def not found ( #2689 )
2025-06-04 15:05:24 +08:00
LongYinan
375b32b2b1
chore: clippy fix
2025-06-03 20:18:57 +08:00
LongYinan
9dd929db4a
chore: update napi-derive-backend version in napi-derive
2025-06-03 19:41:59 +08:00
LongYinan
2f64f200da
Release independent packages
...
- napi@3.0.0-beta.4
- napi-derive@3.0.0-beta.4
2025-06-03 19:25:47 +08:00
liuyi
d874a46647
fix: type generation for shared libs ( #2684 )
2025-06-03 19:19:29 +08:00
LongYinan
6fd2f0d962
Release independent packages
...
- napi@3.0.0-beta.3
- napi-sys@3.0.0-alpha.2
- napi-derive@3.0.0-beta.3
2025-05-29 23:14:41 +08:00
LongYinan
abf041542c
Release independent packages
...
- napi@3.0.0-beta.2
- napi-derive@3.0.0-beta.2
2025-05-22 20:04:41 +08:00
LongYinan
62a1051589
Release independent packages
...
- napi@3.0.0-beta.1
- napi-derive@3.0.0-beta.1
2025-05-19 19:53:20 +08:00
LongYinan
a9c8ae0f99
fix(napi-derive): disallow JsValue assign to napi class as a field ( #2648 )
2025-05-18 21:04:30 +08:00
LongYinan
0dd473d52b
style(napi-derive): clippy fix ( #2647 )
2025-05-18 16:08:28 +08:00
LongYinan
b1fb82dade
fix!(napi): unsound issues in Error ( #2644 )
...
- Close https://github.com/napi-rs/napi-rs/issues/1640
2025-05-17 22:44:24 +08:00
LongYinan
4407678a25
fix(napi-derive): #[cfg_attr(feature = "xxx", napi)] ( #2640 )
2025-05-17 20:37:36 +08:00
LongYinan
bbe3666233
Release independent packages
...
- napi@3.0.0-beta.0
- napi-derive@3.0.0-beta.0
- napi-build@2.2.0
2025-05-16 22:51:58 +08:00
LongYinan
21982a1508
feat(napi-derive): auto invalid type gen ( #2638 )
2025-05-16 22:30:27 +08:00
LongYinan
5d360e89fc
chore(cli): remove outdated WASI_REGISTER_TMP_PATH ( #2633 )
2025-05-14 15:24:33 +08:00
LongYinan
8cd752db86
feat(napi): support #[napi(module_exports)] ( #2631 )
2025-05-13 17:47:52 +08:00
LongYinan
ff2c64b35d
chore: clippy fix ( #2545 )
2025-04-04 13:52:49 +08:00
LongYinan
2b27a42893
Release independent packages
...
- napi@3.0.0-alpha.32
- napi-derive@3.0.0-alpha.29
2025-03-17 00:11:41 +08:00
CPunisher
511b0da174
fix(napi-derive): add object_from_js and object_to_js support for enum ( #2489 )
2025-03-03 15:06:20 +08:00
renovate[bot]
6b166afae7
fix(deps): update rust crate convert_case to 0.8 ( #2483 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-01 03:48:37 +00:00
LongYinan
b818da29e1
Release independent packages
...
- napi-derive@3.0.0-alpha.28
2025-02-22 12:08:37 +08:00
LongYinan
680742f1b6
fix(napi-derive): module_init macro fix
2025-02-22 12:06:28 +08:00
LongYinan
6ecc4503b5
Release independent packages
...
- napi@3.0.0-alpha.29
- napi-derive@3.0.0-alpha.27
2025-02-21 12:58:32 +08:00
LongYinan
d96bd288de
fix!(napi): upgrade to ctor 0.3.6 ( #2472 )
2025-02-20 12:22:29 +08:00
LongYinan
b1f8966fa7
Release independent packages
...
- napi@3.0.0-alpha.28
- napi@3.0.0-alpha.26
2025-02-11 22:36:00 +08:00
lghuahua
8ea8e9ebfc
feat(napi-derive): impl #[napi(array)] ( #2459 )
2025-02-11 13:35:27 +08:00
lghuahua
cc4d8bfa84
fix(napi-derive): enable tuple fields to support js_name attribute ( #2439 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-01-22 12:10:26 +08:00
LongYinan
1312763b11
Release independent packages
...
- napi-derive@3.0.0-alpha.25
2025-01-12 22:36:59 +08:00
LongYinan
55846053f7
Release independent packages
...
- napi@3.0.0-alpha.27
- napi-derive@3.0.0-alpha.24
2025-01-12 20:40:29 +08:00
LongYinan
cf0f03eee4
Revert "fix(deps): update rust crate convert_case to 0.7 ( #2422 )"
...
This reverts commit 68a39b4fba1aa5b73fdff52f3debf62f1f88a85c.
2025-01-12 12:36:11 +08:00
renovate[bot]
68a39b4fba
fix(deps): update rust crate convert_case to 0.7 ( #2422 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-12 03:57:04 +00:00
LongYinan
a24993b773
Release independent packages
...
- napi@3.0.0-alpha.25
- napi@3.0.0-alpha.23
2025-01-04 15:23:37 +08:00
LongYinan
98cb7671d3
feat(napi): impl ReadableStream and AsyncGenerator ( #2418 )
...
* feat(napi): impl ReadableStream and AsyncGenerator
* clippy fix
* Into<Vec<u8>> trait
* Skip node18 stream test due to Node.js bug
* Cleanup
* Also skip wasi test
* Merge test
* Skip wasi
* Useless expect-error
2025-01-03 17:09:42 +08:00
lghuahua
31cd07c8c2
feat(napi-derive): support type on #[napi] ( #2416 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-01-02 17:15:07 +08:00
LongYinan
8027aa0602
Release independent packages
...
- napi@3.0.0-alpha.24
- napi-derive@3.0.0-alpha.22
- napi-sys@3.0.0-alpha.1
- napi-build@2.1.4
2024-12-18 23:52:09 +08:00
LongYinan
dd07a04ca6
Release independent packages
...
- napi@3.0.0-alpha.22
- napi-derive@3.0.0-alpha.21
2024-12-03 21:59:14 +08:00
LongYinan
7886d24d12
Release independent packages
...
- napi@3.0.0-alpha.21
- napi-derive@3.0.0-alpha.20
2024-11-30 10:52:22 +08:00
翠 / green
521aefe420
feat(napi-derive): implement #[napi(transparent)] ( #2376 )
2024-11-30 10:28:40 +08:00
frankwang
8b474f929d
feat(napi-derive): allow ts_type in napi fn attrs ( #2362 )
...
* feat: allow ts_type in fn attrs
* chore: add override fn type example
2024-11-22 15:44:16 +08:00
LongYinan
d1d533d00e
Release independent packages
...
- napi-derive@3.0.0-alpha.19
2024-11-13 10:24:10 +08:00
LongYinan
75ff88cced
Release independent packages
...
- napi-derive@3.0.0-alpha.18
2024-11-07 14:05:36 +08:00
LongYinan
fd23549009
Release independent packages
...
- napi@3.0.0-alpha.18
- napi-derive@3.0.0-alpha.17
2024-10-31 10:50:01 +08:00
LongYinan
6a690e1c53
Release independent packages
...
- napi@3.0.0-alpha.17
- napi@3.0.0-alpha.16
- napi-sys@3.0.0-alpha.0
2024-10-28 23:50:45 +08:00
LongYinan
953f2e3553
Release independent packages
...
- napi@3.0.0-alpha.16
- napi@3.0.0-alpha.15
2024-10-21 16:46:26 +08:00
LongYinan
a38a24c359
Release independent packages
...
- napi@3.0.0-alpha.14
- napi-derive@3.0.0-alpha.14
2024-10-14 00:27:38 +08:00