Commit Graph

9121 Commits

Author SHA1 Message Date
Donny/강동윤
8b66d5e89b
fix(es/parser): Revert #9141 (#9171)
**Description:**

Reverts https://github.com/swc-project/swc/issues/9141 because it caused an issue for https://github.com/toeverything/AFFiNE.
2024-07-06 23:13:09 +09:00
SWC Bot
a416cae498 chore: Bump crates 2024-07-06 13:55:30 +00:00
Donny/강동윤
f90574d045
test(es/minfiier): Improve comment testing (#9164)
**Description:**

This is required for https://github.com/swc-project/swc/pull/8907
2024-07-06 22:53:57 +09:00
SWC Bot
d620ea5373 chore: Bump crates 2024-07-06 13:45:27 +00:00
magic-akari
98af5890da
feat(es/typescript): Improve fast TS strip (#9167) 2024-07-06 13:43:46 +00:00
SWC Bot
18080f79d2 chore: Bump crates 2024-07-06 13:16:22 +00:00
Donny/강동윤
d86ca2d49e
fix(es/testing): Fix PluginCommentProxy (#9170)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9169
2024-07-06 22:14:33 +09:00
SWC Bot
3b7b2a13b9 chore: Bump crates 2024-07-06 11:44:07 +00:00
magic-akari
ee8dc28d4d
feat(es/typescript): Improve fast TS strip (#9166) 2024-07-06 20:42:13 +09:00
SWC Bot
d0c0d644c6 chore: Update changelog 2024-07-06 11:11:07 +00:00
SWC Bot
4dc62950a5 chore: Publish 1.6.12 with swc_core v0.96.7 2024-07-06 11:11:06 +00:00
SWC Bot
b9e13993ed chore: Publish 1.6.12-nightly-20240706.2 with swc_core v0.96.7 2024-07-06 10:14:22 +00:00
강동윤 (Donny)
d9810a769b chore(ci): Checkout main while publishing 2024-07-06 19:06:42 +09:00
SWC Bot
db888c539e chore: Publish 1.6.12-nightly-20240706.1 with swc_core v0.96.7
Some checks are pending
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_plugin_testing os:windows-latest runner:windows-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_timer os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_trace_macro os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_transform_common os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_typescript os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_visit os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_visit_macros os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_x_optimizer os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_xml os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_xml_ast os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_xml_codegen os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_xml_codegen_macros os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_xml_parser os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:swc_xml_visit os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:testing os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (map[crate:testing_macros os:ubuntu-latest runner:ubuntu-latest]) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
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
2024-07-06 07:44:52 +00:00
강동윤 (Donny)
bdba6aaf7e chore: Fix nightly version detection 2024-07-06 16:38:23 +09:00
강동윤 (Donny)
3543d36347 chore: Optimize for performance 2024-07-06 15:38:50 +09:00
강동윤 (Donny)
a4c313a14b chore: Use ./scripts/build.sh if exists for Wasm 2024-07-06 15:38:14 +09:00
SWC Bot
6a4c1d379f chore: Publish 1.6.11-nightly-20240706.1 with swc_core v0.96.7 2024-07-06 06:37:43 +00:00
SWC Bot
91c0fa5273 chore: Bump crates 2024-07-06 06:27:35 +00:00
Donny/강동윤
c5acafe386
fix(es/typescript): Fix replacement logic of fast TS strip (#9163) 2024-07-06 15:25:55 +09:00
SWC Bot
87315daf27 chore: Bump crates 2024-07-06 06:21:53 +00:00
Donny/강동윤
3638e97c80
feat(es/testing): Improve comment testing story (#9150)
**Description:**

This PR makes `PluginCommentProxy` work by default in `test_fixture()`. This PR adds a scoped-local to `swc_common`, and uses it from `swc_ecma_transforms_testing`.

It can't be tested in the main repository, though. We cannot enable `plugin_mode` of `swc_common` in the main SWC repository.


**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9149.
2024-07-06 06:20:01 +00:00
SWC Bot
4a4d877561 chore: Bump crates 2024-07-06 05:25:49 +00:00
Donny/강동윤
2bc51b8ab2
fix(es/typescript): Fix tricky cases in TS fast strip (#9159)
**Description:**

We can leverage lexer information to handle tricky cases.
2024-07-06 05:24:02 +00:00
SWC Bot
02441ac045 chore: Publish 1.6.9-nightly-20240706.6 with swc_core v0.96.6 2024-07-06 04:58:14 +00:00
강동윤 (Donny)
3348530d08 chore(ci): Fix npm publish action 2024-07-06 13:48:48 +09:00
SWC Bot
17aab3bf9a chore: Bump crates 2024-07-06 04:48:20 +00:00
Donny/강동윤
3fa54e05ef
chore(ci): Fix CI (#9160) 2024-07-06 13:46:41 +09:00
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
강동윤 (Donny)
8628042b0c chore(ci): Skip ref for previous steps 2024-07-06 12:47:24 +09:00
강동윤 (Donny)
c380ada398 chore(ci): Specify ref 2024-07-06 12:25:07 +09:00
SWC Bot
86e2e66544 chore: Update changelog 2024-07-06 02:02:33 +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)
16f80c4730 chore: Make publish.sh use git protocol 2024-07-06 10:56:19 +09:00
Donny/강동윤
8b4d4676be
chore(ci): Tag releases from new publish pipeline (#9156) 2024-07-06 10:35:17 +09:00
SWC Bot
7fb3868f58 chore: Bump crates 2024-07-06 01:19:39 +00:00
Donny/강동윤
b80a4d8aad
chore(ci): Use taiki-e/install-action if possible (#9157) 2024-07-06 10:18:03 +09:00
강동윤 (Donny)
b0f233f0a2 chore: Bump preset_env_base
Some checks failed
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) Has been cancelled
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) Has been cancelled
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) Has been cancelled
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) Has been cancelled
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) Has been cancelled
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) Has been cancelled
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) Has been cancelled
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) Has been cancelled
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) Has been cancelled
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) Has been cancelled
Publish (core) / Build - wasm (${{ matrix.settings.npm }}) for node.js (map[crate:binding_core_wasm npm:@swc\/wasm target:nodejs]) (push) Has been cancelled
Publish (core) / Build - wasm (${{ matrix.settings.npm }}) for node.js (map[crate:binding_core_wasm npm:@swc\/wasm-web target:web]) (push) Has been cancelled
Publish (core) / Build - wasm (${{ matrix.settings.npm }}) for node.js (map[crate:binding_typescript_wasm npm:@swc\/wasm-typescript target:nodejs]) (push) Has been cancelled
Publish (core) / Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} (18, map[host:macos-latest target:x86_64-apple-darwin]) (push) Has been cancelled
Publish (core) / Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} (18, map[host:windows-latest target:x86_64-pc-windows-msvc]) (push) Has been cancelled
Publish (core) / Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} (20, map[host:macos-latest target:x86_64-apple-darwin]) (push) Has been cancelled
Publish (core) / Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} (20, map[host:windows-latest target:x86_64-pc-windows-msvc]) (push) Has been cancelled
Publish (core) / Test bindings on Linux-x64-gnu - node@${{ matrix.node }} (18) (push) Has been cancelled
Publish (core) / Test bindings on Linux-x64-gnu - node@${{ matrix.node }} (20) (push) Has been cancelled
Publish (core) / Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }} (18) (push) Has been cancelled
Publish (core) / Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }} (20) (push) Has been cancelled
Publish (core) / Test bindings on aarch64-unknown-linux-musl - node@lts (push) Has been cancelled
Publish (core) / Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }} (18) (push) Has been cancelled
Publish (core) / Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }} (20) (push) Has been cancelled
Publish (core) / npm (push) Has been cancelled
2024-07-06 09:33:36 +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
SWC Bot
0129293370 chore: Bump crates 2024-07-05 23:28:51 +00:00
Donny/강동윤
05c721030a
feat(es/typescript): Improve fast TS strip (#9154)
**Description:**

It's almost done, but it need some more adjustment for arrow functions.
2024-07-06 08:27:18 +09:00
SWC Bot
2daee6fa7e chore: Bump crates 2024-07-05 21:45:45 +00:00
magic-akari
732d748d4e
feat(es/typescript): Improve fast TS stripper (#9153) 2024-07-06 06:44:08 +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)
8560729a54 chore(ci): Restore publish-core.yml 2024-07-05 21:52:44 +09:00
강동윤 (Donny)
73a40d382f chore: Update changelog 2024-07-05 21:47:41 +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/강동윤
6acce0c86f
chore: Implement publish action with swc-ecosystem-ci (#9087) 2024-07-05 21:41:46 +09:00
SWC Bot
28fb532e8a chore: Bump crates 2024-07-05 12:35:55 +00: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