Commit Graph

566 Commits

Author SHA1 Message Date
SWC Bot
787d6154c1 chore: Publish 1.6.9-nightly-20240706.5 with swc_core v0.96.6 2024-07-06 03:55:07 +00:00
SWC Bot
e4211ba9b1 chore: Publish 1.6.9-nightly-20240706.4 with swc_core v0.96.6 2024-07-06 02:02:32 +00:00
Donny/강동윤
8b4d4676be
chore(ci): Tag releases from new publish pipeline (#9156) 2024-07-06 10:35:17 +09:00
강동윤 (Donny)
2052b4c857 chore: Publish 1.6.8-nightly-20240706.1 with swc_core v0.96.6 2024-07-06 08:30:53 +09:00
강동윤 (Donny)
1a71601fc2 chore: Publish 1.6.8-nightly-20240705.2 with swc_core v0.96.5
Some checks are pending
CI / Done (push) Blocked by required conditions
Benchmark / List crates (push) Waiting to run
Benchmark / Bench ${{ matrix.crate }} (push) Blocked by required conditions
Benchmark / Process result (push) Blocked by required conditions
Bot / Start (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-apple-darwin cp ../../bindings/target/x86_64-apple-darwin/release/swc . chmod +x ./swc… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:export CARGO_PROFILE_RELEASE_LTO=false yarn build --target x86_64-pc-windows-msvc cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-pc-w… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:export DISABLE_PLUGIN_E2E_TESTS=true export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=256 export CARGO_PROFILE_RELEASE_LTO=false cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --relea… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:export DISABLE_PLUGIN_E2E_TESTS=true export CARGO_PROFILE_RELEASE_LTO=false cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --target i686-pc-windows-msvc cp ../../bindi… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:export DISABLE_PLUGIN_E2E_TESTS=true yarn napi build --bin swc --release --target armv7-unknown-linux-gnueabihf --manifest-path ../../bindings/swc_cli/Cargo.toml -x --target-dir ../release -o … (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:export JEMALLOC_SYS_WITH_LG_PAGE=16 && rustup toolchain install $(cat ../../rust-toolchain) && rustup target add aarch64-unknown-linux-musl && RUSTFLAGS='-C target-feature=+crt-static -C link-… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:set -e && export CARGO_PROFILE_RELEASE_LTO=false && RUSTFLAGS='-C target-feature=+sse2' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_6… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:set -e && export JEMALLOC_SYS_WITH_LG_PAGE=16 && rustup target add aarch64-unknown-linux-gnu && RUSTFLAGS='' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features … (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:set -e && unset CC_x86_64_unknown_linux_gnu && unset CC && RUSTFLAGS='-C target-feature=+sse2' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --targe… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*; export CC=$(xcrun -f clang); export CXX=$(xcrun -f clang++); SYSROOT=$(xcrun --sdk macosx --show-sdk-path); export CFLAGS="-isysroot $SY… (push) Waiting to run
Publish (core) / Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} (18, map[host:macos-latest target:x86_64-apple-darwin]) (push) Blocked by required conditions
Publish (core) / Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} (18, map[host:windows-latest target:x86_64-pc-windows-msvc]) (push) Blocked by required conditions
Publish (core) / Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} (20, map[host:macos-latest target:x86_64-apple-darwin]) (push) Blocked by required conditions
Publish (core) / Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} (20, map[host:windows-latest target:x86_64-pc-windows-msvc]) (push) Blocked by required conditions
Publish (core) / Test bindings on Linux-x64-gnu - node@${{ matrix.node }} (18) (push) Blocked by required conditions
Publish (core) / Test bindings on Linux-x64-gnu - node@${{ matrix.node }} (20) (push) Blocked by required conditions
Publish (core) / Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }} (18) (push) Blocked by required conditions
Publish (core) / Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }} (20) (push) Blocked by required conditions
Publish (core) / Test bindings on aarch64-unknown-linux-musl - node@lts (push) Blocked by required conditions
Publish (core) / Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }} (18) (push) Blocked by required conditions
Publish (core) / Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }} (20) (push) Blocked by required conditions
Publish (core) / npm (push) Blocked by required conditions
Publish (core) / Build - wasm (${{ matrix.settings.npm }}) for node.js (map[crate:binding_core_wasm npm:@swc\/wasm target:nodejs]) (push) Waiting to run
Publish (core) / Build - wasm (${{ matrix.settings.npm }}) for node.js (map[crate:binding_core_wasm npm:@swc\/wasm-web target:web]) (push) Waiting to run
Publish (core) / Build - wasm (${{ matrix.settings.npm }}) for node.js (map[crate:binding_typescript_wasm npm:@swc\/wasm-typescript target:nodejs]) (push) Waiting to run
2024-07-05 21:53:11 +09:00
강동윤 (Donny)
e2ae26bbdd chore: Publish 1.6.8-nightly-20240705.1 with swc_core v0.96.5 2024-07-05 21:47:37 +09:00
Donny/강동윤
9fca4ab555
feat(es/typescript): Improve fast TS stripper (#9152)
**Related issue:**

- https://github.com/swc-project/swc/pull/9143#pullrequestreview-2160591522
2024-07-05 21:34:03 +09:00
Donny/강동윤
b129343c94
feat(es/typescript): Add swc_fast_ts_strip (#9143)
**Description:**

This PR also adds a CI process for each Wasm binding.

---------

Co-authored-by: magic-akari <akari.ccino@gmail.com>
2024-07-05 21:07:24 +09:00
강동윤 (Donny)
3d80173acd chore: Publish 1.6.8-nightly-20240704.3 with swc_core v0.96.3 2024-07-04 18:40:17 +09:00
강동윤 (Donny)
f04365a4cf chore: Publish 1.6.8-nightly-20240704.2 with swc_core v0.96.3 2024-07-04 18:26:07 +09:00
Donny/강동윤
307b6f27a6
refactor(bindings/ts): Inline Wasm file into wasm.js (#9139)
**Description:**

Requested by https://github.com/marco-ippolito/node/pull/2/files#r1665267733
2024-07-04 18:23:55 +09:00
Donny/강동윤
a08bb46ebd
feat(bindings/ts): Add transform/strip-only mode (#9138)
**Description:**

This PR adds `strip-only`/`transform` mode to `@swc/wasm-typescript`.

 - Both mode errors on decorator usages.
 - In `strip-only` mode, `enum` and TypeScript parameter properties are treated as an invalid syntax.
 - In `transform` mode, those are transpiled.
2024-07-04 17:51:01 +09:00
강동윤 (Donny)
178cbdd325 chore: Publish 1.6.8-nightly-20240704.1 with swc_core v0.96.2 2024-07-04 12:43:48 +09:00
강동윤 (Donny)
c12c8d93f3 chore: Publish 1.6.7 with swc_core v0.96.2 2024-07-03 23:10:46 +09:00
강동윤 (Donny)
917cf830fe chore: Publish 1.6.7-nightly-20240703.4 with swc_core v0.96.2 2024-07-03 15:57:49 +09:00
Donny/강동윤
c6d6db3661
test(bindings/ts): Test Wasm binding (#9128)
**Description:**

Now, the build pipeline is running, so I'll look into testing the Wasm binary.
2024-07-03 15:55:24 +09:00
강동윤 (Donny)
e2527fb969 chore: Publish 1.6.7-nightly-20240703.3 with swc_core v0.96.2 2024-07-03 15:39:16 +09:00
Donny/강동윤
dfee5f838b
refactor(es/typescript): Extract type annotation proposal out (#9127)
**Description:**

The Node.js team wants a Wasm package that only implements type annotation proposals. So, we need to refactor our TypeScript transform to allow it.


**Related issue:**

 - https://github.com/nodejs/loaders/issues/208#issuecomment-2205063110
2024-07-03 15:10:10 +09:00
강동윤 (Donny)
cffc68d9df chore: Publish 1.6.7-nightly-20240703.2 with swc_core v0.96.1 2024-07-03 10:40:52 +09:00
Donny/강동윤
f409bc09d5
build(bindings): Fix build of typescript binding (#9125) 2024-07-03 10:40:16 +09:00
강동윤 (Donny)
50c0eaf4de chore: Publish 1.6.7-nightly-20240703.1 with swc_core v0.96.1 2024-07-03 10:23:39 +09:00
Donny/강동윤
6b3c0da755
feat(binding): Create Wasm package for stripping only TypeScript (#9124)
**Description:**

This PR adds a Wasm binding which is only capable of stripping TypeScript types.


**Related issue:**

 - https://github.com/marco-ippolito/node/pull/2
2024-07-03 00:50:59 +00:00
Pig Fang
18d6277e4c
feat(preset-env): Upgrade browserslist-rs (#9023)
**Description:**

Compilation time of browserslist-rs has beed reduced by 32%. See:
https://github.com/browserslist/browserslist-rs/pull/23

But, it's still slower that oxc-browserslist:


![image](https://github.com/swc-project/swc/assets/17216317/44602603-e33f-442e-9ee0-242061089397)

while browserslist-rs costs about 3.9s.




**Related issue:**

Close #9014

---------

Co-authored-by: 강동윤 (Donny) <kdy1997.dev@gmail.com>
2024-07-01 05:20:49 +00:00
강동윤 (Donny)
3ed3ff0e9a chore: Publish 1.6.6 with swc_core v0.95.10 2024-06-29 20:01:20 +09:00
강동윤 (Donny)
8e98fa0ba8 chore: Publish 1.6.5 with swc_core v0.95.6 2024-06-22 12:01:34 +09:00
강동윤 (Donny)
a56d311666 chore: Publish 1.6.4 with swc_core v0.95.6 2024-06-22 10:03:17 +09:00
강동윤 (Donny)
60ae1f75b5 chore: Publish 1.6.3 with swc_core v0.95.4 2024-06-19 13:03:59 +09:00
강동윤 (Donny)
e640972dae chore: Publish 1.6.1 with swc_core v0.95.2 2024-06-16 14:56:06 +09:00
강동윤 (Donny)
13c2b2eef0 chore: Publish 1.6.0 with swc_core v0.95.0 2024-06-15 22:01:17 +09:00
강동윤 (Donny)
3797b0b1af chore: Publish 1.5.30-nightly-20240614.2 with swc_core v0.94.0 2024-06-14 22:57:08 +09:00
강동윤 (Donny)
0e09be47da chore: Publish 1.5.30-nightly-20240614.1 with swc_core v0.94.0 2024-06-14 22:04:14 +09:00
Luca Casonato
6306778512
refactor(es/ast): Remove unused fields of TsPropertySignature (#8955)
**Description:**

TsPropertySignature can not have params, type params, or an initializer.

**BREAKING CHANGE:**

Yes. Any users looking into these fields should stop - they are always empty.

---------

Co-authored-by: 강동윤 (Donny) <kdy1997.dev@gmail.com>
2024-06-14 21:57:10 +09:00
강동윤 (Donny)
4ecda3851c chore: Publish 1.5.29 with swc_core v0.93.4 2024-06-13 09:15:07 +09:00
강동윤 (Donny)
1c9a050c6c chore: Publish 1.5.29-nightly-20240612.3 with swc_core v0.93.4 2024-06-12 23:27:24 +09:00
강동윤 (Donny)
dab7bfca53 chore: Publish 1.5.29-nightly-20240612.2 with swc_core v0.93.4 2024-06-12 17:37:57 +09:00
강동윤 (Donny)
ad3ab3bd0b chore: Publish 1.5.29-nightly-20240612.1 with swc_core v0.93.4 2024-06-12 17:37:35 +09:00
SWC Bot
2ecd550d58 chore: Publish 1.5.29-nightly-20240612.1 2024-06-12 07:33:17 +00:00
SWC Bot
f7dc8245c5 chore: Publish 1.5.29-nightly-20240612.1 2024-06-12 03:33:37 +00:00
SWC Bot
328cb4b248 chore: Publish 1.5.29-nightly-20240611.1 2024-06-11 08:32:31 +00:00
강동윤 (Donny)
e06198552c chore: Publish 1.5.28 with swc_core v0.93.2 2024-06-11 15:03:56 +09:00
SWC Bot
2133903e8f chore: Publish 1.5.28-nightly-20240611.1 2024-06-11 00:06:15 +00:00
강동윤 (Donny)
4d00b671f6 chore: Publish 1.5.27 with swc_core v0.93.1 2024-06-10 14:16:42 +09:00
강동윤 (Donny)
3f7820a3a1 chore: Publish 1.5.26 with swc_core v0.93.1 2024-06-10 12:16:58 +09:00
SWC Bot
22c00c7776 chore: Publish 1.5.26-nightly-20240610.1 2024-06-10 02:36:01 +00:00
SWC Bot
d4ab0acbe2 chore: Publish 1.5.26-nightly-20240607.1 2024-06-07 12:10:53 +00:00
Donny/강동윤
cada50b017
feat(es/minifier): Support module: "unknown" (#9026)
**Related issue:**

 - Closes #8571
2024-06-07 07:17:05 +00:00
SWC Bot
1b174dfac5 chore: Publish 1.5.11-nightly-20240606.1 2024-06-06 00:08:15 +00:00
강동윤 (Donny)
8bb302a508 chore: Publish 1.5.25 with swc_core v0.92.10 2024-06-05 10:22:50 +09:00
SWC Bot
774f3608d2 chore: Publish 1.5.11-nightly-20240601.1 2024-06-01 00:07:27 +00:00
SWC Bot
4e1adfcc88 chore: Publish 1.5.11-nightly-20240531.1 2024-05-31 00:08:16 +00:00