Commit graph

215 commits

Author SHA1 Message Date
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
LongYinan
5ffb14729d
refactor(napi): js error 2020-12-02 14:56:19 +08:00
LongYinan
c184ab3926
ci: add cargo clippy 2020-12-01 14:58:00 +08:00
LongYinan
1a3621b727
feat(napi): major upgrades for napi@1
1. inline everything
2. change `check_status` and `type_of` to macro
3. provide #[module_exports] macro
4. remove debug and repr[transparent] for ffi struct
2020-11-26 11:31:49 +08:00
LongYinan
c370b8374b
fix(napi): CString memory leak 2020-11-20 10:53:33 +08:00
LongYinan
e337a58714
chore(napi): remove unsafe from CallContext::this_unchecked 2020-11-20 09:09:57 +08:00
LongYinan
781ff8dc14
refactor(napi): make NapiTrait to be unsafe
close https://github.com/napi-rs/napi-rs/issues/299
2020-11-20 00:07:20 +08:00
LongYinan
2d47969d08
fix(napi): CString issues 2020-11-19 23:41:29 +08:00
LongYinan
e4f005c735
fix(napi): memory leak with CString 2020-11-15 23:22:29 +08:00
LongYinan
68017ce246
fix(napi): memory leak in create_named_property 2020-11-14 11:45:10 +08:00
LongYinan
1669b3a8f1
fix(napi): windows-i686 release build problem 2020-11-14 00:22:10 +08:00
LongYinan
add6e2b9dc
fix(napi): import name conflict 2020-11-12 11:41:41 +08:00
LongYinan
e9fd5d3d40
feat(napi): add abort guard in tsfn methods 2020-11-12 10:47:33 +08:00
LongYinan
eb5f4931bd
feat(napi): impl Clone and Drop for ThreadSafeFunction, return Status from ThreadSafeFunction::call 2020-11-11 16:51:11 +08:00
LongYinan
f3bb57abfb
fix(napi): hanlde unknown enum values from FFI 2020-11-11 14:34:30 +08:00
LongYinan
fc0ec0b378
refactor(napi-sys): remove bindgen 2020-11-10 17:52:59 +08:00
LongYinan
47f5011a8f feat(napi): support build on i686-pc-windows-msvc 2020-11-04 23:08:54 +08:00
LongYinan
f9ec712d57
Merge pull request #283 from napi-rs/simplify-module-register
chore(napi): simplify module register, support node@10+
2020-11-04 17:41:19 +08:00
LongYinan
7c996ebaa0
chore(napi): remove useless From trait 2020-11-04 16:36:01 +08:00
LongYinan
078d1ed2d0
chore(napi): simplify module register, support node@10+ 2020-11-04 15:54:57 +08:00
adumbidiot
d9214e7805 Convert bindgen rustified_enum to newtype_enum 2020-11-02 19:23:41 -08:00
LongYinan
2993287010
feat(napi): expose length property in CallContext 2020-10-31 22:51:40 +08:00
LongYinan
8c9295f6f0
fix(napi): return self in Property#with_property_attributes 2020-10-31 22:22:23 +08:00
LongYinan
f1f9402a44
feat(napi): export PropertyAttributes 2020-10-31 22:19:57 +08:00
adumbidiot
5364458366 Avoid running entire napi_build::setup twice 2020-10-30 18:29:08 -07:00
adumbidiot
e36e1e1fbb Copy win_delay_load_hook from Neon 2020-10-30 18:24:19 -07:00
LongYinan
6ba674e4bc
feat(napi): new JsFunction instance 2020-10-27 14:19:40 +08:00
LongYinan
e559908b76
feat(napi): implement create_array 2020-10-21 15:17:06 +08:00
LongYinan
64d66a2261
chore: tokio@0.3 2020-10-16 20:58:56 +08:00
LongYinan
5a49efe25e
feat: support linux aarch64 2020-10-15 09:12:43 +08:00
LongYinan
826ebd9847
refactor(napi): module register logic 2020-10-14 11:30:41 +08:00
LongYinan
13216f523a
feat(napi): napi_get_all_property_names 2020-10-12 22:38:52 +08:00
LongYinan
1dc9974c19
feat(napi): implement detach arraybuffer 2020-10-11 22:26:09 +08:00
LongYinan
ae8de8a631
feat(napi): implement dataview related apis 2020-10-11 22:15:58 +08:00
LongYinan
809ecfec49
feat(napi): implement create_buffer_copy 2020-10-11 21:54:23 +08:00
LongYinan
276fc45603
style: format toml files 2020-10-11 21:36:14 +08:00
LongYinan
d151318131
fix(napi): TypedArray napi < 6 compatible issue 2020-10-10 19:00:21 +08:00
LongYinan
0deb9f7755
feat(napi): implement TypedArray related APIs 2020-10-10 18:54:05 +08:00
LongYinan
3da8daf192
feat(napi): implement napi_reference_ref 2020-10-10 18:21:11 +08:00
LongYinan
e0d75d1453
feat(napi): implement napi_is_promise 2020-10-10 18:17:32 +08:00
LongYinan
6c95d86d2f
feat(napi): implement date related API 2020-10-10 15:02:11 +08:00
LongYinan
c5f2b6699d
refactor(napi): thread safe function redesign 2020-10-04 17:16:35 +08:00
LongYinan
45411a59ea
feat(napi): implement env cleanup hook 2020-10-04 16:02:04 +08:00
LongYinan
43c01796eb
feat(napi): implement JsTimeout 2020-10-03 14:57:56 +08:00
LongYinan
a532451fc0
feat(napi): refactor Env::get_global 2020-10-03 14:57:31 +08:00
LongYinan
3eecf1fc5f
fix(napi): arraybuffer implement
close https://github.com/napi-rs/napi-rs/issues/68
2020-09-30 18:23:31 +08:00
LongYinan
9c921ffaa3
refactor(napi): scope and Ref 2020-09-30 15:54:54 +08:00
LongYinan
fb4d07edd4
feat: add benchmark crate and frameworks 2020-09-30 15:31:17 +08:00
LongYinan
aadca83d2e
refactor(napi): implement async task cancel 2020-09-26 18:12:52 +08:00
LongYinan
f1281af260
feat(napi): add lifetime span to JsBuffer 2020-09-26 17:59:58 +08:00
LongYinan
c0277542a2
refactor(napi): from_raw_unchecked and this_unchecked 2020-09-26 17:49:30 +08:00
LongYinan
d3fdfd48d0
refactor(napi): remove useless handle_scope operation in async_work 2020-09-26 17:14:44 +08:00
LongYinan
8440c6893a
chore(release): publish 2020-09-07 17:44:31 +08:00
LongYinan
df5b082141
perf(napi): remove typecheck in CallContext for better performance 2020-09-07 17:26:28 +08:00
LongYinan
1219f3b172
chore(release): publish
- napi@0.5.0
- napi-derive@0.5.0
2020-09-03 20:39:29 +08:00
LongYinan
9aec0ec38e
docs: upgrade docs 2020-09-03 20:38:28 +08:00
LongYinan
371cc5eab0
feat(napi): string latin1 support 2020-09-03 19:11:30 +08:00
LongYinan
1c3d9b4e9a
test(napi): add more object functions tests 2020-09-03 15:34:27 +08:00
LongYinan
76d1258592
feat(napi): implement all object functions 2020-09-03 00:02:41 +08:00
LongYinan
a022fe01d9
chore(napi): cleanup codes 2020-09-02 10:59:11 +08:00
LongYinan
ea3fff25ae
feat(napi): serde-json feature 2020-09-01 23:48:02 +08:00
LongYinan
98ca6a3339
chore(release): publish
- napi@0.4.13
2020-08-24 20:10:32 +08:00
LongYinan
be8e0f09e6
build(napi): fix docsrs build 2020-08-24 20:10:11 +08:00
LongYinan
1a23ab4606
chore(release): publish
- napi@0.4.12
- napi-sys@0.4.7
2020-08-24 19:48:02 +08:00
LongYinan
e1476cb219
chore(release): publish
- napi@0.4.11
- napi-sys@0.4.6
2020-08-24 19:08:09 +08:00
LongYinan
98210cd771
feat(napi): implement more napi 2020-08-24 16:16:41 +08:00
Ouyang Yadong
00454eb577 refactor(napi): use get_uv_event_loop instead of uv_default_loop
Using the uv_loop_s from napi_env is safer as it's possible that
there are multiple Workers, and therefore multiple uv_loop_s.
2020-08-18 13:55:35 +08:00
LongYinan
b19bfcf651
chore(release): publish
- napi-sys@0.4.5
- napi@0.4.10
2020-08-16 17:41:44 +08:00
LongYinan
6e734030a8
chore(release): publish
- napi@0.4.9
- napi-sys@0.4.4
2020-08-16 16:21:13 +08:00