LongYinan
17f6dd2fd9
Release independent packages
...
- napi@3.0.0-alpha.15
napi@3.0.0-alpha.15
2024-10-14 11:27:41 +08:00
LongYinan
dc4bfb8ea3
refactor!(napi): pass self to Task::finally instread of &mut self ( #2309 )
2024-10-14 11:26:30 +08:00
LongYinan
72afae3736
refactor!(napi): Ref::unref accept &mut self instead of self ( #2308 )
2024-10-14 11:14:25 +08:00
LongYinan
a38a24c359
Release independent packages
...
- napi@3.0.0-alpha.14
- napi-derive@3.0.0-alpha.14
napi-derive@3.0.0-alpha.14
napi@3.0.0-alpha.14
2024-10-14 00:27:38 +08:00
Richer
16fc9cbe31
feat(napi): support arraybuffer for de ( #2296 )
...
* feat(napi): support arraybuffer for de
* use BufferSlice
* clippy fix
---------
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-10-14 00:24:45 +08:00
LongYinan
af68b685f5
chore: set DISABLE_V8_COMPILE_CACHE in docker test ( #2307 )
2024-10-14 00:14:09 +08:00
LongYinan
4496ffd220
chore: refresh npm dependencies ( #2303 )
2024-10-13 23:50:57 +08:00
LongYinan
e0811d1644
fix(napi): data maybe null in custom_gc ( #2304 )
...
* fix(napi): data maybe null in custom_gc
Sometimes thread has not been disposed but the objects on it have been
recycled, we need to check if the data has been pointed to null before
unref it.
* disable v8 compile cache on CI
2024-10-13 23:33:39 +08:00
renovate[bot]
52e1f6bc4a
chore(deps): update dependency @rollup/plugin-replace to v6 ( #2273 )
2024-10-13 15:10:20 +08:00
Richer
7881069894
test: fix some test case ( #2301 )
2024-10-13 13:33:47 +08:00
Jacky Zhao
7ef54f413b
feat(cli)): createRequire for SEA support ( #2297 )
...
* create require for SEA support
* Update cli/src/api/templates/js-binding.ts
2024-10-11 15:22:45 +08:00
LongYinan
afd081d003
feat(napi,napi-derive): allow lifetime in Class ( #2298 )
2024-10-10 05:59:14 +02:00
LongYinan
724673225a
refactor!(napi): remove clone fn on ThreadsafeFunction ( #2291 )
2024-10-07 19:23:11 +02:00
LongYinan
eba0b52c59
chore(napi): env doesn't need to be mut ( #2292 )
2024-10-07 19:20:21 +02:00
LongYinan
9a6f01a20c
Release independent packages
...
- napi@3.0.0-alpha.13
- napi-derive@3.0.0-alpha.13
napi-derive@3.0.0-alpha.13
napi@3.0.0-alpha.13
2024-10-03 00:01:16 +02:00
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