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
阿豪
7f82c95525
fix(cli): support help command ( #1355 )
2022-11-02 10:56:34 +08:00
LongYinan
b5cfa93789
chore: skip worker_thread test on Linux aarch64 ( #1354 )
2022-10-31 21:13:11 +08:00
LongYinan
c328d8ece5
ci: update docker image monthly
2022-10-24 12:08:58 +08:00
LongYinan
3dde26bcef
chore(napi): including type message in error message ( #1350 )
2022-10-24 00:16:30 +08:00
LongYinan
1037e6f14d
chore: upgrade dependencies ( #1349 )
2022-10-23 23:03:18 +08:00
Wodann
77060adb3d
fix(napi): BigInt::get_u64 lossless check ( #1348 )
2022-10-22 11:16:08 +08:00
LongYinan
a12bdc4359
Release independent packages
...
- napi@2.10.0
2022-10-04 17:17:13 +08:00
LongYinan
a353402a69
chore: publish
...
- @napi-rs/cli@2.12.0
2022-10-04 17:16:29 +08:00
Devon Govett
5541d650a9
feat(napi): add threadsafe deferred values ( #1306 )
2022-10-03 13:00:48 +08:00
LongYinan
5561502fd5
Merge pull request #1332 from napi-rs/array-buffer-send
...
fix(napi): make Buffer/ArrayBuffer truely Send/Sync safe
2022-10-03 12:55:55 +08:00
LongYinan
a5a04a4e54
fix(napi): make Buffer/ArrayBuffer truely Send/Sync safe
2022-10-03 11:34:46 +08:00
LongYinan
a0522986b3
Merge pull request #1331 from napi-rs/pass-in-buffer-leak
...
fix(napi): should also delete the reference while dropping the Buffer
2022-10-02 12:50:33 +08:00
LongYinan
6ff69a1dab
test(memory-testing): adjust buffer tests
2022-10-02 12:28:56 +08:00
LongYinan
c76be2f1e0
ci: do not throw if docker container stop failed
2022-10-02 11:14:52 +08:00
LongYinan
d3fc689269
ci: remove clear cargo cache in MSRV job
2022-10-02 10:31:36 +08:00
LongYinan
47de6301ee
fix(napi): should also delete the reference while dropping the Buffer
2022-10-02 10:14:25 +08:00