LongYinan
8bb4db349d
chore: upgrade dependencies
2022-06-04 01:26:35 +08:00
LongYinan
fe4cc74743
build: fix debian-aarch64 image
2022-06-04 01:26:35 +08:00
LongYinan
04a865270c
Merge pull request #1201 from napi-rs/class-instance
...
feat(napi): support into_instance in class struct
2022-06-04 01:26:16 +08:00
LongYinan
c1e07b3c12
feat(napi): support into_instance in class struct
2022-06-04 01:07:47 +08:00
LongYinan
717f96acfc
ci: fix debian image
2022-05-31 12:53:49 +08:00
LongYinan
67cf075f86
Merge pull request #1198 from Hywan/feat-tonapivalue-vec-numbers
2022-05-30 23:50:24 +08:00
Ivan Enderlin
94e95e87e7
feat(napi) Extend #1195 to Vec<T>
.
...
This patch is the sequel of
https://github.com/napi-rs/napi-rs/pull/1195 where `ToNapiValue` and
`FromNapiValue` are implemented for all `Vec<T>` where `T` is a 8 or
16 bits number.
2022-05-30 16:29:44 +02:00
Sunli
5cdfc8cb7e
feat(napi) implement From<Infallible>
for napi::Error
2022-05-30 21:44:03 +08:00
Ivan Enderlin
56e71a76d3
feat(napi) Return an error instead of panicking.
2022-05-25 14:43:23 +08:00
Ivan Enderlin
cb2a407228
feat(napi) Implement ToNapiValue
for 8 and 16-bits numbers.
...
`napi` only supports numbers in 16 and 32-bits. To support Rust
numbers with 8 and 16-bits, we can cast them to 32-bits. To convert
from 8 and 16-bits to 32-bits, we use their `Into` implementation. To
convert from 32-bits to 8 and 16-bits, we use their `TryInto`, we
should theorically not fail, but in case of, an `except` message is
appended.
The code has also been re-indented as it was containing a mix of 2
spaces, 4 spaces and tabs identation.
2022-05-25 14:43:23 +08:00
Jose Acevedo
796ba363f5
test(napi-derive): add trybuild negative macro tests
2022-05-23 11:55:19 +08:00
messense
beb75111fc
fix(cli): parse host target triple from rustc -vV
( #1191 )
2022-05-22 13:43:35 +08:00
Jose L
5be415d3d9
feat(napi-derive): add ts_arg_type attribute to override individual args on functions ( #1192 )
2022-05-22 13:43:11 +08:00
messense
5cbeac59dc
Add rust-version
field to Cargo.toml
s ( #1190 )
2022-05-20 16:23:10 +08:00
LongYinan
a2b993acd2
chore: upgrade npm dependencies ( #1182 )
2022-05-14 18:56:50 +08:00
LongYinan
b797a243e2
chore: publish
...
- @napi-rs/cli@2.9.0
2022-05-14 17:03:09 +08:00
messense
1399288df5
feat(cli): allow specifying an alternative cargo binary via CARGO
env var ( #1181 )
2022-05-14 15:03:31 +08:00
Devon Govett
d6c755c4eb
fix(napi-derive): js_name
support for getters and setters ( #1179 )
2022-05-13 12:55:54 +08:00
LongYinan
822f4af1cc
Release independent packages
...
- napi@2.4.3
2022-05-12 16:59:33 +08:00
LongYinan
6c1d0f0409
Merge pull request #1178 from napi-rs/either-type
...
fix(napi): type constraint for either types
2022-05-12 16:58:45 +08:00
LongYinan
a5c19ce1da
fix(napi): type constraint for either types
2022-05-12 15:12:32 +08:00
LongYinan
fb8d8b97d6
Release independent packages
...
napi@2.4.2
napi-derive@2.4.2
napi-sys@2.2.2
2022-05-10 22:32:06 +08:00
LongYinan
3d4c421585
Merge pull request #1177 from napi-rs/iterator-default-constructor
...
fix(napi): missing iterator implementation from class factory
2022-05-10 22:23:45 +08:00
LongYinan
47fcc8501a
fix(napi): missing iterator implementation from class factory
2022-05-10 21:50:20 +08:00
LongYinan
57ea8dc8f3
Merge pull request #1172 from devongovett/weak-reference
...
Add support for weak references
2022-05-10 21:27:16 +08:00
Devon Govett
27402aee81
feat(napi): add support for weak references
2022-05-10 21:09:45 +08:00
LongYinan
5ecf16e5ad
Merge pull request #1176 from napi-rs/remove-thread-local
...
Remove `thread_local!` usage, add electron test
2022-05-10 19:16:31 +08:00
LongYinan
65b4b34f40
test(napi): add electron tests
2022-05-10 18:39:37 +08:00
LongYinan
788a962137
fix(napi): drop all thread_local! usage
2022-05-10 18:39:36 +08:00
LongYinan
7203632bb3
chore: add RUST_TARGET env in debian.Dockerfile
2022-05-09 12:17:01 +08:00
LongYinan
79d7453713
Release independent packages
2022-05-07 20:23:01 +08:00
LongYinan
700f78fbf6
Merge pull request #1169 from napi-rs/setup-sys
...
fix(napi): load Node-API symbols manually on Windows
2022-05-07 20:21:47 +08:00
LongYinan
e551bd7c1a
fix(napi): load Node-API symbols manually on Windows
2022-05-07 18:54:37 +08:00
LongYinan
daf5f1f9e9
Release independent packages
...
- napi@2.4.0
- napi-derive@2.4.0
- napi-sys@2.2.0
- napi-build@2.0.0
2022-05-07 15:51:22 +08:00
LongYinan
d728b3ab3c
chore: publish
...
- @napi-rs/cli@2.8.0
2022-05-07 15:49:00 +08:00
LongYinan
e778e400e9
chore: publish
...
- @napi-rs/cli@2.8.0-alpha.0
2022-05-06 23:05:27 +08:00
LongYinan
e094f78e08
Merge pull request #1167 from napi-rs/dyn-load
...
Use libloading on Windows
2022-05-06 22:43:42 +08:00
LongYinan
1bf072ad7d
refactor(napi): use libloading on Windows
2022-05-06 22:27:09 +08:00
LongYinan
4f120ba8ff
Merge pull request #1166 from napi-rs/generator
...
Iterator Support
2022-05-06 19:53:35 +08:00
LongYinan
a3356264f2
feat(napi): experimental iterator support
2022-05-06 18:03:04 +08:00
LongYinan
b074608582
docs: broken example in README.md
...
Fix https://github.com/napi-rs/napi-rs/issues/1158
2022-05-06 17:46:20 +08:00
LongYinan
4b06121c5e
docs: broken links for Prisma and Next.js
2022-05-05 11:59:06 +08:00
LongYinan
e7464383d3
build: add --sysroot flag to clang/clang++ in aarch64 linux gnu image
2022-05-04 16:34:28 +08:00
LongYinan
74cfcd377a
build: export C_INCLUDE_PATH in aarch64 linux gnu image
2022-05-04 14:47:54 +08:00
LongYinan
4fb120ab34
Merge pull request #1161 from devongovett/reference-crash
...
fix(napi): handle the referenced object is finalized before `Reference::drop`
2022-05-04 11:45:48 +08:00
Devon Govett
91c62c4616
fix(napi): handle the referenced object is finalized before Reference::drop
2022-05-03 21:59:42 +08:00
LongYinan
68a6d507ff
Merge pull request #1162 from napi-rs/add-debian-aarch64-cross-image
...
feat(cli): new command upgrade
2022-05-03 20:03:37 +08:00
LongYinan
652aa3cc57
feat(cli): new command upgrade
...
- Add .gitignore file
- Upgrade actions in CI.yml
- Using the new cross compile image for x86_64-linux-gnu and aarch64-linux-gnu
2022-05-03 17:24:48 +08:00
LongYinan
a91a8b4201
Merge pull request #1159 from bnoordhuis/from_reason
...
feat(napi): make Error::from_reason() generic
2022-05-02 14:13:59 +08:00
Ben Noordhuis
f301581445
feat(napi): make Error::from_reason() generic
2022-05-01 17:00:24 +02:00