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
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