Commit graph

1860 commits

Author SHA1 Message Date
LongYinan
ce01255531
chore: publish
- @napi-rs/cli@2.7.0
2022-04-27 13:32:36 +08:00
LongYinan
ad6dffc409
Merge pull request #1152 from napi-rs/drop-node-17
chore: drop node 17, add node 18
2022-04-27 13:31:56 +08:00
LongYinan
2e96297e1a
chore: drop node 17, add node 18 2022-04-27 13:17:39 +08:00
LongYinan
46e12eaa52
Merge pull request #1151 from napi-rs/upgrade-dependencies
chore: upgrade dependencies
2022-04-27 12:03:13 +08:00
LongYinan
cf6b2c9241
chore: upgrade dependencies 2022-04-27 00:57:57 +08:00
LongYinan
2c775082cd
Merge pull request #1150 from napi-rs/into-reference
feat(napi): support return Reference on class instance
2022-04-26 21:33:59 +08:00
LongYinan
878b843f29
feat(napi): support return Reference on class instance 2022-04-26 18:21:55 +08:00
LongYinan
8ae06dccc8
Merge pull request #1149 from napi-rs/multi-impl-typedef
fix(cli): generated type def on multi impl blocks
2022-04-26 18:21:35 +08:00
LongYinan
c3a35a0704
fix(cli): generated type def on multi impl blocks 2022-04-26 18:04:37 +08:00
LongYinan
cc79c9794e fix(napi-derive): should transform struct case on Impl 2022-04-26 18:04:14 +08:00
LongYinan
5aa61c2142 fix(napi): use create_buffer/arrary_buffer if provided data is empty 2022-04-26 16:53:13 +08:00
LongYinan
a41cc07f21
Release independent packages
napi@2.3.2
napi-derive@2.3.1
2022-04-25 16:09:57 +08:00
LongYinan
eee42e92e7
Merge pull request #1144 from mischnic/empty-buffer 2022-04-23 20:33:28 +08:00
Niklas Mischkulnig
0bdb722097
test(napi): add test for multiple empty buffers 2022-04-23 12:27:47 +02:00
Niklas Mischkulnig
39e55a39c9
fix(napi): use null pointer for empty buffers 2022-04-23 12:27:44 +02:00
Gabriel Francisco
581e3bbb87
chore(napi): add u64 to BigInt conversion through From trait (#1143)
* Add u64 to BigInt conversion through From trait

* Fix lint
2022-04-23 00:29:18 +08:00
LongYinan
454d3b8cab
chore: build node 18 linux arm image 2022-04-22 23:16:06 +08:00
Gabriel Francisco
d56c9c56a8
fix(napi-derive): simplify the optional values in generated declaration file (#1141) 2022-04-22 16:53:27 +08:00
Gabriel Francisco
c39060984d
feat(cli): add build option to not include the header in dts file (#1140)
* Add build option to not include the header in dts file

* Fix lint
2022-04-22 16:52:43 +08:00
LongYinan
4f422b6625
build: tweak alpine image 2022-04-18 12:19:48 +08:00
LongYinan
8cb6708be7
build: do not upgrade system components in alpine 2022-04-17 23:40:37 +08:00
LongYinan
e785e31e19
build: install alpine build-base on stable channel 2022-04-17 22:21:13 +08:00
LongYinan
e81e3dbb2e
Release independent packages
napi@2.3.1
2022-04-15 21:41:14 +08:00
LongYinan
9c55588889 ci: more effective cache config 2022-04-15 21:40:20 +08:00
LongYinan
5dd96c1b89 ci: check all napi features 2022-04-15 21:40:20 +08:00
Chanakya
09d7fd671a fix cannot find trait ToNapiValue error 2022-04-15 21:02:40 +08:00
LongYinan
ce308a3b54
Release independent packages
napi@2.3.0
napi-derive@2.3.0
2022-04-14 17:27:21 +08:00
LongYinan
cd9bb0c5d6 docs: add return Promise callback function
Fix https://github.com/napi-rs/napi-rs/issues/1128
2022-04-14 14:24:47 +08:00
LongYinan
c553dcd4e0 feat(napi): relax the value type on ThreadSafeFunction 2022-04-14 14:24:47 +08:00
LongYinan
89cce5752b feat(napi-derive): support generic types on fn 2022-04-14 14:24:47 +08:00
LongYinan
6b7cd185a1 fix(napi-derive): JsUnknown should be unknown type 2022-04-14 14:24:47 +08:00
LongYinan
f05ced0782 feat(napi): add from_unknown method on FromNapiValue 2022-04-14 14:24:47 +08:00
Walt Seymour
73882337cc unrwap -> unwrap 2022-04-14 14:24:32 +08:00
LongYinan
c605911cdf chore(napi): show tips if create different buffers with same data 2022-04-13 13:24:53 +08:00
LongYinan
1d1c1706d5 Release independent packages
napi@2.3.0-alpha.1
napi-derive@2.3.0-alpha.1
2022-04-13 13:24:53 +08:00
LongYinan
63a557f6cc test(napi): add memory tests for Reference 2022-04-13 13:24:53 +08:00
LongYinan
6a252c70d2 fix(napi): make buffer Send & Sync safe 2022-04-13 13:24:53 +08:00
LongYinan
6eec0f93c1 feat(napi): redesign the Reference API (#1118)
- Reference now is inject by #[napi] macro
- Class Reference and underlaying data now have the same lifetime
2022-04-13 13:24:53 +08:00
LongYinan
107539d906 Revert "chore: unset CARGO_BUILD_TARGET in debian.Dockerfile"
This reverts commit 92a5bd1a8387c11272ccd01f288b4b5eaad4442c.
2022-04-13 13:24:53 +08:00
LongYinan
de9a039ba0 chore: unset CARGO_BUILD_TARGET in debian.Dockerfile 2022-04-13 13:24:53 +08:00
LongYinan
6a372395aa build: migrate debian image to messense/manylinux2014-cross 2022-04-13 13:24:53 +08:00
LongYinan
be0f4760ff Release independent packages
napi@2.3.0-canary.0
napi-derive@2.3.0-canary.0
2022-04-13 13:24:53 +08:00
LongYinan
5c3d1b2144 feat(napi): experimental class reference API 2022-04-13 13:24:53 +08:00
LongYinan
5994ef1b95
Merge pull request #1130 from napi-rs/fix-rust-1.57
fix(napi): remove CString::from_vec_with_nul_unchecked
2022-04-13 11:27:09 +08:00
LongYinan
9b0103cf22
fix(napi): remove CString::from_vec_with_nul_unchecked 2022-04-13 01:29:23 +08:00
LongYinan
1535e72150
chore: publish
- @napi-rs/cli@2.6.2
2022-04-02 02:34:10 +08:00
killa
6bef28a59b
fix: cargo metadata with large project (#1117)
Set `maxBuffer` to 10mb, cargo metadata may output
data more than 1mb(the nodejs default value).

Refs:
- https://github.com/napi-rs/napi-rs/issues/1116
2022-04-02 02:33:40 +08:00
LongYinan
dc87c46322
chore: publish
- @napi-rs/cli@2.6.1
2022-04-01 17:20:00 +08:00
LongYinan
83712d7312
Merge pull request #1115 from napi-rs/fix-cargo-name-restrict
fix(cli): should not throw if cargoName is provided but no package.name
2022-04-01 17:19:11 +08:00
LongYinan
8700da1776
fix(cli): should not throw if cargoName is provided but no package.name 2022-04-01 17:07:53 +08:00