renovate[bot]
3d62aca408
chore(deps): update dependency @rollup/plugin-node-resolve to v16 ( #2398 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 13:05:32 +08:00
renovate[bot]
a67b51f38e
chore(deps): update dependency oxlint to ^0.15.0 ( #2394 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 03:01:34 +00:00
LongYinan
40ce1ffb7e
fix(cli): wrong condintion in setFeatures ( #2396 )
2024-12-12 10:38:08 +08:00
LongYinan
7c532640d5
Release independent packages
...
- napi@3.0.0-alpha.23
napi@3.0.0-alpha.23
2024-12-10 11:31:57 +08:00
underfin
533635619e
fix(napi): delete error reference with raw Error ( #2388 )
...
* fix: delete error reference at drop
* fix: ci
* fix: ci
* fix: ci
* fix: ci
* fix: avoid using drop
2024-12-09 19:17:16 +08:00
LongYinan
dd07a04ca6
Release independent packages
...
- napi@3.0.0-alpha.22
- napi-derive@3.0.0-alpha.21
napi-derive@3.0.0-alpha.21
napi@3.0.0-alpha.22
2024-12-03 21:59:14 +08:00
renovate[bot]
77fe9757fc
chore(deps): lock file maintenance ( #2380 )
...
* chore(deps): lock file maintenance
* Fix typecheck
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-12-03 15:28:37 +08:00
Hiroshi Ogawa
61543c0f45
fix(napi): handle nul byte in object key ( #2385 )
...
* fix: fix to_napi_value
* test: add test
* fix: fix from_napi_value
* fix: fix object.get/set
* test: test plain object
* test: snapshot
2024-12-03 14:17:18 +08:00
翠 / green
74faafeafe
fix(napi-derive): object_from_js / object_to_js for transparent was swapped ( #2382 )
2024-12-02 22:37:33 +08:00
翠 / green
6a4ce688c4
fix(napi-derive): generate correct types for HashMap with RandomState argument ( #2384 )
...
* fix(napi-derive): generate correct types for HashMap with RandomState argument
* chore: update snapshot
2024-12-02 22:37:00 +08:00
renovate[bot]
af3b83be85
chore(deps): update dependency oxlint to ^0.14.0 ( #2381 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-01 09:21:47 +00:00
LongYinan
7886d24d12
Release independent packages
...
- napi@3.0.0-alpha.21
- napi-derive@3.0.0-alpha.20
napi-derive@3.0.0-alpha.20
napi@3.0.0-alpha.21
2024-11-30 10:52:22 +08:00
LongYinan
4c7a3d3264
chore: Rust 1.83.0 clippy fix ( #2378 )
2024-11-30 10:49:01 +08:00
翠 / green
e42287618b
feat(napi): implement ValidateNapiValue for HashSet with any hasher ( #2377 )
2024-11-30 10:28:54 +08:00
翠 / green
521aefe420
feat(napi-derive): implement #[napi(transparent)] ( #2376 )
2024-11-30 10:28:40 +08:00
翠 / green
f116eaf5e5
feat(napi): implement ValidateNapiValue for HashMap with any hasher ( #2374 )
2024-11-29 05:19:28 -08:00
renovate[bot]
7815851b1e
chore(deps): update dependency vite to v6 ( #2372 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-27 14:24:47 +08:00
renovate[bot]
98d24729a0
chore(deps): update yarn to v4.5.3 ( #2371 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 16:56:56 +00: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
renovate[bot]
39548221a3
chore(deps): update yarn to v4.5.2 ( #2367 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-22 01:10:37 +00:00
renovate[bot]
cdb4be0df2
chore(deps): update dependency oxlint to ^0.13.0 ( #2366 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 18:01:41 +00:00
renovate[bot]
23d7322e94
chore(deps): update dependency oxlint to ^0.12.0 ( #2364 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 12:36:35 +00:00
dependabot[bot]
c2e05f58b7
chore(deps): bump cross-spawn from 7.0.3 to 7.0.6 ( #2361 )
...
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn ) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md )
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6 )
---
updated-dependencies:
- dependency-name: cross-spawn
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-18 23:26:50 +08:00
Stanisław Czech
272334c69f
fix(napi): update logic for handling signed integers ( #2356 )
...
* Fix from functions for BigInt
Allow proper parsing of negative integers in those functions.
Fixes the pannic when calling:
BigInt::from(i128::MIN);
* Fix get_i128 and get_i64 for BigInt
Update the getter logic to take sign into account.
for get_i128 and get_u128 make lossless value consistent with the documentation
(documentation described different behavior then the code logic)
* Extend tests for BigInt types
Add more test cases for negative i64 and i128 to test the created changes
* Simplify the to napiValue logic for 128 bit types
Update the logic to handle negative values properly
Refactor to_napi_value and create_bigint_from_*128 to use the same logic
instead of copping mostly the same code 4 times
* Fix specification for deserialize object test
For unknown reason the binary specification was holding different value than spec file
2024-11-18 23:12:11 +08:00
LongYinan
0db0e1aabb
feat(sys): add experimental apis ( #2358 )
2024-11-18 23:10:41 +08:00
Richer
48b3b238de
feat(napi): allow us to create nest function from closure ( #2360 )
2024-11-18 21:28:47 +08:00
Richer
c1b07a82c1
fix(backend): fix type when function as object field ( #2359 )
2024-11-18 14:39:49 +08:00
LongYinan
d1d533d00e
Release independent packages
...
- napi-derive@3.0.0-alpha.19
napi-derive@3.0.0-alpha.19
2024-11-13 10:24:10 +08:00
LongYinan
49ed2ddf71
fix(napi-derive): object lifetime compile issue ( #2351 )
2024-11-11 20:19:41 +08:00
LongYinan
75ff88cced
Release independent packages
...
- napi-derive@3.0.0-alpha.18
napi-derive@3.0.0-alpha.18
2024-11-07 14:05:36 +08:00
LongYinan
209386f5c1
Release independent packages
...
- napi@3.0.0-alpha.20
napi@3.0.0-alpha.20
2024-11-07 14:03:46 +08:00
LongYinan
726f888241
fix(napi): memory leak in PromiseRaw callbacks ( #2348 )
2024-11-07 13:19:15 +08:00
LongYinan
cf2305517d
chore(napi): deprecate Env::create_reference ( #2347 )
2024-11-07 13:05:01 +08:00
LongYinan
ae8eab3ef8
chore(napi): remove Read from Uint8Array ( #2346 )
2024-11-07 13:04:47 +08:00
Max
f2377e2d70
chore(napi-derive): remove unused dependency 'regex' from backend ( #2344 )
2024-11-05 00:30:24 +08:00
renovate[bot]
8210414e55
chore(deps): update dependency oxlint to ^0.11.0 ( #2342 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-03 07:20:26 +00:00
renovate[bot]
c36e26e3b9
chore(deps): lock file maintenance ( #2341 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-01 10:45:29 +08:00
LongYinan
59dce18ab4
Release independent packages
...
- napi@3.0.0-alpha.19
napi@3.0.0-alpha.19
2024-10-31 11:06:23 +08:00
LongYinan
fd23549009
Release independent packages
...
- napi@3.0.0-alpha.18
- napi-derive@3.0.0-alpha.17
napi-derive@3.0.0-alpha.17
napi@3.0.0-alpha.18
2024-10-31 10:50:01 +08:00
dependabot[bot]
243df78cd2
chore(deps): bump elliptic from 6.5.7 to 6.6.0 ( #2339 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.7 to 6.6.0.
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.7...v6.6.0 )
---
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-10-31 02:31:18 +00:00
LongYinan
f705454029
feat(napi): introduce AsyncBlock to let user dispose resources after future done ( #2338 )
2024-10-31 09:24:30 +08:00
LongYinan
00a3c13b42
feat(napi): impl io::Read for Uint8Array ( #2336 )
2024-10-30 16:15:43 +08:00
LongYinan
ac30f591dd
Revert "chore(deps): update node.js to v22 ( #2334 )"
...
This reverts commit 39904083e79c805565dbe7323d0e13e0d6d9da75.
2024-10-30 14:18:32 +08:00
renovate[bot]
39904083e7
chore(deps): update node.js to v22 ( #2334 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-30 14:17: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
napi-derive@3.0.0-alpha.16
napi-sys@3.0.0-alpha.0
napi@3.0.0-alpha.17
2024-10-28 23:50:45 +08:00
LongYinan
c91456d84a
feat(napi): support return *const c_char to JavaScript directly ( #2332 )
2024-10-28 23:48:33 +08:00
LongYinan
79cbb9170e
fix!(sys): Node-API accpet NAPI_AUTO_LENGTH parameter type should be isize rather than usize ( #2331 )
2024-10-28 23:45:32 +08:00
LongYinan
f707f36c5a
feat(napi): implmenet Set ( #2330 )
2024-10-26 20:11:58 +08:00
LongYinan
3d95fcffdf
fix(napi-derive): ra warning on Rust 1.82 ( #2329 )
2024-10-25 11:15:13 +08:00
renovate[bot]
301388607a
chore(deps): update dependency npm-run-all2 to v7 ( #2324 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-22 16:45:56 +08:00