Richer
8b6cc10d77
fix(napi): use error_ref should checkout it at first ( #2235 )
2024-08-31 14:31:53 +08:00
LongYinan
6acd3b94fb
chore: add fail reason to assert ( #2192 )
2024-07-18 14:19:50 +08:00
Özgür Akkurt
14d88997d7
chore(napi): print anyhow error in debug mode to show trace ( #2140 )
2024-06-17 11:45:10 +08:00
Ranger
e9123e2c43
fix(napi): make sure env without exception pending before throw error ( #2092 )
2024-05-06 18:11:53 +08:00
LongYinan
4719caa643
feat(napi): support Return generic of ThreadsafeFunction ( #1997 )
...
* feat(napi): support to use tuple with either (#1993 )
`Either` uses `ValidateNapiValue` + `TypeName` to validate and report error on value not being matched. So there's no way to remove these super traits from it. So I implemented these types to `Tuple` types.
* feat(napi): support `Return` generic of ThreadsafeFunction
* depracate JsFunction
* CalleeHandled tsfn should handle Result in callback
* Pass env to call_with_return_value callback
* Fix compile
* clippy fix
* Fix electron test
* Function args
---------
Co-authored-by: Hana <andywangsy@gmail.com>
2024-03-20 21:37:08 +08:00
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