284 Commits

Author SHA1 Message Date
CPunisher
e12d091847
fix(cli): replace .wasm extension of wasm artifact (#2556)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-04-16 15:00:05 +08:00
LongYinan
be86a44aca
fix(cli): trim is not a function (#2541) 2025-04-01 23:03:48 +08:00
LongYinan
59b31b389f
chore(cli): excludeNetwork on getting report (#2531)
* chore(cli): excludeNetwork on getting report

* Update cli/src/api/templates/js-binding.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* format

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-03-29 23:26:35 +08:00
Hiroshi Ogawa
9873fb39ae
feat(cli): add wasm.browser.asyncInit for large wasm file (#2514) 2025-03-17 07:55:15 -07:00
LongYinan
134c1a6778
fix(cli): CXX path for s390x (#2509) 2025-03-14 13:38:50 +08:00
LongYinan
29e45086e8
fix(cli): combine existed CFLAGS and CXXFLAGS in napi cross (#2493) 2025-03-03 12:22:49 +08:00
LongYinan
ee75b119cd
refactor!(napi): link crt1-reactor.o as poor man's wasi-exec-model=reactor (#2480) 2025-02-25 21:45:38 +08:00
Bedis Nbiba
46e9b97e12
feat(cli): allow specifing native library path via env variable (#2471)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-02-20 14:35:33 +08:00
lghuahua
514c168d25
fix(cli): set the default value of dtsCache to true (#2420) 2025-02-11 22:30:45 +08:00
LongYinan
3503f0c854
feat(cli): add cross-toolchain path to PATH (#2448) 2025-01-29 19:59:03 +08:00
LongYinan
e2f70bf66d
fix(cli): watch trigger (#2446) 2025-01-26 17:04:29 +08:00
LongYinan
1ec9082160
fix(cli): add -gcc-toolchain flag to cross-compile (#2445) 2025-01-26 17:01:28 +08:00
LongYinan
978a00069b
fix(cli): s390x cross toolchain path (#2432) 2025-01-19 22:21:11 +08:00
LongYinan
a72c49b92e
feat(cli): add --no-dts-cache option to build command (#2400) 2024-12-18 23:49:22 +08:00
LongYinan
8fffa49282
fix(napi): resuse threads worker on Node.js (#2399) 2024-12-18 23:48:30 +08:00
LongYinan
40ce1ffb7e
fix(cli): wrong condintion in setFeatures (#2396) 2024-12-12 10:38:08 +08:00
Cayman
960d07e5da
feat: support ESM binding (#2284)
* feat: support ESM binding

* chore: consistent use of semicolons

* chore: apply suggestion
2024-10-15 15:18:55 +08:00
Jacky Zhao
7ef54f413b
feat(cli)): createRequire for SEA support (#2297)
* create require for SEA support

* Update cli/src/api/templates/js-binding.ts
2024-10-11 15:22:45 +08:00
LongYinan
c12e56f3e8
chore(cli): add strip in generated Cargo.toml 2024-10-03 00:00:11 +02:00
LongYinan
20b9de3ec7
fix(cli): extra line break in the tail of dts file (#2255) 2024-09-15 11:44:29 +08:00
LongYinan
1427ddce64
chore(cli): respect constEnum in napi config (#2254) 2024-09-15 11:41:28 +08:00
LongYinan
9c3643f72b
chore(cli): update ci template (#2256) 2024-09-15 11:39:33 +08:00
Don Isaac
12bb1da28c
chore: prepare for no-unused-vars (#2233) 2024-08-26 10:04:03 +08:00
CPunisher
c459f0acf6
feat: support structured enum with discriminated unions (#2222)
* Structured enum

* Type indent

* Add test example

* Remove trailing commas

* discriminant

* discriminant conflict

* more test

* typo
2024-08-22 14:59:50 +08:00
Mark Kovalenko
b5a5b032f6
fix(ci): bump FreeBSD version to 13.3 (#2220) 2024-08-18 22:02:06 +08:00
renovate[bot]
4abda0ed37
chore(deps): lock file maintenance (#2202)
* chore(deps): lock file maintenance

* Switch to @inquirer/prompts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-08-10 16:49:26 +08:00
LongYinan
0adb1a4992
chore(cli): add empty line in created pacakge.json file (#2194) 2024-07-23 13:36:42 +08:00
LongYinan
3284f881a6
fix(cli): should not log errors if everything fine 2024-07-21 14:01:16 +08:00
LongYinan
6acd3b94fb
chore: add fail reason to assert (#2192) 2024-07-18 14:19:50 +08:00
LongYinan
13c18388f5
fix(cli): worker files format (#2186) 2024-07-14 22:23:34 +08:00
LongYinan
5976f04e54
fix(cli): wasm binding files destination (#2182) 2024-07-11 17:31:19 +08:00
renovate[bot]
9800ea7350
fix(deps): update dependency inquirer to v10 (#2173)
* fix(deps): update dependency inquirer to v10

* Fix for api changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-07-10 23:49:19 +08:00
LongYinan
731dced1bb
fix(cli): update wasi js binding files on any builds (#2179) 2024-07-09 14:01:23 +08:00
Ranger
0749ef1832
fix(cli): rename env CC to TARGET_CC avoid proc-macro build failed (#2137) 2024-06-11 12:49:19 +08:00
magic-akari
734d74bd02
fix(typegen): add missing declare keyword (#2117) 2024-05-19 16:53:23 +08:00
naskya
335d7aee11
docs(cli): fix typo (#2108) 2024-05-13 09:41:52 +08:00
LongYinan
c9c3c0ed05
fix(cli): prevent the wasm optimization crash the build (#2107) 2024-05-12 22:21:08 +08:00
Huakun Shen
ebc1e2ca18
fix(napi): set explicit target flag for x86_64 CI template (#2077) 2024-05-06 13:20:21 +08:00
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