Commit graph

183 commits

Author SHA1 Message Date
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
LongYinan
30ef04cbfa
napi@1.1.0 2021-01-05 23:42:54 +08:00
LongYinan
911a0c139d
feat(napi): Env::create_arraybuffer_with_borrowed_data 2021-01-05 23:27:01 +08:00
LongYinan
4d0b79aa02
napi@1.0.1 2021-01-04 15:16:52 +08:00
LongYinan
0c9981beb7
fix(napi): enable napi4 when tokio_rt enabled 2021-01-04 14:57:45 +08:00
LongYinan
c28f035f5c
fix(napi): remove unexpected napi_acquire_threadsafe_function 2021-01-04 14:56:32 +08:00
LongYinan
294563d8dc
chore(build): upgrade ureq to 2.0 2021-01-04 13:55:26 +08:00
LongYinan
e02bda46c1
1.0.0 2020-12-30 00:56:08 +08:00
LongYinan
f2e046958f
napi@1.0.0-alpha.11 2020-12-29 16:39:30 +08:00
LongYinan
50ce9c6569
feat(napi): implement value getter for JsNumber 2020-12-29 16:36:38 +08:00
LongYinan
cbd4e4d1fc
chore(napi): remove TryFrom<JsNumber> for usize 2020-12-28 21:40:06 +08:00
LongYinan
96b1abc00f
napi@1.0.0-alpha.10 2020-12-28 14:02:59 +08:00
LongYinan
ad2a84984f
feat(napi): uncheck version of Object methods 2020-12-27 23:46:07 +08:00
LongYinan
9fb5a61a0b
napi@1.0.0-alpha.9 2020-12-25 12:02:39 +08:00
LongYinan
b1c8192d2a
refactor(napi): JsUnknow::cast now will not move ownership 2020-12-25 12:02:24 +08:00
LongYinan
a3d8623198
napi@1.0.0-alpha.8 2020-12-25 00:36:22 +08:00
LongYinan
501313789d
feat(napi): AsMut and DerefMut for JsBuffer 2020-12-25 00:21:37 +08:00
LongYinan
ff66f102de
napi@1.0.0-alpha.7 2020-12-24 15:46:20 +08:00
LongYinan
2a6c452ce7
refactor(napi): create_buffer_with_borrowed_data now accept not-null finalize_callback 2020-12-24 15:45:59 +08:00
LongYinan
ac2f3bd00e
napi@1.0.0-alpha.6 2020-12-24 13:55:45 +08:00
LongYinan
f59d3ee5fc
feat(napi): tokio 1.0 2020-12-24 13:55:21 +08:00
LongYinan
26a2c01cd6
feat(napi): From Serde JSON Error for Error 2020-12-24 12:20:23 +08:00
LongYinan
530359421c
refactor(napi): create_buffer_with_borrowed_data now accepted raw ptr 2020-12-24 11:53:23 +08:00
LongYinan
9e73837635
napi@1.0.0-alpha.5 2020-12-23 15:35:14 +08:00
LongYinan
8fcf42eeb6
refactor(napi): create_buffer_with_manually_drop_data => create_buffer_with_borrowed_data 2020-12-23 15:34:10 +08:00
LongYinan
5869e04283
docs: rust doc enhancement 2020-12-22 21:32:50 +08:00
LongYinan
db930dabe7
napi@1.0.0-alpha.4 2020-12-22 19:44:23 +08:00
LongYinan
bc25a5603b
fix(napi): adjust_external_memory in raw_finalize callback 2020-12-22 19:43:46 +08:00
LongYinan
1c4265496e
feat(napi): allow provide size_hint in create_external 2020-12-22 11:57:26 +08:00
LongYinan
c4d3876250
fix(napi): remove useless napi_adjust_external_memory in create_external_*_buffer 2020-12-22 11:57:03 +08:00
LongYinan
91e21ce3a0
napi@1.0.0-alpha.3 2020-12-22 10:53:06 +08:00
LongYinan
0446e463c8
fix(napi): memory issues in create_external_buffer 2020-12-21 16:10:30 +08:00
LongYinan
d2b61ef01f
napi-rs@1.0.0-alpha.2 2020-12-18 12:19:08 +08:00
LongYinan
0239b9c012
Merge pull request #370 from napi-rs/task-reject
feat(napi): provide reject method in Task trait
2020-12-18 11:58:24 +08:00
LongYinan
9d38689426
feat(napi): provide reject method in Task trait
Do some cleanup logic if needed
2020-12-18 11:32:15 +08:00
LongYinan
bb5e1f4286
feat(napi): implement create_reference/get_reference_value 2020-12-18 00:07:24 +08:00
LongYinan
c4734e23a1
feat(napi): set and get instance data 2020-12-17 00:27:33 +08:00
LongYinan
c621986ce5
feat(napi): implement add_finalizer for JsObject 2020-12-16 23:23:04 +08:00
LongYinan
8513e4f796
docs: napi6 should be napi7 2020-12-10 14:26:53 +08:00
LongYinan
932ebcbee5
feat(napi): create_buffer_with_manually_drop_data 2020-12-10 14:26:19 +08:00
LongYinan
5989a79f0d
feat(napi): unsafe cast JsUnknown to the other JsValue 2020-12-10 14:26:18 +08:00
LongYinan
fb4d5b5af5
napi@1.0.0-alpha.1 2020-12-09 21:58:08 +08:00
LongYinan
1c0634f6f2
fix(napi): move sys call out from debug_assert! macro 2020-12-09 21:57:48 +08:00
LongYinan
78245b0e8f
chore(napi): remove useless type cast in JsBuffer 2020-12-09 19:24:44 +08:00
LongYinan
f90640d7aa
docs: update documents 2020-12-03 17:17:40 +08:00
LongYinan
94e0ac548c
1.0.0-alpha.0 2020-12-02 23:45:27 +08:00
LongYinan
ba9744e89c
refactor(napi): reduce useless type cast 2020-12-02 18:39:20 +08:00