3104 Commits

Author SHA1 Message Date
LongYinan
cf5f7bcd84
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.61
 - @napi-rs/triples@2.0.0-alpha.23
@napi-rs/cli@3.0.0-alpha.61 @napi-rs/triples@2.0.0-alpha.23
2024-07-18 14:24:54 +08:00
LongYinan
6acd3b94fb
chore: add fail reason to assert (#2192) 2024-07-18 14:19:50 +08:00
Hana
ba345be957
perf(napi): reduce allocation for ToNapiValue of &str (#2191) 2024-07-18 13:08:02 +08:00
LongYinan
0f7c40354f
Release independent packages
- napi-derive@3.0.0-alpha.6
napi-derive@3.0.0-alpha.6
2024-07-16 13:06:00 +08:00
LongYinan
ac75ffb7fc
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.60
 - @napi-rs/triples@2.0.0-alpha.22
@napi-rs/cli@3.0.0-alpha.60 @napi-rs/triples@2.0.0-alpha.22
2024-07-16 13:05:21 +08:00
LongYinan
6078bb7cce
fix(cli): bundle @octokit/rest into cjs entry (#2190) 2024-07-16 13:04:27 +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
68f63882a9
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.59
 - @napi-rs/triples@2.0.0-alpha.21
@napi-rs/cli@3.0.0-alpha.59 @napi-rs/triples@2.0.0-alpha.21
2024-07-15 22:12:14 +08:00
LongYinan
e8608228b8
fix(cli): bundle lodash-es in cjs output (#2189) 2024-07-15 22:11:18 +08:00
LongYinan
2fccedbaba
Release independent packages
- napi@3.0.0-alpha.7
napi@3.0.0-alpha.7
2024-07-14 23:29:08 +08:00
LongYinan
54ec4897ea
fix(napi): PromiseRaw throw error logic (#2187) 2024-07-14 23:28:36 +08:00
LongYinan
13c18388f5
fix(cli): worker files format (#2186) 2024-07-14 22:23:34 +08:00
LongYinan
727f5a831a
test: skip memory exhausting test in wasi env (#2185) 2024-07-13 02:34:04 +08:00
renovate[bot]
d965e5c3cc
chore(deps): update dependency oxlint to ^0.6.0 (#2183)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 23:00:29 +08:00
Jade-fu
9e36daf559
fix(napi): reexport feature should be align (#2184) 2024-07-11 23:00:08 +08:00
LongYinan
119b2055a2
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.58
 - @napi-rs/triples@2.0.0-alpha.20
@napi-rs/cli@3.0.0-alpha.58 @napi-rs/triples@2.0.0-alpha.20
2024-07-11 17:32:00 +08:00
LongYinan
5976f04e54
fix(cli): wasm binding files destination (#2182) 2024-07-11 17:31:19 +08:00
renovate[bot]
4d39940fa0
chore(deps): update vitest monorepo to v2 (major) (#2177)
* chore(deps): update vitest monorepo to v2

* Fix lockfile

* Add playwright

* Update snapshots

* Fix vitest

* Fix vitest

* Fix wasi test

* Fix worker test condition

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-07-11 14:58:46 +08:00
renovate[bot]
9800ea7350
fix(deps): update dependency inquirer to v10 (#2173)
* fix(deps): update dependency inquirer to v10

* Fix for api changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-07-10 23:49:19 +08:00
LongYinan
488762791d
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.57
 - @napi-rs/triples@2.0.0-alpha.19
@napi-rs/cli@3.0.0-alpha.57 @napi-rs/triples@2.0.0-alpha.19
2024-07-09 15:20:21 +08:00
LongYinan
731dced1bb
fix(cli): update wasi js binding files on any builds (#2179) 2024-07-09 14:01:23 +08:00
LongYinan
a040416f9f
chore(napi): reduce Node-API call in AsyncTask (#2176) 2024-07-08 16:57:53 +08:00
LongYinan
45a404c30b
ci: use shell to run tests in Docker (#2175) 2024-07-08 15:18:50 +08:00
LongYinan
349996b699
test: update snapshots 2024-07-07 22:34:36 +08:00
LongYinan
8891c43ef7
Release independent packages
- napi-derive@3.0.0-alpha.5
napi-derive@3.0.0-alpha.5
2024-07-07 21:03:40 +08:00
LongYinan
38d041569a
fix(napi-derive): PromiseRaw typegen 2024-07-07 21:03:14 +08:00
LongYinan
70a5fce68d
Release independent packages
- napi@3.0.0-alpha.6
napi@3.0.0-alpha.6
2024-07-07 20:55:20 +08:00
LongYinan
3a511bacee
fix(napi): Promise callbacks should require static lifetime (#2172) 2024-07-07 20:42:17 +08:00
LongYinan
27030c8dae
refactor(napi): simplify Promise implementation (#2171) 2024-07-07 14:59:03 +08:00
LongYinan
807b987a20
fix(napi): PromiseRaw does not require napi4 and tokio_rt napi-derive@3.0.0-alpha.4 napi@3.0.0-alpha.5 2024-07-06 23:59:26 +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
16386638c2
fix(napi-derive): Result type in async fn (#2169) 2024-07-06 23:46:24 +08:00
LongYinan
bc9e931a4e
feat(napi): provide PromiseRaw for non-await scenario (#2168) 2024-07-06 19:09:16 +08:00
LongYinan
a4cd94ea30
Release independent packages
- napi@3.0.0-alpha.4
napi@3.0.0-alpha.4
2024-07-06 14:34:06 +08:00
LongYinan
aef57fb196
feat(napi): impl from_string for Uint8Array (#2167) 2024-07-06 14:32:09 +08:00
LongYinan
a7ef9be9ca
chore: external all dependencies in cli cjs build (#2166) 2024-07-06 14:11:21 +08:00
LongYinan
286c8d0cf4
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.56
 - @napi-rs/triples@2.0.0-alpha.18
@napi-rs/cli@3.0.0-alpha.56 @napi-rs/triples@2.0.0-alpha.18
2024-07-05 11:44:59 +08:00
Jade-fu
2265ca3e1a
fix(napi): asynchronous functions can return any errors (#2165)
* feat(napi): asynchronous functions can return any errors as long as they implement the Into<Error> trait.

* chore: use impl Into<Error>
2024-07-04 14:47:32 +08:00
renovate[bot]
c61aa20dfe
chore(deps): update dependency esbuild to ^0.23.0 (#2164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-03 23:07:29 +08:00
renovate[bot]
296f0dd72b
chore(deps): update dependency esbuild to ^0.22.0 (#2162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-01 14:41:37 +08:00
LongYinan
1228e918e9
Release independent packages
- napi-derive@3.0.0-alpha.3
napi-derive@3.0.0-alpha.3
2024-07-01 13:28:46 +08:00
renovate[bot]
793d734189
chore(deps): lock file maintenance (#2163)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-01 13:25:59 +08:00
Jade-fu
c2bda9a900
fix(napi-derive): class constructor and factory should support custom error status (#2161) 2024-06-30 16:12:00 +08:00
LongYinan
657fbfb113
Release independent packages
- napi@3.0.0-alpha.3
- napi-derive@3.0.0-alpha.2
napi-derive@3.0.0-alpha.2 napi@3.0.0-alpha.3
2024-06-27 20:46:29 +08:00
renovate[bot]
64868476fa
chore(deps): update dependency oxlint to ^0.5.0 (#2159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-27 20:41:04 +08:00
Gentle
7c4072b237
let docs.rs generate all documentation (#2160)
without this, all-features = true has no effect

Co-authored-by: Gentle <ramon.klass@gmail.com>
2024-06-27 20:40:34 +08:00
LongYinan
04bd89b9a4
chore(napi): exclude libuv api on wasm targets (#2156) 2024-06-24 23:36:05 +08:00
LongYinan
a7d85b0549
chore(napi): remove stale tokio feature (#2155) 2024-06-24 17:41:58 +08:00
LongYinan
d7a5a7e9a1
test(napi): spwan thread in thread (#2139) 2024-06-24 16:09:07 +08:00
renovate[bot]
f9721584f8
chore(deps): update oven-sh/setup-bun action to v2 (#2153)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 11:38:59 +08:00