LongYinan
d55e4f6f1f
style: format toml files
2022-02-11 10:46:17 +08:00
Simon Vandel Sillesen
a3c29eb508
add unit test that shows Date
is rendered in TS type in interface
2022-02-10 18:52:57 +01:00
LongYinan
13bccf7dfb
Merge pull request #1071 from napi-rs/external-on-demand
...
fix(cli): generate ExternalObject type on demand
2022-02-10 18:50:59 +08:00
LongYinan
f9c618e046
fix(cli): generate ExternalObject type on demand
2022-02-10 18:37:04 +08:00
Simon Vandel Sillesen
f3c34cc452
chrono_date implies napi5
2022-02-10 06:44:43 +01:00
Simon Vandel Sillesen
2b2841e8d3
feat: Add support for Date <-> chrono::DateTime<Utc>
2022-02-09 20:59:58 +01:00
LongYinan
e607bc158e
Release independent packages
...
- napi@2.1.0
- napi-derive@2.1.0
2022-02-09 20:44:53 +08:00
LongYinan
7c67cc143c
chore: publish
...
- @napi-rs/cli@2.4.3
2022-02-09 20:43:03 +08:00
LongYinan
1f09a0cf77
chore: make example and bench package private
2022-02-09 20:42:00 +08:00
LongYinan
90af390f65
Merge pull request #1067 from napi-rs/node-10x
...
fix(cli): compatible for Node.js 10x
2022-02-09 13:01:13 +08:00
LongYinan
5f359dfaae
fix(cli): compatible for Node.js 10x
2022-02-09 12:41:56 +08:00
LongYinan
2e68612830
ci: pin llvm clang versions
2022-02-07 23:33:57 +08:00
LongYinan
102b29c777
Merge pull request #1066 from napi-rs/issue/deref-u8-array
...
fix(napi): deref from Uint8ClampedArray
2022-02-07 14:40:41 +08:00
LongYinan
2763a8e7b2
fix(napi): deref from Uint8ClampedArray
2022-02-07 12:24:09 +08:00
LongYinan
25f2147e6b
Merge pull request #1065 from napi-rs/issue/date-type
...
fix(napi): re-export JsDate as Date in prelude
2022-02-06 21:00:14 +08:00
LongYinan
80ea0ad78c
fix(napi): re-export JsDate as Date in prelude
2022-02-06 20:42:48 +08:00
LongYinan
5002e782a4
docs(napi): typo
2022-02-06 16:39:11 +08:00
LongYinan
2cd105cfc6
Merge pull request #1064 from napi-rs/feature/obj-property-value
...
feat(napi): `with_value` method on `Property`
2022-02-06 16:37:45 +08:00
LongYinan
dfd213a1ee
feat(napi): with_value
method on Property
2022-02-06 16:26:00 +08:00
AlCalzone
ed12bd76bd
feat: impl FromNapiValue
for serde_json::Number
, fix it for Null
, throw for impossible types ( #1052 )
...
fix #1013
Co-authored-by: zeroslope <jsx55242@foxmail.com>
2022-02-06 11:58:17 +08:00
LongYinan
c001038852
Merge pull request #1063 from napi-rs/clippy-fix
...
style: apply clippy suggestion
2022-02-06 11:02:02 +08:00
LongYinan
89893cdca3
style: apply clippy suggestion
2022-02-06 10:49:16 +08:00
LongYinan
9f66ca2818
Merge pull request #1058 from messense/bigint-zero
2022-02-05 13:28:35 +08:00
messense
d3e37a44cb
Fix BigInt issue with zero value
...
Looks like 0 is a special case: 4318b2348d/deps/v8/src/objects/bigint.cc (L1595-L1602)
2022-02-04 21:43:57 +08:00
LongYinan
ac25965ad3
Merge pull request #1056 from messense/roundtrip-str
2022-02-04 19:25:14 +08:00
messense
a1be16530b
Fix String roundtrip with interior nul bytes
2022-02-04 16:52:44 +08:00
LongYinan
666118d69f
Merge pull request #1050 from napi-rs/yarn-3
...
chore: upgrade to yarn3
2022-01-24 17:55:10 +08:00
LongYinan
1531489e18
chore: upgrade to yarn3
2022-01-24 17:25:40 +08:00
LongYinan
135b27acf4
Merge pull request #1048 from napi-rs/feat/get-js-function
...
Feat/get js function
2022-01-24 11:10:09 +08:00
LongYinan
98628980dc
ci: remove auto-merge job
2022-01-23 23:04:32 +08:00
LongYinan
13533d1a37
feat(napi): re-export tokio and features
2022-01-23 23:04:31 +08:00
LongYinan
16f808276d
feat(napi): implement get_js_function
2022-01-23 23:04:31 +08:00
LongYinan
85b6b099a8
Merge pull request #1043 from JoostK/fix-optional-args
...
fix(napi-derive): an `Option` in front of a required parameter is no …
2022-01-23 19:15:06 +08:00
JoostK
8652019c94
fix(napi-derive): an Option
in front of a required parameter is no longer optional in TypeScript
...
This fixes a bug where having a parameter of type `Option<T>` followed by required parameters
would incorrectly declare the parameter as option in the TypeScript declaration file, resulting
in invalid syntax.
2022-01-23 18:57:01 +08:00
Jose L
40651714c9
feat(napi-derive): add ts_type
attribute to override typtescript type for fields in structs
2022-01-23 18:45:41 +08:00
LongYinan
5b9e33cff7
Merge pull request #1036 from messense/asan
...
chore: run unit tests with asan
2022-01-22 17:06:29 +08:00
messense
97a1b1504a
chore: run asan with recompiled and instrumented Rust std library
...
https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/sanitizer.html#instrumentation-of-external-dependencies-and-std
2022-01-22 12:47:00 +08:00
messense
a109c54918
fix(napi): add missing nul byte to noop
...
Fixes a global-buffer-overflow bug
2022-01-22 12:34:55 +08:00
messense
6a83c21e0c
chore: run unit tests with asan
2022-01-21 22:51:52 +08:00
LongYinan
15ee5c73cc
chore: update funding
2022-01-21 15:19:07 +08:00
LongYinan
cb0c2a3350
chore: publish
...
- @napi-rs/cli@2.4.2
2022-01-19 17:20:49 +08:00
LongYinan
25f6754a71
fix(cli): js binding template
2022-01-19 17:20:27 +08:00
LongYinan
1b0b075b48
build: install lerna in Docker images
2022-01-18 16:48:29 +08:00
LongYinan
1238ee0276
Release independent packages
...
napi@2.0.4
napi-derive@2.0.8
2022-01-18 14:38:34 +08:00
LongYinan
250726a61a
chore: publish
...
- @napi-rs/cli@2.4.1
2022-01-18 14:37:15 +08:00
LongYinan
785e2ada06
Merge pull request #1038 from jose-acevedoflores/add_coerce_to_object_to_array
...
Add 'coerce_to_object' method to Array
2022-01-18 14:19:41 +08:00
LongYinan
d85cbfd926
Merge pull request #1039 from napi-rs/musl-zig-cross
...
Musl zig cross
2022-01-18 14:12:19 +08:00
LongYinan
f337ed5638
build: add musl zig cross build image
2022-01-18 13:41:59 +08:00
LongYinan
63a16d0a27
fix(cli): missing shebang in zig-cross sh file
2022-01-18 13:41:59 +08:00
Jose Acevedo
9a4f8cf32c
test: added test for coerce_to_object on Array
2022-01-17 21:29:47 -08:00