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
LongYinan
afd081d003
feat(napi,napi-derive): allow lifetime in Class ( #2298 )
2024-10-10 05:59:14 +02:00
LongYinan
9a6f01a20c
Release independent packages
...
- napi@3.0.0-alpha.13
- napi-derive@3.0.0-alpha.13
2024-10-03 00:01:16 +02:00
LongYinan
69cd73d71c
refactor!(napi,napi-derive): add lifetime to ClassInstance ( #2286 )
2024-10-02 10:42:34 +02:00
LongYinan
34829fb5f7
Release independent packages
...
- napi@3.0.0-alpha.12
- napi-derive@3.0.0-alpha.12
2024-09-23 17:01:31 +08:00
LongYinan
a4a8d31a42
chore(napi): remove once_cell ( #2271 )
2024-09-23 16:57:14 +08:00
LongYinan
f704b4ac0f
feat(napi-derive): add async_runtime attribute ( #2270 )
2024-09-23 16:21:13 +08:00
LongYinan
cfc88ee541
Release independent packages
...
- napi-derive@3.0.0-alpha.11
2024-09-21 14:21:38 +08:00
LongYinan
0698bb1d80
feat(napi-derive): allow napi fn with lifetime ( #2266 )
2024-09-21 12:26:41 +08:00
LongYinan
511340a52f
Release independent packages
...
- napi@3.0.0-alpha.11
- napi-derive@3.0.0-alpha.10
2024-09-20 23:08:34 +08:00
LongYinan
fc4b6a632d
refactor(napi-derive): expand order ( #2265 )
2024-09-20 22:44:34 +08:00
LongYinan
91af2c5961
Release independent packages
...
- napi@3.0.0-alpha.10
- napi-derive@3.0.0-alpha.9
2024-09-19 22:30:36 +08:00
LongYinan
521ef58f59
refactor(napi): allow create BufferSlice from external data ( #2263 )
...
- also refactor the enum codegen, now we will not emit #[derive(Copy,
Clone)] for the original enums.
- also refacotr the fn codegen, now #[napi] fn can accept env: &Env as
argument, this is useful when the return type contains lifetime
2024-09-19 22:22:33 +08:00
Richer
814188f1ad
fix(derive): fix clippy warning with newer rust version ( #2262 )
2024-09-19 21:55:48 +08:00
LongYinan
a9690383c2
Release independent packages
...
- napi@3.0.0-alpha.9
- napi@3.0.0-alphq.8
2024-09-13 00:17:49 +08:00
Richer
58bcb64c19
fix(napi-derive): call flush on the BufWriter ( #2242 )
2024-09-02 14:16:00 +08:00
Richer
b9c884e788
fix(macro): constructor don't support asynchronous function ( #2239 )
2024-08-31 10:40:49 +08:00
CPunisher
c459f0acf6
feat: support structured enum with discriminated unions ( #2222 )
...
* Structured enum
* Type indent
* Add test example
* Remove trailing commas
* discriminant
* discriminant conflict
* more test
* typo
2024-08-22 14:59:50 +08:00
CPunisher
e02ec1e87c
Replace self for Result<T> ( #2224 )
2024-08-22 14:59:00 +08:00
LongYinan
2e5bf773e3
fix(napi-derive): warning in empty enum codegen ( #2214 )
2024-08-10 22:30:50 +08:00
LongYinan
22dba74813
Release independent packages
...
- napi-derive@3.0.0-alpha.7
2024-07-23 22:07:15 +08:00
Louis
f88b90f71e
fix(napi-derive): call flush on the BufWriter ( #2195 )
...
This is mandated by the Rust doc of the BufWriter. We've also seen bugs where
the data doesn't seem to be flushed properly, and thus the CLI fails to parse
JSONs emitted by napi-derive. This might be it, or not, but flushing shouldn't
hurt.
2024-07-23 21:08:13 +08:00
LongYinan
0f7c40354f
Release independent packages
...
- napi-derive@3.0.0-alpha.6
2024-07-16 13:06:00 +08:00
Cong-Cong Pan
782d6ac5f8
fix(napi-derive): napi getter macros ( #2188 )
...
* fix: napi getter macros
* chore: cargo fmt
2024-07-16 12:48:38 +08:00
LongYinan
8891c43ef7
Release independent packages
...
- napi-derive@3.0.0-alpha.5
2024-07-07 21:03:40 +08:00
LongYinan
eb09a6f7f5
Release independent packages
...
- napi@3.0.0-alpha.5
- napi-derive@3.0.0-alpha.4
2024-07-06 23:48:30 +08:00
LongYinan
1228e918e9
Release independent packages
...
- napi-derive@3.0.0-alpha.3
2024-07-01 13:28:46 +08:00
LongYinan
657fbfb113
Release independent packages
...
- napi@3.0.0-alpha.3
- napi-derive@3.0.0-alpha.2
2024-06-27 20:46:29 +08:00
Ranger
a3b01870a3
feat(napi): support External for compact mode and add JsExternal as deprecated ( #2125 )
2024-05-26 14:43:33 +08:00
Louis
c223954dc6
chore(napi): allow value attribute on enum variants ( #2115 )
...
This allows us to customize the enum value for string_enum. So far, only the case attribute was allowing us to customize the value of those variants, this is a next step in allowing the value to be different from the actual name.
This has a new test, and snapshots have been updated accordingly.
@Brooooooklyn - could we include that in napi v2 and tag after it?
2024-05-17 11:22:33 +08:00
Ranger
b2239fd880
fix(napi-macro): gengerate type file should align with type-def featrue ( #2100 )
...
* fix: make sure env without exception pending before throw error
* fix(napi-macro): gengerate type file should align with type-def featrue
* fix(napi-macro): gengerate type file should align with type-def featrue
2024-05-10 14:32:48 +08:00
inokawa
0adc36ce1c
feat(cli): support generation of literal union from string enum ( #2054 )
...
* feat(cli): support generation of literal union from enum
* Remove const
---------
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-04-22 14:28:04 +08:00
LongYinan
22c751ced0
fix(napi-derive): bail the unexpected factory directive ( #2051 )
...
- Close https://github.com/napi-rs/napi-rs/issues/2048
2024-04-18 00:14:00 +08:00
LongYinan
63c8ab3f20
Release independent packages
...
napi@3.0.0-alpha.1
napi-derive@3.0.0-alpha.1
napi-sys@2.4.0
2024-04-10 17:03:00 +08:00
LongYinan
2a7c000275
Release independent packages
...
- napi@3.0.0-alpha.0
- napi-derive@3.0.0-alpha.0
2024-03-20 22:46:59 +08:00
Andrew Toth
6b1058a268
feat(napi-derive): add optional enum_string case conversion ( #1995 )
2024-03-11 20:10:00 +08:00