Commit graph

246 commits

Author SHA1 Message Date
LongYinan
3e44ae3c16
fix(cli): non-fs polyfilled browser worker binding (#2067) 2024-04-23 14:26:27 +08:00
LongYinan
46cbcf3ff1
feat(cli): allow sync fs operation between workers/mainThread (#2064)
* feat(cli): allow sync fs operation between workers/mainThread

* allow sync fs operation between workers/mainThread (#2065)

* Fix

* Update fixture

* flaky test

* Fix cross compile target

* Update zig

* macos-cross test was filtered

---------

Co-authored-by: Toyo Li <lifenglin314@outlook.com>
2024-04-23 12:14:06 +08:00
LongYinan
12aec3c135
fix(cli): pass fs to browser worker binding (#2062) 2024-04-22 14:44:37 +08:00
inokawa
0adc36ce1c
feat(cli): support generation of literal union from string enum (#2054)
* feat(cli): support generation of literal union from enum

* Remove const

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-04-22 14:28:04 +08:00
LongYinan
10602fb76f
fix(cli): new project issue (#2058) 2024-04-19 16:43:29 +08:00
LongYinan
4ccbb61179
feat(cli): improve the browser binding (#2056) 2024-04-19 16:12:30 +08:00
LongYinan
7e33eb729f
feat(cli): optimize wasm output binary (#2049) 2024-04-17 20:13:02 +08:00
LongYinan
b3dd94649a
feat(cli): allow to define dtsHeader in napi config (#2045) 2024-04-16 17:40:41 +08:00
LongYinan
a2d78fadf9
fix(cli): wasi targets linker envs (#2044) 2024-04-16 16:43:44 +08:00
LongYinan
cc937e1dba
feat(cli): allow control the wasm Memory options via napi config (#2038) 2024-04-15 23:19:02 +08:00
LongYinan
16f0d49284
chore: increase wasi memory limits (#2035) 2024-04-13 18:35:08 +08:00
LongYinan
5570d8b4f7
chore: use oxlint (#2032) 2024-04-10 14:26:34 +08:00
LongYinan
4c7d06fc72
feat(cli): support wasm32-wasipxx targets (#2030)
* chore(examples): update wasi binding template

* wasm32-wasip1
2024-04-10 09:08:57 +08:00
翠 / green
2e0f983ccf
feat(target): add support for s390x-unknown-linux-gnu (#2028)
* feat(target): add support for s390x-unknown-linux-gnu

* chore: rerun CI
2024-04-09 14:16:09 +08:00
翠 / green
0fa755d30a
feat(target): add support for powerpc64le-unknown-linux-gnu (#2023)
* refactor: remove unused ci.ts

* feat(target): add support for powerpc64le-unknown-linux-gnu
2024-04-09 11:27:48 +08:00
翠 / green
7ae562352a
feat(cli): add support for armv7-unknown-linux-muslebihf (#2019) 2024-04-08 21:04:57 +08:00
LongYinan
77399ff130
fix(cli): wasi Node.js worker template (#2015) 2024-03-28 10:08:17 +08:00
LongYinan
19a13361d4
fix(cli): cleanup js binding template (#1984) 2024-02-28 15:51:16 +08:00
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
da99081ccf
fix(cli): allow more platform & arch fallback to wasm (#1969) 2024-02-22 16:42:33 +08:00
LongYinan
0306e3045a
fix(cli): fallback to wasm32 if platform is not support (#1967) 2024-02-21 23:48:29 +08:00
LongYinan
ad35076d07
fix(cli,build): build params (#1960) 2024-02-19 18:09:34 +08:00
LongYinan
08b1f689bf
feat(cli,build): support setjmp.h (#1958) 2024-02-18 21:45:19 +08:00
LongYinan
09efd416e5
fix(cli): set cxxflags while WASI_SDK_PATH exists (#1955) 2024-02-17 14:42:30 +08:00
Andrew McClenaghan
6aae4bac0f
fix(cli): ensure cwd and outputDir are used for finding files (#1949) 2024-02-16 20:37:19 +08:00
LongYinan
bec6bd67be
feat(cli): respect WASI_SDK_PATH env (#1946) 2024-02-13 01:12:08 +08:00
LongYinan
ff2ccc9f37
fix(cli): log more wasi load errors 2024-02-08 13:24:12 +00:00
LongYinan
0205fd976e
fix(cli): setup cxx env while using napi-cross (#1942) 2024-02-08 21:23:40 +08:00
LongYinan
44dc39f1f0
fix(cli,wasm-runtime): dependencies (#1905) 2024-01-17 00:57:29 +08:00
LongYinan
120accd965
feat: add wasm runtime package (#1904) 2024-01-16 23:28:40 +08:00
Milton Moura
ddeaf30f14
feat(cli): Add support for s390x linux arch in js bindings template (#1901)
Signed-off-by: Milton Moura <miltonmoura@gmail.com>
2024-01-16 11:18:05 +08:00
LongYinan
fc3d5cbcff
fix(cli): add browser entry (#1899) 2024-01-10 11:18:13 +08:00
LongYinan
1676930728
fix(cli): artifacts wasi worker name (#1895) 2024-01-09 01:05:19 +08:00
LongYinan
9b8dab6b63
fix(cli): missing files in created wasi package (#1894) 2024-01-09 00:34:59 +08:00
LongYinan
7d3b53d41d
feat(cli): support generate browser compatible codes (#1891) 2024-01-08 21:02:46 +08:00
LongYinan
3889d8ad17
fix(cli): upload to github releases issue (#1888) 2024-01-03 19:29:33 +08:00
LongYinan
57463554e9
fix(cli): wasi fallback package load logic (#1887) 2024-01-03 18:53:09 +08:00
LongYinan
c73cb31c11
fix(cli): missing wasm files in artifacts command (#1884) 2024-01-02 12:33:13 +08:00
LongYinan
f29801686b
fix(cli): copy binding files into wasi packages (#1881) 2023-12-31 15:51:46 +08:00
LongYinan
b0ba466f95
fix(cli): also load wasm file from packages (#1876) 2023-12-30 00:43:38 +08:00
LongYinan
67743b1046
fix(cli): exclude node_modules in artifacts command 2023-12-29 15:09:13 +00:00
LongYinan
72afe03aa4
fix(cli): compatible with napi artifacts -d option (#1872) 2023-12-28 12:16:07 +08:00
LongYinan
c42f00ff43
feat(cli): support wasi target test & release workflow (#1867) 2023-12-26 23:16:42 +08:00
LongYinan
edba0cbd6c
chore(cli): root directory access permissions (#1864) 2023-12-16 19:32:16 +08:00
LongYinan
c3eeba1e34
chore(cli): change warning message to yellow 2023-12-16 16:55:11 +08:00
LongYinan
0faf752c02
fix(cli): prepublish tagstyle flag (#1863) 2023-12-16 16:46:41 +08:00
LongYinan
2a823996e5
fix(cli): prepublish alias 2023-12-16 15:36:17 +08:00
LongYinan
2b7a6348f6
fix(cli): make prepublish as pre-publish alias (#1861) 2023-12-16 14:14:59 +08:00
LongYinan
f825972b75
fix(cli): prepublish command (#1860) 2023-12-15 22:36:16 +08:00
LongYinan
5cab2bc57b
feat(cli): support read config from the given config file (#1859) 2023-12-15 21:54:33 +08:00