LongYinan
0f14799776
feat(napi-derive): support set property attribute in napi macro ( #1257 )
2022-08-06 21:54:58 +08:00
Amr Bashir
b54e698237
feat(cli): allow specifying an existing release ( #1256 )
2022-08-04 12:12:18 +08:00
Jacob Kiesel
94e8e54b38
feat(napi): call sync functions within tokio runtime ( #1242 )
2022-08-04 00:12:35 +08:00
Amr Bashir
3d2ca94392
feat(cli): add an option to specify the github release name ( #1255 )
2022-08-04 00:10:51 +08:00
Amr Bashir
0e75c59f0e
chore: improve *.node
doesn't exist warning msg ( #1254 )
2022-08-03 08:01:15 +08:00
Amr Bashir
9be7ae2bf9
feat(cli): use CARGO_TARGET_DIR
if set ( #1251 )
...
* feat: use `CARGO_TARGET_DIR` if set
* use `||` instead of `??`
* use `CARGO_BUILD_TARGET_DIR` also if set
* disable eslint prefer-nullish-coalescing
2022-07-31 22:41:32 +08:00
LongYinan
cb6fffd73f
feat(cli): support npmClient config ( #1253 )
2022-07-31 20:43:25 +08:00
LongYinan
e30019aa5c
chore(napi): update ci template
2022-07-31 18:01:47 +08:00
LongYinan
6aeb116eb9
ci: tweak changes for Dockerfiles
2022-07-31 08:49:12 +00:00
Dennis Duda
a9a62f225e
feat(napi): add derived traits to ThreadsafeFunctionCallMode
( #1243 )
...
This makes it possible to reuse the same value, e.g. when writing utility/helper functions.
2022-07-31 15:29:26 +08:00
LongYinan
037d960607
ci: fix self testing for Android platforms ( #1248 )
2022-07-27 15:25:28 +08:00
LongYinan
bb46793837
chore: publish
...
- @napi-rs/cli@2.10.3
2022-07-27 14:40:36 +08:00
LongYinan
fd2060baa4
fix(cli): android build due to GitHub Actions environments change
...
Ref: https://github.com/actions/virtual-environments/issues/5879
2022-07-27 14:40:07 +08:00
LongYinan
c8f946e4d5
chore: publish
...
- @napi-rs/cli@2.10.2
2022-07-23 00:01:17 +08:00
LongYinan
ed5fd4083c
fix(cli): upgrade freebsd ci
2022-07-23 00:00:42 +08:00
Jacob Kiesel
1040c41760
feat(napi): add some useful derived traits for the Null type ( #1241 )
2022-07-22 23:45:02 +08:00
LongYinan
a5c9f12454
Merge pull request #1247 from oyyd/fix
...
docs: fix typo
2022-07-22 16:00:52 +08:00
Ouyang Yadong
53051d0ef3
docs: fix typo
2022-07-22 15:34:41 +08:00
LongYinan
5b2bff79d4
Release independent packages
...
napi@2.6.3
2022-07-11 21:54:02 +08:00
LongYinan
40c132aefc
Merge pull request #1235 from napi-rs/buffer-leak
...
fix(napi): memory leak in Buffer/ArrayBuffer
2022-07-11 21:48:42 +08:00
LongYinan
16ec32b68e
fix(napi): memory leak in Buffer/ArrayBuffer
2022-07-11 21:34:27 +08:00
LongYinan
2f59c6ae91
Merge pull request #1234 from napi-rs/mutex-in-tsfn
2022-07-10 10:34:55 +08:00
LongYinan
552ec43fae
fix(napi): use Mutex instead of Atomic in ThreadSafeFunction
2022-07-10 00:07:56 +08:00
LongYinan
a4448d3e24
Revert "fix(napi): memory leak in ThreadsafeFunction"
...
This reverts commit 4dfc770c2a
.
2022-07-09 15:48:46 +08:00
LongYinan
3eccf45439
Release independent packages
...
napi@2.6.2
2022-07-08 13:50:37 +08:00
LongYinan
71da74c9f0
Merge pull request #1230 from napi-rs/fix-tsfn-leak
...
fix(napi): memory leak in ThreadsafeFunction
2022-07-08 11:54:18 +08:00
LongYinan
4dfc770c2a
fix(napi): memory leak in ThreadsafeFunction
2022-07-08 00:09:14 +08:00
LongYinan
d0a9cbfa86
Merge pull request #1228 from Hywan/fix-option-t-null
...
fix(napi) `undefined` is recognized as a valid `None` for `Option<T>`
2022-07-07 22:30:07 +08:00
Ivan Enderlin
1259ce1ba4
fix(napi) undefined
is recognized as a valid None
for Option<T>
.
2022-07-07 15:50:55 +02:00
LongYinan
087b3ed594
Release independent packages
...
napi@2.6.1
2022-07-07 00:17:02 +08:00
LongYinan
523bcc3068
Merge pull request #1227 from napi-rs/buffer-drop
...
fix(napi): drop buffer inner data only when Reference count is 0
2022-07-07 00:14:20 +08:00
LongYinan
bffc49f11a
fix(napi): drop buffer inner data only when Reference count is 0
2022-07-07 00:01:16 +08:00
LongYinan
661b418eb6
Release independent packages
...
napi@2.6.0
napi-derive@2.6.0
2022-07-06 23:33:50 +08:00
LongYinan
2d97986657
chore: publish
...
- @napi-rs/cli@2.10.1
2022-07-06 23:32:26 +08:00
LongYinan
60ed3ab474
Merge pull request #1225 from napi-rs/upgrade-dependencies
...
chore(cli): upgrade npm dependencies
2022-07-06 21:46:05 +08:00
LongYinan
5cfff2ad5c
chore(cli): upgrade npm dependencies
2022-07-06 21:18:00 +08:00
LongYinan
2bc9218547
Merge pull request #1224 from napi-rs/clone-ref
...
feat(napi): clone reference for TypedArray/Buffer
2022-07-06 19:49:06 +08:00
LongYinan
1a7cff167e
feat(napi): clone reference for TypedArray/Buffer
2022-07-06 19:15:16 +08:00
LongYinan
1ac7fcf2ce
Merge pull request #1223 from napi-rs/strict-check-optional
...
fix(napi): validate fn for Option<T>
2022-07-06 14:34:30 +08:00
LongYinan
cc3086d804
fix(napi): validate fn for Option<T>
2022-07-06 14:01:32 +08:00
LongYinan
20577a117f
Merge pull request #1221 from napi-rs/inject-this
...
feat(napi-derive): allow injecting this in class method
2022-07-06 11:16:28 +08:00
LongYinan
87fd74cbb6
feat(napi-derive): allow injecting this in class method
2022-07-05 23:09:40 +08:00
LongYinan
c3b59c8a12
Merge pull request #1219 from napi-rs/return-if-invalid
...
feat(napi-derive): support return_if_invalid
2022-07-05 20:07:57 +08:00
LongYinan
2e53bf7f9a
feat(napi-derive): support return_if_invalid
2022-07-05 18:39:12 +08:00
LongYinan
dface0c6a7
Merge pull request #1200 from Hywan/feat-either-n-up-to-26
...
feat(napi) Implement `Either3` to `Either26`.
2022-07-05 17:35:15 +08:00
LongYinan
53cab27bc4
refactor(napi): Either now perform ValidateNapiValue::validate rather than type_of
2022-07-05 17:01:21 +08:00
Ivan Enderlin
81b07ce5a6
feat(napi) implement Either3
to Either26
.
...
This patch introduces a new macro: `either_n!` that generates the types
`Either{n}` where $3 \leq n \leq 26$. Manual implementations for
`Either3`, `Either4` and `Either5` are removed by this patch too.
The `either_n!` macro is quite classical. There is no particular
trick, except `count_idents!` which simply turns, e.g. `A, B, C` into
`3`. This macro is used by `either_n!` to implement the
`debug_assert!` inside `from_napi_value`.
2022-07-05 17:01:12 +08:00
LongYinan
496fc3e54a
chore: add team members into FUNDING.yml
2022-06-30 19:43:37 +08:00
LongYinan
227de9efe0
fix(cli): android CI template
2022-06-30 19:43:37 +08:00
Jonas Platte
7cf87eaf20
chore(napi): replace lazy_static with once_cell ( #1213 )
2022-06-25 11:19:45 +08:00