Commit graph

2332 commits

Author SHA1 Message Date
LongYinan
c61b20234e
chore: publish
- @napi-rs/cli@2.14.3
2023-01-13 17:06:20 +08:00
LongYinan
be805b684d
Release independent packages
napi-derive@2.9.4
2023-01-13 16:57:47 +08:00
Hana
976acc773e
fix(napi-derive): remove ts type on field attrs (#1436) 2023-01-12 13:32:59 +08:00
Luke Deen Taylor
84921fc0a3
fix(cli): cleanup zig behaviors (#1432) 2023-01-11 22:04:23 +08:00
LongYinan
38390dbef9
Release independent packages
napi@2.10.6
2023-01-11 22:02:19 +08:00
HeYunfei
d06bd23351
fix(napi): should correctly return while dropping Buffer (#1434) 2023-01-11 20:09:39 +08:00
LongYinan
dc3a4c9f25
feat(napi): refactor ThreadsafeFunction to allow get return value of it (#1427) 2023-01-11 18:54:45 +08:00
LongYinan
5492a0b9e9
fix(napi): delete reference should be after global custom gc (#1433) 2023-01-11 17:31:03 +08:00
LongYinan
097c5d63db
chore: publish
- @napi-rs/cli@2.14.2
2023-01-10 13:51:04 +08:00
overlookmotel
cc53807fe2
fix(cli): CARGO env var (#1426) 2023-01-10 12:30:49 +08:00
LongYinan
3d3fa533d9
Release independent packages
napi@2.10.5
2023-01-09 17:21:54 +08:00
LongYinan
ad3ac5abc7
fix(napi): array buffer drop notify never be called in cloned buffer (#1424) 2023-01-09 16:58:26 +08:00
LongYinan
5ab4b818f5
test(napi): remove outdated assersion (#1423) 2023-01-09 16:04:18 +08:00
overlookmotel
ce2a29fca7
fix(napi): arraybuffer memory leak (#1420) 2023-01-09 14:47:36 +08:00
dependabot[bot]
44eb4c6341
build(deps): bump json5 from 1.0.1 to 1.0.2 (#1418)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-08 22:07:44 +08:00
LongYinan
83e157e101
chore: publish
- @napi-rs/cli@2.14.1
2023-01-03 21:02:49 +08:00
LongYinan
895e4caf95
fix(cli): android cmake build 2023-01-03 21:02:13 +08:00
LongYinan
abc4566bbb
chore(cli): update CI template (#1416) 2023-01-03 14:58:33 +08:00
Jarod Brennfleck
c58972ee0a
fix(cli): quote toml path (#1410)
Fixes issue when tomlPath has a space in it
2022-12-29 16:24:28 +08:00
LongYinan
76a16be0eb
Release independent packages
napi@2.10.4
2022-12-29 16:00:09 +08:00
LongYinan
75af3d4253
Merge pull request #1414 from napi-rs/delete-reference
Delete reference
2022-12-29 15:58:40 +08:00
LongYinan
877d631d99
fix(napi): only delete reference in custom gc 2022-12-29 14:48:00 +08:00
LongYinan
d2a492a2d0
fix(napi): require higher version of once_cell 2022-12-29 14:27:33 +08:00
Xiaopeng Li
ce4c28412a
fix(napi): promise leak (#1403)
Co-authored-by: Xiaopeng Li <lixiaopeng.jetspark@bytedance.com>
2022-12-29 00:15:55 +08:00
LongYinan
a131c8aa40
Merge pull request #1413 from SevInf/feat/future-leak-repro
test: Memory leak reproduction for futures
2022-12-28 22:38:03 +08:00
LongYinan
b7ba068853
test: fix memory test assertion 2022-12-28 22:28:47 +08:00
Sergey Tatarintsev
81498ecbea
test: Memory leak reproduction for futures 2022-12-28 21:19:01 +08:00
LongYinan
1e8d20a559
chore: publish
- @napi-rs/cli@2.14.0
2022-12-25 20:28:31 +08:00
LongYinan
bc41c9778f
feat(cli): add --zig-link-only option (#1400) 2022-12-19 23:05:18 +08:00
LongYinan
1bcb3a3628
Release independent packages
napi@2.10.3
2022-12-19 19:49:11 +08:00
LongYinan
ef5dffca80
fix(napi): add back custom gc for Send Buffer (#1399) 2022-12-19 19:11:53 +08:00
LongYinan
e64f1b6b5b
Merge pull request #1397 from skirsdeda/darwin-universal
Darwin universal architecture
2022-12-19 17:52:03 +08:00
Tadas Dailyda
870552e0ee cli: fix ci-template typo 2022-12-19 17:40:43 +08:00
Tadas Dailyda
cf68288232 cli: universal support for CI template 2022-12-19 17:40:43 +08:00
Tadas Dailyda
4832e932ce cli: 'artifacts' command small fix 2022-12-19 17:40:43 +08:00
Tadas Dailyda
fed35841e0 cli: 'artifacts' command update to deal with universal builds 2022-12-19 17:40:43 +08:00
Tadas Dailyda
cfd8d3dc50 cli: add 'universal' command 2022-12-19 17:40:43 +08:00
Tadas Dailyda
2afdfe7aee cli: darwin universal support in js-binding-template.ts 2022-12-19 17:40:43 +08:00
Tadas Dailyda
b8bb2e5e4a cli: tests 2022-12-19 17:40:43 +08:00
Tadas Dailyda
cc9c650949 cli: add universal-apple-darwin platform 2022-12-19 17:40:43 +08:00
LongYinan
328b84eb8f
style: run format 2022-12-17 00:14:05 +08:00
LongYinan
f8d1dcee5b
Merge pull request #1395 from napi-rs/tweaks-code
chore(napi): reduce Mutex usage while loading addon
2022-12-16 23:13:36 +08:00
LongYinan
e370dee545
chore(napi): remove useless de_init 2022-12-16 21:50:49 +08:00
LongYinan
6e4b16fe5d
style: clippy fix 2022-12-16 20:19:39 +08:00
LongYinan
968d9e10b1
chore(napi): fix tokio destroy logic 2022-12-16 20:07:22 +08:00
F001
d2531352aa
feat(napi): add "run_script" for "Env" (#1393)
* add "run_script" for "Env"

* Apply suggestions from code review

use `AsRef<str>` instead of `&str`

Co-authored-by: LongYinan <lynweklm@gmail.com>

* use `AsRef<str>` instead of `&str`

Co-authored-by: LongYinan <lynweklm@gmail.com>
2022-12-16 15:56:36 +08:00
LongYinan
e88fbcc404
chore(napi): remove more thread_local usage 2022-12-16 15:54:29 +08:00
LongYinan
5bd6c78b5a
chore(napi): expose tokio runtime 2022-12-16 14:35:30 +08:00
LongYinan
c01bcecb2b
chore(napi): reduce the complex about destroying tokio runtime 2022-12-16 14:32:32 +08:00
Patrick Pilch
486ce35c82
fix(napi): napi_create_async_work incorrect argument (napi-rs#1392) (#1396)
The third argument to `napi_create_async_work` (async_resource_name)
should be a `napi_value` that corresponds to a null-terminated utf-8
string.

This resolves errors running Next.js with GraalVM.

oracle/graal#5582
oracle/graal#5581
2022-12-16 13:59:15 +08:00