LongYinan
2b0ddf4a21
feat(napi,sys): sync to napi9 ( #1781 )
...
- Close https://github.com/napi-rs/napi-rs/issues/1600
2023-11-06 11:00:27 +08:00
stefan-gorules
afdd4060ab
fix(napi): js promise error messages ( #1672 )
2023-11-02 17:32:20 +08:00
LongYinan
a7eeb0c31c
fix(napi): promise resolve error ( #1664 )
2023-07-24 00:36:24 +08:00
LongYinan
88773a7a8e
fix(napi): re-throw error in ThreadsafeFunction callback if we could
2023-04-10 17:02:13 +08:00
Hana
fc101d0d6b
fix(napi): display should be implemented on error generics ( #1497 )
2023-02-24 19:46:39 +08:00
Hana
853f52ed1f
fix(napi): error should be send sync conditionally ( #1487 )
2023-02-14 18:58:04 +08:00
LongYinan
8e3eb6204b
fix(napi): support custom status in Error ( #1486 )
2023-02-09 23:18:57 +08:00
Hana
31015652b8
fix(napi): dropping Error should not call napi-sys if feature is set to noop ( #1477 )
2023-02-07 15:45:56 +08:00
LongYinan
7613d669fb
chore(napi): enhance the error messages while converting types failed ( #1473 )
2023-02-06 00:52:59 +08:00
LongYinan
3dde26bcef
chore(napi): including type message in error message ( #1350 )
2022-10-24 00:16:30 +08:00
LongYinan
ea18170779
fix(napi): propagation error in function call ( #1315 )
2022-09-14 19:30:43 +08:00
Devon Govett
5ba70b0e1a
fix(napi): improve error propagation ( #1303 )
2022-09-14 17:03:11 +08:00
iuser
13996c1864
feat(napi): error_anyhow feature
2022-08-17 22:50:52 +08:00
Sunli
5cdfc8cb7e
feat(napi) implement From<Infallible>
for napi::Error
2022-05-30 21:44:03 +08:00
Ben Noordhuis
f301581445
feat(napi): make Error::from_reason() generic
2022-05-01 17:00:24 +02:00
LongYinan
b48a757837
style: clippy fix
2022-03-05 23:05:04 +08:00
messense
43fb8edecd
chore: forbid unsafe_op_in_unsafe_fn
2022-01-13 11:26:28 +08:00
LongYinan
e452c00fb4
feat: edition 2021
2021-12-08 13:18:47 +08:00
LongYinan
2d5b997b7d
feat(napi): add experimental flag
2021-12-03 16:49:26 +08:00
Idan Attias
a5ba40ceda
feat(napi): enable node_api syntax error experimental functions
2021-12-02 13:59:27 +08:00
LongYinan
43c1aff738
refactor(napi): use CStr instread of CString while creating lit variable
2021-11-25 17:53:41 +08:00
LongYinan
eaa96f7eb2
feat(napi): await Promise<T> in async fn
2021-11-15 16:54:55 +08:00
LongYinan
e78cdd3c22
feat(napi): support static class factory
2021-11-06 13:51:55 +08:00
forehalo
2467b7139b
Introduce #[napi]
procedural macro to automation development boilerplate ( #696 )
...
* napi procedural macro for basic rust/JavaScript types
* introduce the `compat-mode` for `napi` and `napi-derive` crates for backward compatible
* remove #[inline] and let compiler to decide the inline behavior
* cli now can produce the `.d.ts` file for native binding
* many tests and example for the new procedural macro
Co-authored-by: LongYinan <lynweklm@gmail.com>
2021-09-23 01:29:09 +08:00