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
LongYinan
a9f9dbb232
chore(napi): reduce Mutex usage while loading addon
2022-12-16 13:41:16 +08:00
LongYinan
6ad1740dac
chore: publish
...
- @napi-rs/cli@2.13.3
2022-12-15 22:00:46 +08:00
LongYinan
f2c10affee
fix(cli): set cmake toolchain for android cross build ( #1394 )
2022-12-15 21:59:13 +08:00
Javier Viola
36a897e27a
fix(cli): template to works with nix ( #1391 )
2022-12-15 21:18:14 +08:00
LongYinan
5e9a9ff0b8
chore: publish
...
- @napi-rs/cli@2.13.2
2022-12-09 19:18:26 +08:00
LongYinan
bd1d3fe0a6
fix(cli): ci template upgrade
2022-12-09 19:17:10 +08:00
LongYinan
f6ac154378
Release independent packages
...
napi-derive@2.9.3
2022-12-09 18:59:54 +08:00
LongYinan
05f3c4c2ed
chore: publish
...
- @napi-rs/cli@2.13.1
2022-12-09 18:57:38 +08:00
LongYinan
2abc94681e
fix(cli): zig cross armv7 ( #1384 )
2022-12-09 18:56:50 +08:00
Simon Vandel Sillesen
00b09bca6e
fix(napi): better error message for #[napi(catch_unwind)]
( #1383 )
...
Before, the JS error would only have `Any { .. }`
2022-12-09 18:37:10 +08:00
LongYinan
e1864d68ff
ci: upgrade toolchain ( #1382 )
2022-12-09 17:29:03 +08:00
LongYinan
25fb299ac6
Release independent packages
...
napi@2.10.2
napi-derive@2.9.2
2022-12-09 00:41:03 +08:00
nihohit
1cf32631bf
fix(napi): typed arrays ref shouldn't use offset. ( #1376 )
...
Notice from the n-api docs that the data returned from
`napi_get_typedarray_info` is already adjusted by the byte offset.
https://nodejs.org/api/n-api.html#napi_get_typedarray_info
This means that when `as_ref`/`as_mut` apply the byte offset, the
offset is in practice applied twice.
This wasn't caught in tests because no test tried to modify a typed
array with a byte offset, and the test didn't us the typed array
structs, only `JsTypedArray`. If you want, I can modify the rest of the
functions in examples/napi-compt-mode/src/arraybuffers.rs
and the matching tests, to test all typed arrays.
IMO the `byte_offset` field can be removed entirely from the struct,
but I wanted to submit a minimal PR.
2022-11-30 20:54:13 +08:00
LongYinan
573f67b90f
chore(napi-derive): make_ref tweaks ( #1371 )
2022-11-22 23:17:44 +08:00
Jacob Kiesel
618d0f8046
fix(napi-derive): unsound behavior while using reference and async together
2022-11-22 00:17:19 +08:00
LongYinan
91890456da
build: focal->jammy, llvm-14->llvm-15 ( #1369 )
2022-11-21 14:44:53 +08:00
LongYinan
9f025ca980
chore update lockfile
2022-11-20 23:14:18 +08:00
LongYinan
f058614ee3
chore: publish
...
- @napi-rs/cli@2.13.0
2022-11-20 23:01:34 +08:00
LongYinan
329c81f742
chore: upgrade yarn version
2022-11-20 23:00:28 +08:00
LongYinan
28be7e256b
chore(cli): upgrade Node.js dependencies ( #1368 )
2022-11-20 22:59:35 +08:00
LongYinan
696c2ddcd8
feat(cli): auto choose the tooling for cross compiling ( #1367 )
2022-11-20 22:24:02 +08:00
Simon Laux
035def0600
fix(napi): return the join handle when spawning a tokio task. ( #1351 )
...
we need this to be able to safely drop an struct,
that makes use of an async task.
the drop function needs to be able to call `.abort()`
on the join handle to avoid memory corruption and undefined bahviour.
2022-11-15 11:50:25 +08:00
Simon Laux
b0c248ad7e
chore(napi): expose tokio runtime's block_on function ( #1352 )
2022-11-15 11:49:46 +08:00
Horu
d48d106588
ci: remove unused ci condition ( #1363 )
2022-11-14 12:11:15 +08:00
LongYinan
9816a77729
Release independent packages
...
napi@2.10.1
2022-11-12 13:39:04 +08:00
LongYinan
62fddaca9f
chore: publish
...
- @napi-rs/cli@2.12.1
2022-11-12 13:34:33 +08:00
LongYinan
ec2c932189
Merge pull request #1364 from SASUKE40/fix/cli-version
2022-11-11 22:09:01 +08:00
Edward Elric
caeef4a675
fix(cli): incorrent version without npm folder
2022-11-10 23:44:39 +08:00
LongYinan
69f043c8eb
Merge pull request #1360 from napi-rs/zig-0.10
...
ci: test for zig 0.10
2022-11-06 23:53:56 +08:00
LongYinan
32cf02e633
fix(cli): compatible with zig 0.10.0
2022-11-05 00:11:23 +08:00
LongYinan
0731e00217
ci: test for zig 0.10
2022-11-04 23:39:24 +08:00