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
CPunisher
e02ec1e87c
Replace self for Result<T> ( #2224 )
2024-08-22 14:59:00 +08:00
LongYinan
8df3f0f596
docs: remove dev protocal badge
2024-08-22 10:45:32 +08:00
renovate[bot]
650ce155e2
chore(deps): update dependency electron to v32 ( #2221 )
2024-08-20 19:42:26 +08:00
renovate[bot]
fa43fe13c9
chore(deps): update dependency webdriverio to v9 ( #2218 )
2024-08-19 09:40:15 +08:00
Mark Kovalenko
b5a5b032f6
fix(ci): bump FreeBSD version to 13.3 ( #2220 )
2024-08-18 22:02:06 +08:00
sjh
09a79edfb7
fix(napi,napi-derive): ffi lifetime and pointer sound issues ( #2216 )
...
* The ownership of the CString will be taken in map function
* for empty struct like `#[napi] struct A;`, the `value_ref` will be `0x1`, and it will be overwritten by the others instance of the same class
2024-08-18 18:21:13 +08:00
LongYinan
2e5bf773e3
fix(napi-derive): warning in empty enum codegen ( #2214 )
2024-08-10 22:30:50 +08:00
LongYinan
d84fc42832
fix(napi-derive): string enum validate logic ( #2213 )
2024-08-10 21:27:17 +08:00
renovate[bot]
4abda0ed37
chore(deps): lock file maintenance ( #2202 )
...
* chore(deps): lock file maintenance
* Switch to @inquirer/prompts
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-08-10 16:49:26 +08:00
LongYinan
82675fb068
ci: fix Address Sanitizer check ( #2212 )
2024-08-10 14:37:02 +08:00
CPunisher
a154612019
fix(napi-derive): add more cases for typegen of function args ( #2210 )
...
* Handle more arg pat
* Update testcase
* Revert
2024-08-08 11:07:21 +08:00
renovate[bot]
fd2409fd5f
chore(deps): update dependency oxlint to ^0.7.0 ( #2208 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-06 02:28:15 +00:00
Louis
164ef2a9f3
chore: implement serde::Serialize for Either ( #2209 )
...
This adds an implementation of serde::Serialize for all the Either types.
Long term, we might want to use the either crate, but for now this makes this
implementation usable with serde.
2024-08-05 18:05:49 +08:00
LongYinan
282ce1c00a
fix(napi): allow ThreadsafeFunction in Either ( #2204 )
2024-08-03 13:22:09 +08:00
renovate[bot]
cacf6e4587
chore(deps): update yarn to v4.4.0 ( #2205 )
2024-08-03 11:35:20 +08:00
Cong-Cong Pan
327998d0ac
fix(napi-derive): error for missing impl FromNapiValue since object_from_js = false ( #2197 )
2024-07-25 12:18:13 +08:00
LongYinan
3f6822d9cd
test: skip unstable test in WASI env ( #2196 )
2024-07-24 12:09:08 +08:00
LongYinan
22dba74813
Release independent packages
...
- napi-derive@3.0.0-alpha.7
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
0adb1a4992
chore(cli): add empty line in created pacakge.json file ( #2194 )
2024-07-23 13:36:42 +08:00
LongYinan
09ad8e762e
chore(release): publish
...
- @napi-rs/cli@3.0.0-alpha.62
- @napi-rs/triples@2.0.0-alpha.24
@napi-rs/cli@3.0.0-alpha.62
@napi-rs/triples@2.0.0-alpha.24
2024-07-21 14:01:37 +08:00
LongYinan
3284f881a6
fix(cli): should not log errors if everything fine
2024-07-21 14:01:16 +08:00
LongYinan
b884f62f7b
Release independent packages
...
- napi@3.0.0-alpha.8
napi@3.0.0-alpha.8
2024-07-18 14:26:43 +08:00