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
Jose Acevedo
36e808d2a6
feat: add 'coerce_to_object' method to Array
2022-01-17 21:07:25 -08:00
LongYinan
859b422ba8
Merge pull request #1035 from napi-rs/zig-cross-fix
2022-01-17 20:25:34 +08:00
LongYinan
1799aa94e3
fix(cli): swap -lgcc_s with -lunwind
2022-01-17 14:05:52 +08:00
Tim Fish
cdcab888ee
fix(napi-derive): correctly escape backslash in type definition doc comments ( #1034 )
2022-01-17 12:38:16 +08:00
dependabot[bot]
b7ac6ee937
build(deps): bump shelljs from 0.8.4 to 0.8.5
2022-01-15 07:10:36 +00:00
LongYinan
cbbccf2084
Merge pull request #1029 from napi-rs/fix-clippy
...
fix(napi): clippy error on 1.58
2022-01-14 11:48:25 +08:00
LongYinan
6b01785d03
Merge pull request #1020 from dceddia/threadsafe-function-cleanup
...
fix(napi): abort threadsafe functions upon env cleanup
2022-01-14 11:48:11 +08:00
LongYinan
70bd987251
Merge pull request #1027 from messense/fix-rustflags
...
fix(cli): properly handle RUSTFLAGS env var
2022-01-14 11:27:12 +08:00
LongYinan
41bcd9c50b
fix(napi): clippy error on 1.58
2022-01-14 11:21:03 +08:00
Dave Ceddia
1006b3a489
fix(napi): abort threadsafe functions upon env cleanup
...
This fixes a deadlock/panic in Electron when the window is reloaded.
2022-01-13 10:06:50 -05:00
messense
d84cbe88bd
fix(cli): properly handle RUSTFLAGS env var
2022-01-13 21:36:59 +08:00
LongYinan
110f2196a4
chore: publish
...
- @napi-rs/cli@2.4.0
2022-01-13 18:21:44 +08:00
LongYinan
95d49f8cf4
fix(cli): zig abi should pass to linker
2022-01-13 18:21:20 +08:00
LongYinan
5d9a444e40
Merge pull request #1026 from messense/strip
...
feat(cli): add `--strip` option for removing symbols
2022-01-13 17:40:54 +08:00
messense
887bdb9d29
feat(cli): add --strip
option for removing symbols
2022-01-13 17:00:04 +08:00
LongYinan
1768cf69ee
Release independent packages
...
napi@2.0.3
2022-01-13 14:52:19 +08:00
LongYinan
efcd6ba8a5
chore: publish
...
- @napi-rs/cli@2.3.1
2022-01-13 14:44:49 +08:00
LongYinan
ee3e68adec
Merge pull request #1025 from napi-rs/support-zig-abi-flag
...
fix(cli): missing zig-abi-suffix support
2022-01-13 14:39:41 +08:00
LongYinan
8a4870c8dd
Merge pull request #1024 from messense/forbid-unsafe_op_in_unsafe_fn
...
chore: forbid unsafe_op_in_unsafe_fn
2022-01-13 14:30:53 +08:00
LongYinan
472ac10c67
fix(cli): missing zig-abi-suffix support
2022-01-13 14:26:29 +08:00
messense
43fb8edecd
chore: forbid unsafe_op_in_unsafe_fn
2022-01-13 11:26:28 +08:00
LongYinan
20df7be13a
Merge pull request #1023 from napi-rs/fix/get-str-from-object
...
fix(napi): invalid memory address in FromNapiValue for &str
2022-01-12 17:22:20 +08:00
LongYinan
ee713bce70
ci: fix FreeBSD
2022-01-12 17:08:47 +08:00
LongYinan
2de500f33b
fix(napi): invalid memory address in FromNapiValue for &str
2022-01-12 17:08:47 +08:00
LongYinan
645a2e7885
Release independent packages
...
napi-derive@2.0.7
2022-01-07 14:11:47 +08:00
yiliuliuyi
8aee7928b9
Merge pull request #1015 from napi-rs/fix/bigint
...
fix(napi-derive): BigInt in TypeScript should be bigint
2022-01-06 22:49:59 +08:00
LongYinan
b53e0e1e95
fix(napi-derive): BigInt in TypeScript should be bigint
2022-01-06 22:33:34 +08:00
LongYinan
5ef1d11e27
chore: publish
...
- @napi-rs/cli@2.3.0
2022-01-06 17:41:42 +08:00