316 Commits

Author SHA1 Message Date
LongYinan
2700b04782
fix(cli): ohos binding 2025-07-13 00:04:52 +08:00
LongYinan
16b5a37951
fix(cli): ohos js binding logic (#2775) 2025-07-12 23:13:23 +08:00
LongYinan
0a8a499fa6
fix(cli): binding format (#2774) 2025-07-12 17:55:04 +08:00
LongYinan
69d28061ff
feat(cli): support ohos (#2773) 2025-07-12 17:29:15 +08:00
LongYinan
3bb592d47f
fix(cli): omit exports fields in publishConfig (#2772) 2025-07-12 11:39:38 +08:00
LongYinan
948e0762e9
feat(cli): allow skip optionalDependencies publish (#2771) 2025-07-12 09:54:17 +08:00
JounQin
93b9aa267c
fix(cli): check kHandle instead (#2768) 2025-07-07 17:24:52 +08:00
CPunisher
5078d548be
feat(wasm-runtime): never refer handles of workers (#2763) 2025-07-04 21:46:52 +08:00
LongYinan
3985bc68cf
fix(cli): set TARGET_CC rather than CC (#2764) 2025-07-04 21:45:42 +08:00
LongYinan
0119f09237
feat(napi): support untyped TypedArray slice (#2762) 2025-07-03 16:50:35 +08:00
LongYinan
27d0d923c6
fix(cli): throw error if targets are duplicated (#2743) 2025-06-24 23:48:27 +08:00
LongYinan
0d1a4c4a94
fix(cli): handle CI.yaml targets omit (#2730) 2025-06-24 13:21:01 +08:00
LongYinan
1481031f37
fix(cli): handle the wasi names in new command (#2725) 2025-06-23 21:23:42 +08:00
LongYinan
de954666e0
feat(cli): new project from github project template (#2723) 2025-06-23 16:21:48 +08:00
Kevin Deng
e7af6608fc
fix(cli): wasm url in binding files (#2710) 2025-06-11 12:03:32 -07:00
LongYinan
e9835c4e75
chore(cli): link npm cli issues in native binding load errors (#2707)
* chore(cli): link npm cli issues in native binding load errors

* run fmt
2025-06-11 12:02:19 -07:00
LongYinan
54935e34fa
fix(napi-derive): panic while creating type definition when Rust comment contains escape syntax (#2701) 2025-06-08 18:25:09 +08:00
LongYinan
21e5580f28
fix(cli): remove require in utils (#2693) 2025-06-05 11:08:05 +08:00
LongYinan
fdbc070d6a
fix(cli): uses_default_features should also treat as enabled typeDef (#2691) 2025-06-04 18:27:03 +08:00
liuyi
c9ff0ec464
feat(cli): detect type-def feature in cli (#2690) 2025-06-04 15:19:28 +08:00
liuyi
5a17b88636
fix: revalidate shared libs if type def not found (#2689) 2025-06-04 15:05:24 +08:00
LongYinan
a79f9846b6
fix(cli): dtsHeader option merge orders 2025-06-03 19:59:52 +08:00
LongYinan
da42542f0a
fix(cli): dtsHeader content 2025-06-03 19:50:31 +08:00
liuyi
d874a46647
fix: type generation for shared libs (#2684) 2025-06-03 19:19:29 +08:00
LongYinan
28829d2102
fix(cli): parse deps cargo metadata and find napi crates (#2667) 2025-05-28 23:25:16 +08:00
LongYinan
446a65489c
fix(cli): do not create wasi binding in non-wasi packages (#2654) 2025-05-20 11:41:40 +08:00
LongYinan
21982a1508
feat(napi-derive): auto invalid type gen (#2638) 2025-05-16 22:30:27 +08:00
LongYinan
5d360e89fc
chore(cli): remove outdated WASI_REGISTER_TMP_PATH (#2633) 2025-05-14 15:24:33 +08:00
LongYinan
ce990542b9
fix(napi): module_exports binding (#2632) 2025-05-13 19:54:25 +08:00
LongYinan
8cd752db86
feat(napi): support #[napi(module_exports)] (#2631) 2025-05-13 17:47:52 +08:00
Iñaki Arango
7010f6059b
fix(cli): path escaping issue in metadata parser (#2605)
* fix: Fix path escaping issue in metadata parser

* fix: changed import from execSync to spawnSync
2025-05-06 11:32:20 +08:00
LongYinan
d046ea6cad
chore(cli): sort imports (#2590) 2025-05-02 23:15:49 +08:00
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