LongYinan
8f4f74a32c
chore(release): publish
...
- @napi-rs/cli@3.0.0-alpha.63
- @napi-rs/triples@2.0.0-alpha.25
- @napi-rs/wasm-runtime@0.2.5
@napi-rs/cli@3.0.0-alpha.63
@napi-rs/triples@2.0.0-alpha.25
@napi-rs/wasm-runtime@0.2.5
2024-10-03 00:00:32 +02:00
LongYinan
c12e56f3e8
chore(cli): add strip in generated Cargo.toml
2024-10-03 00:00:11 +02:00
LongYinan
41f9e029f1
ci: fix ubuntu 24.04 electron test ( #2288 )
2024-10-02 10:55:32 +02:00
LongYinan
69cd73d71c
refactor!(napi,napi-derive): add lifetime to ClassInstance ( #2286 )
2024-10-02 10:42:34 +02:00
renovate[bot]
5fbe9ce8b1
chore(deps): lock file maintenance ( #2287 )
2024-10-02 00:22:59 +02:00
renovate[bot]
b9fc7bb124
chore(deps): update dependency @rollup/plugin-commonjs to v28 ( #2272 )
2024-09-30 20:32:33 +02:00
Richer
d3cf9cb143
fix(napi-derive-backend): should respect origin name for class factory ( #2280 )
2024-09-30 17:06:58 +02:00
renovate[bot]
7c061c1ef5
chore(deps): update dependency rollup to v4.22.4 [security] ( #2275 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-24 09:06:35 +00:00
LongYinan
34829fb5f7
Release independent packages
...
- napi@3.0.0-alpha.12
- napi-derive@3.0.0-alpha.12
napi-derive@3.0.0-alpha.12
napi@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
Richer
fec8ff4704
chore(example): use BufferSlice to replace JsBuffer ( #2269 )
...
* chore(example): use BufferSlice to replace JsBuffer
* chore: use BufferSlice to replace env method
2024-09-22 22:53:15 +08:00
renovate[bot]
f995c8ef2f
chore(deps): update dependency esbuild to ^0.24.0 ( #2268 )
2024-09-22 12:12:51 +08:00
Richer
daf4a80bdb
feat(napi): mark create_buffer as deprecated & use BufferSlice to replace JsBuffer for ser ( #2267 )
2024-09-22 11:22:05 +08:00
LongYinan
cfc88ee541
Release independent packages
...
- napi-derive@3.0.0-alpha.11
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
napi-derive@3.0.0-alpha.10
napi@3.0.0-alpha.11
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
napi-derive@3.0.0-alpha.9
napi@3.0.0-alpha.10
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
LongYinan
cea16807da
ci: run test in Docker with -s ( #2264 )
2024-09-19 22:13:51 +08:00
Steve Fan
3dbd806e34
chore: enable corepack in Debian base Dockerfile ( #2252 )
...
* Update debian.Dockerfile
* Update debian-aarch64.Dockerfile
* Update debian.Dockerfile
2024-09-19 22:13:36 +08:00
Richer
814188f1ad
fix(derive): fix clippy warning with newer rust version ( #2262 )
2024-09-19 21:55:48 +08:00
Igor Matuszewski
cc21452f65
fix(napi): nullptr handling in TypedArrays ( #2258 )
...
* fix: Safely return empty slices if TypedArray buffer is null ptr
* fix: Only dispose of TypedArray if the data is not a nullptr
* test: Add a regression test for typed array null ptr deref
2024-09-19 13:38:19 +08:00
renovate[bot]
f6d6e25107
chore(deps): update dependency vite to v5.4.6 [security] ( #2260 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-18 08:16:57 +08:00
renovate[bot]
e11ceacd59
fix(deps): update dependency @inquirer/prompts to v6 ( #2257 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-16 15:53:34 +08:00
LongYinan
20b9de3ec7
fix(cli): extra line break in the tail of dts file ( #2255 )
2024-09-15 11:44:29 +08:00
LongYinan
1427ddce64
chore(cli): respect constEnum in napi config ( #2254 )
2024-09-15 11:41:28 +08:00
LongYinan
9c3643f72b
chore(cli): update ci template ( #2256 )
2024-09-15 11:39:33 +08:00
renovate[bot]
f9d213f5e7
chore(deps): update yarn to v4.5.0 ( #2253 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-15 11:39:19 +08:00
renovate[bot]
382ed9442c
chore(deps): update dependency sinon to v19 ( #2251 )
2024-09-14 09:57:39 +08:00
dependabot[bot]
2bd0b160f0
chore(deps): bump path-to-regexp from 6.2.2 to 6.3.0 ( #2250 )
2024-09-13 21:52:10 +08:00
LongYinan
a9690383c2
Release independent packages
...
- napi@3.0.0-alpha.9
- napi@3.0.0-alphq.8
napi-derive@3.0.0-alpha.8
napi@3.0.0-alpha.9
2024-09-13 00:17:49 +08:00
LongYinan
bf8f568788
refactor!(napi): Ref should not hold the value ptr ( #2243 )
...
It's unsafe
2024-09-12 23:25:09 +08:00
Cong-Cong Pan
c04327e27b
perf(napi): remove unnecessary checks for strings from napi_get_value_string_utf8 ( #2247 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-09-12 23:24:50 +08:00
LongYinan
b0bf4f00d0
fix(napi): windows function registration timing ( #2248 )
...
* fix(napi): windows function registration timing
* fix clippy issue
* upgrade zig version
* pin rust version on zig cross compile ci
2024-09-12 23:18:05 +08:00
Richer
58bcb64c19
fix(napi-derive): call flush on the BufWriter ( #2242 )
2024-09-02 14:16:00 +08:00
renovate[bot]
21f712aa50
chore(deps): lock file maintenance ( #2241 )
2024-09-01 09:38:09 +08:00
Richer
8b6cc10d77
fix(napi): use error_ref should checkout it at first ( #2235 )
2024-08-31 14:31:53 +08:00
Richer
b9c884e788
fix(macro): constructor don't support asynchronous function ( #2239 )
2024-08-31 10:40:49 +08:00
renovate[bot]
7bbb04b4f0
chore(deps): update dependency oxlint to ^0.9.0 ( #2234 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-27 15:21:45 +08:00
Don Isaac
12bb1da28c
chore: prepare for no-unused-vars ( #2233 )
2024-08-26 10:04:03 +08:00
dependabot[bot]
bf02349845
chore(deps): bump micromatch from 4.0.7 to 4.0.8 ( #2232 )
...
Bumps [micromatch](https://github.com/micromatch/micromatch ) from 4.0.7 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases )
- [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md )
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8 )
---
updated-dependencies:
- dependency-name: micromatch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-24 22:17:58 +08:00
dependabot[bot]
bca1eedfbf
chore(deps): bump axios from 1.7.3 to 1.7.5 ( #2231 )
...
Bumps [axios](https://github.com/axios/axios ) from 1.7.3 to 1.7.5.
- [Release notes](https://github.com/axios/axios/releases )
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md )
- [Commits](https://github.com/axios/axios/compare/v1.7.3...v1.7.5 )
---
updated-dependencies:
- dependency-name: axios
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-24 22:17:46 +08:00
dependabot[bot]
46eb557d95
chore(deps): bump elliptic from 6.5.6 to 6.5.7 ( #2230 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.6 to 6.5.7.
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.6...v6.5.7 )
---
updated-dependencies:
- dependency-name: elliptic
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-24 21:50:21 +08:00
renovate[bot]
cc34dc3c65
chore(deps): update yarn to v4.4.1 ( #2229 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 21:27:07 +08:00
Richer
5934ecd2a9
feat(napi): mark JsArraybufferValue's value pub ( #2226 )
2024-08-23 22:25:52 +08:00
CPunisher
249c27e06d
fix(napi-derive): tuple object and enum ( #2227 )
...
* Fix tuple struct
* Add testcase
2024-08-23 14:10:39 +08:00
renovate[bot]
e22158306a
chore(deps): update dependency oxlint to ^0.8.0 ( #2228 )
2024-08-23 12:38:25 +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