302 Commits

Author SHA1 Message Date
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
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