Caleb Everett
95dd6ef485
refactor(cli): refactor js-binding to support easier bundling. ( #1957 )
...
* Refactor js-binding to support bundling single-package artifacts
The existsSync check breaks the bundlers I've tested (esbuild, webpack,
ncc), so you cannot bundle napi-rs packages that have all binarys in a
single package.
I've tested this change with both single package and multi package
libraries.
* Update snapshots
* Update CI
* Fix electron test
---------
Co-authored-by: Caleb ツ Everett <calebev@amazon.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-02-26 15:46:07 +08:00
LongYinan
440bea29f8
test(napi): decrease the worker sizes on Linux x64 musl platform
2023-11-20 23:07:43 +08:00
LongYinan
36581336c6
feat(napi): pass the rest of async tests ( #1792 )
...
Pass the rest of async tests, including await the JavaScript Promise in the Rust side, and the worker_threads tests.
2023-11-07 01:46:43 +08:00
LongYinan
0dc1ef738b
fix(napi): asan caught memory safety issue
2023-11-04 15:26:07 +08:00
LongYinan
13d0ce075e
feat: integrate with emnapi ( #1669 )
...
* Integrate with emnapi
* resolve conflict
* ignore wasm
* generate wasi file
* Add wasi test to workflow
* Fix wasi template
* emnapi new initialize api
* Finish test
* Purne tsconfig
* Generate wasi worker
* Fix electron test
* Finalize check
* Noop adjust_external_memory
* Apply cr suggestions
2023-11-02 12:57:11 +08:00
LongYinan
2e03db1fec
test: refactor the example tests to esm, add bun:test => ava polyfill ( #1730 )
2023-09-20 01:18:01 -07:00
LongYinan
53cf696cf8
ci: reduce the complex of CI config ( #1628 )
2023-06-17 17:03:57 +08:00
LongYinan
d9c191d270
test(napi): skip worker tests in slow Docker env ( #1569 )
2023-04-16 23:59:15 +08:00
LongYinan
d14fdca242
fix(napi): thread safe issue while creating class instance ( #1561 )
2023-04-15 15:37:01 +08:00
forehal
a781a4f27e
feat(cli): brand new cli tool with both cli and programmatical usage ( #1492 )
...
BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
2023-04-06 11:04:53 +08:00