LongYinan
bbd495a795
napi@1.7.5
2021-06-02 23:35:20 +08:00
LongYinan
7651fd1f6f
perf(napi): reducer tokio future execution overhead
2021-06-02 23:17:53 +08:00
LongYinan
ed846dd650
napi@1.7.4
2021-06-01 00:35:29 +08:00
LongYinan
f96fb5930c
napi-build@1.1.0-beta.0
2021-06-01 00:34:25 +08:00
LongYinan
72960906dc
ci: add memory leak detect job
2021-05-29 23:24:25 +08:00
LongYinan
1145f2ee0b
napi@1.7.3
2021-05-28 10:50:39 +08:00
LongYinan
66ff37d9ff
fix(napi): JsString* leak in from_js_value
2021-05-28 10:34:42 +08:00
LongYinan
00235f2554
napi@1.7.2
2021-05-28 07:59:04 +08:00
Julius de Bruijn
3db5c56fbf
Allow dropping of string&buffer values when converting
2021-05-27 20:47:22 +02:00
LongYinan
03fcd19580
napi@1.7.1
2021-05-27 23:21:51 +08:00
LongYinan
f792feba0b
fix(napi): wrong memory location of data in future resolved callback
2021-05-27 22:54:23 +08:00
LongYinan
a939c1b103
napi@1.7.0
2021-05-25 11:03:50 +08:00
LongYinan
bb9a819188
feat(napi): impl more types AsRef and AsMut for TypedArray
2021-05-25 00:07:16 +08:00
LongYinan
457cc6f1ee
refactor: change more generic constraint from NapiValue => NapiRaw
2021-05-17 17:29:38 +08:00
LongYinan
b01dae728b
bench: add array suite
2021-05-17 11:42:57 +08:00
LongYinan
6a43ed64f4
Merge pull request #551 from napi-rs/rust-1.52
...
chore: apply 1.52 clippy rules
2021-05-07 18:38:17 +08:00
LongYinan
1553bf7bc4
chore: apply 1.52 clippy rules
2021-05-07 18:19:52 +08:00
LongYinan
0195386af2
napi@1.6.1
2021-04-29 21:57:59 +08:00
LongYinan
fcb272d808
chore(napi): upgrade once_cell
2021-04-29 21:54:00 +08:00
LongYinan
dfc4805344
napi@1.6.0
2021-04-21 23:55:12 +08:00
LongYinan
daef1956b2
feat(napi): add napi8 features
2021-04-21 23:13:34 +08:00
LongYinan
00aa4ad632
napi@1.5.0
2021-04-14 14:58:13 +08:00
LongYinan
d1bceccbe6
feat(napi): expose create_string_from_c_char for C ffi scenario
2021-04-14 14:05:07 +08:00
LongYinan
5a21bbeb8e
fix(napi): memory ordering issues in tsfn
2021-04-12 18:04:02 +08:00
LongYinan
0b96ac24de
napi@1.4.0
2021-04-01 21:08:12 +08:00
LongYinan
d4331e05df
refactor(napi): split NapiRaw trait from NapiValue
2021-04-01 18:57:49 +08:00
LongYinan
ba1d16759f
chore: wrong keyword
2021-03-31 21:51:12 +08:00
LongYinan
9351c65161
napi@1.3.4
2021-03-31 21:49:50 +08:00
LongYinan
f0b8c5da07
fix(napi): do not call release tsfn in Drop when ref count is 0
2021-03-31 21:31:37 +08:00
LongYinan
925786c955
style: fix clippy error
2021-03-31 11:53:51 +08:00
LongYinan
4ca12ec7db
napi@1.3.3
2021-03-22 11:50:04 +08:00
LongYinan
f45f1aeb53
fix(napi): finalizer maybe_ref pointer value
2021-03-19 13:53:28 +08:00
Daniel Henry-Mantilla
4aba159958
Add a way to convert _stateful_ (Rust) closures into JsFunction
s.
2021-03-18 21:09:55 +01:00
LongYinan
7c6bfb4087
napi@1.3.2
2021-03-12 16:26:19 +08:00
LongYinan
1e3290cd01
fix(napi): napi_adjust_external_memory issue on wini686
2021-03-12 16:09:57 +08:00
LongYinan
0f300da917
napi@1.3.1
2021-03-11 19:03:17 +08:00
LongYinan
50f207f744
fix(napi): InvalidArg error when create_external with size hint
2021-03-11 19:02:42 +08:00
LongYinan
66663d129d
napi@1.3.0
2021-03-11 14:06:51 +08:00
Daniel Henry-Mantilla
0204ef9342
Added a way to opt out of error handling for ThreadsafeFunction
s.
...
This is to allow having the `ThreadSafeFunction` expect the same calling API
as an unwrapped `JsFunction` would have: in some contexts this consistency is
more desireable than giving the option to the caller to handle a native-to-js
conversion failure (or somebody having directly fed a `Result<T>`; although
that use case seems oddly niche to me: it can already be covered when
`type T = Result<U>;` and propagated/flattened inside the `R` closure with a
simple `?`), since such failure can already be quite fatal / unexpected in
some cases.
In order to keep the code backwards-compatible, this PR uses an added
**optional** generic (type) parameter. Since this parameter, semantically,
represents an `enum`, and since we don't have yet `const_generic` `enum`s, we
circumvent this limitation by using the type-level enum pattern, which is
abtracted away with a helper macro that incidentally yields some handy docs
(I can attach a rendered version of the docs hosted on netlify if the reviewer
so wishes).
2021-03-09 23:51:12 +01:00
LongYinan
49eaaf30e9
napi@1.2.0
2021-02-26 18:52:31 +08:00
LongYinan
071dcff9eb
feat(napi): add back clone trait to ThreadsafeFunction
2021-02-26 18:38:48 +08:00
LongYinan
e622d9693a
feat(napi): unwrap &'static value from Ref object
2021-02-25 22:17:21 +08:00
LongYinan
c39b364319
chore(napi): upgrade tokio
2021-02-07 00:08:38 +08:00
LongYinan
237fda55aa
napi@1.1.3
2021-02-01 18:10:51 +08:00
LongYinan
2775b47e33
chore(napi): upgrade tokio to 1.1
2021-02-01 18:10:05 +08:00
LongYinan
39595ddfca
napi@1.1.2
2021-01-25 14:13:55 +08:00
LongYinan
f46aa1f67a
fix(napi): throw JavaScript error in tsfn rather than rust thread panic
2021-01-25 12:11:12 +08:00
LongYinan
0c041ee629
napi@1.1.1
2021-01-07 22:56:15 +08:00
LongYinan
c1215379f2
feat(napi): impl Clone + Copy for Primitive types
2021-01-07 11:34:49 +08:00
LongYinan
e24738a4d8
fix(napi): remove into_*_ref from JsString
...
Close https://github.com/napi-rs/napi-rs/issues/411
2021-01-07 11:14:01 +08:00