Commit graph

448 commits

Author SHA1 Message Date
LongYinan
19a13361d4
fix(cli): cleanup js binding template (#1984) 2024-02-28 15:51:16 +08:00
LongYinan
9abcb484ba
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.42
2024-02-28 15:07:23 +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
17f509f96e
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.41
2024-02-22 19:01:28 +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
5232d9e836
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.40
2024-02-19 19:10:51 +08:00
LongYinan
ad35076d07
fix(cli,build): build params (#1960) 2024-02-19 18:09:34 +08:00
LongYinan
b461132f94
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.39
2024-02-18 22:04:46 +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
7d28d7aae4
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.38
2024-02-13 01:12:40 +08:00
LongYinan
bec6bd67be
feat(cli): respect WASI_SDK_PATH env (#1946) 2024-02-13 01:12:08 +08:00
LongYinan
f60c465950
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.37
2024-02-12 16:11:22 +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
199893a309
chore(cli): upgrade peer dependencies (#1937) 2024-02-01 15:00:15 +08:00
LongYinan
0007e3aaf6
chore: upgrade all dependencies (#1933) 2024-02-01 12:14:56 +08:00
renovate[bot]
949883bc99
chore(deps): update dependency esbuild to ^0.20.0 (#1925)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-27 22:45:01 +00:00
LongYinan
5b9f86fea0
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.36
 - @napi-rs/wasm-runtime@0.1.1
2024-01-17 00:59:12 +08:00
LongYinan
44dc39f1f0
fix(cli,wasm-runtime): dependencies (#1905) 2024-01-17 00:57:29 +08:00
LongYinan
a439e2c3e6
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.35
 - @napi-rs/wasm-runtime@0.1.0
2024-01-16 23:58:23 +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
c2b6c18031
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.34
2024-01-10 13:29:47 +08:00
LongYinan
fc3d5cbcff
fix(cli): add browser entry (#1899) 2024-01-10 11:18:13 +08:00
LongYinan
0a70d6ffd7
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.33
2024-01-09 01:06:03 +08:00
LongYinan
1676930728
fix(cli): artifacts wasi worker name (#1895) 2024-01-09 01:05:19 +08:00
LongYinan
2de358aaa6
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.32
2024-01-09 00:36:01 +08:00
LongYinan
9b8dab6b63
fix(cli): missing files in created wasi package (#1894) 2024-01-09 00:34:59 +08:00
LongYinan
ffbaba3a9b
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.31
2024-01-08 21:05:45 +08:00
LongYinan
7d3b53d41d
feat(cli): support generate browser compatible codes (#1891) 2024-01-08 21:02:46 +08:00
renovate[bot]
ecde07f8c1
fix(deps): update dependency @tybys/wasm-util to v0.8.1 (#1892)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-07 19:17:45 +00:00
LongYinan
1392954c32
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.30
2024-01-03 19:31:17 +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
8e3e688c28
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.29
2024-01-02 14:52:25 +08:00
LongYinan
c73cb31c11
fix(cli): missing wasm files in artifacts command (#1884) 2024-01-02 12:33:13 +08:00
LongYinan
f47cc72749
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.28
2023-12-31 22:05:12 +08:00
LongYinan
f29801686b
fix(cli): copy binding files into wasi packages (#1881) 2023-12-31 15:51:46 +08:00
LongYinan
f2972c743f
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.27
2023-12-30 00:47:09 +08:00
renovate[bot]
e175e6fbd6
fix(deps): update dependency emnapi to v0.45.0 (#1879)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-30 00:45:50 +08:00
LongYinan
dc79bb86d0
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.26
 - @napi-rs/triples@2.0.0-alpha.7
2023-12-30 00:44:20 +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
958ba74aff
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.25
2023-12-28 12:38:00 +08:00
LongYinan
72afe03aa4
fix(cli): compatible with napi artifacts -d option (#1872) 2023-12-28 12:16:07 +08:00
LongYinan
b411b87872
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.24
2023-12-26 23:18:50 +08:00
LongYinan
c42f00ff43
feat(cli): support wasi target test & release workflow (#1867) 2023-12-26 23:16:42 +08:00