Commit Graph

9594 Commits

Author SHA1 Message Date
강동윤 (Donny)
3e73d4ce0c chore: Publish crates with swc_core v0.101.7 2024-08-26 07:57:00 +09:00
magic-akari
faec8c134d
refactor(es/utils): Unify prepend_stmts (#9493)
Some checks failed
CI / Cargo fmt (push) Has been cancelled
CI / Cargo clippy (push) Has been cancelled
CI / Check license of dependencies (push) Has been cancelled
CI / Check (macos-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / Test wasm (binding_core_wasm) (push) Has been cancelled
CI / Test wasm (binding_minifier_wasm) (push) Has been cancelled
CI / Test wasm (binding_typescript_wasm) (push) Has been cancelled
CI / List crates (push) Has been cancelled
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Has been cancelled
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Has been cancelled
CI / Test with @swc/cli (push) Has been cancelled
CI / Miri (better_scoped_tls) (push) Has been cancelled
CI / Miri (string_enum) (push) Has been cancelled
CI / Miri (swc) (push) Has been cancelled
CI / Miri (swc_bundler) (push) Has been cancelled
CI / Miri (swc_ecma_codegen) (push) Has been cancelled
CI / Miri (swc_ecma_minifier) (push) Has been cancelled
Benchmark / Bench everything (push) Has been cancelled
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Has been cancelled
CI / Done (push) Has been cancelled
2024-08-24 22:58:06 +09:00
Yusuke Tanaka
5258763cf6
chore(es/codegen): Bump minimum required swc_allocator version to 0.1.8 (#9492)
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
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 / Bench everything (push) Waiting to run
**Description:**

`swc_ecma_codegen` uses `swc_allocator::collections` modules:


f500dd4530/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs (L3)


f500dd4530/crates/swc_ecma_codegen/tests/sourcemap.rs (L5)

`collections` module was added to `swc_allocator` in 0.1.8. However,
`swc_ecma_codegen` still says that the minimum required version of
`swc_allocator` is 0.1.7:


f500dd4530/crates/swc_ecma_codegen/Cargo.toml (L27)

This can cause a compile error when someone has a lockfile that pins
`swc_allocator` 0.1.7, which is supposed to work with `swc_ecma_codegen`
according to the manifest, but actually not.
2024-08-24 20:29:59 +09:00
SWC Bot
e0e9560520 chore: Update changelog 2024-08-24 10:11:31 +00:00
SWC Bot
54f99a293d chore: Publish 1.7.18 with swc_core v0.101.6 2024-08-24 10:11:30 +00:00
SWC Bot
f500dd4530 chore: Update changelog 2024-08-24 09:14:34 +00:00
SWC Bot
6a47580bb2 chore: Publish 1.7.18-nightly-20240824.1 with swc_core v0.101.6 2024-08-24 09:14:32 +00:00
강동윤 (Donny)
92dee8237c chore: Fix publish action 2024-08-24 16:12:54 +09:00
SWC Bot
ef74760e42 chore: Update changelog
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
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 / Bench everything (push) Waiting to run
2024-08-23 14:49:52 +00:00
SWC Bot
b73cadcd74 chore: Publish 1.7.17 with swc_core v0.101.6 2024-08-23 14:49:51 +00:00
SWC Bot
efa38b09d9 chore: Update changelog 2024-08-23 13:51:29 +00:00
SWC Bot
58fe9a42a2 chore: Publish 1.7.17-nightly-20240823.1 with swc_core v0.101.6 2024-08-23 13:51:28 +00:00
강동윤 (Donny)
d84720c27a chore: Disable html publish pipeline 2024-08-23 22:42:40 +09:00
강동윤 (Donny)
82fa400dc4 chore: Publish crates with swc_core v0.101.6 2024-08-23 22:41:58 +09:00
magic-akari
fc0483ce1b
fix(es/typescript): Correctly handle ESM context (#9490)
**Related issue:**

- https://github.com/nodejs/node/issues/54514
2024-08-23 22:40:28 +09:00
강동윤 (Donny)
1e1b165181 chore: Publish crates with swc_core v0.101.5
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
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 / Bench everything (push) Waiting to run
2024-08-23 11:33:28 +09:00
magic-akari
50d70d35d0
fix(es/typescript): Correctly handle deep import chains (#9487)
**Related issue:**

- Closes https://github.com/swc-project/swc/issues/9486
2024-08-23 07:01:40 +09:00
Donny/강동윤
1121bc0dc1
feat(es/parser): Disallow let let (#9484)
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
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 / Bench everything (push) Waiting to run
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/8269
2024-08-22 09:17:33 +00:00
Donny/강동윤
ede1a52cb8
feat(es/minifier): Drop more patterns with PURE marker (#9478)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9459
 - Closes https://github.com/swc-project/swc/issues/9460
 - Closes https://github.com/swc-project/swc/pull/9465
2024-08-22 13:04:12 +09:00
Donny/강동윤
b0b5e36675
chore(plugin/runner): Fix benchmark (#9477)
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
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 / Bench everything (push) Waiting to run
2024-08-21 14:43:07 +09:00
Donny/강동윤
4bee30ab40
refactor(common): Simplify SyntaxContext and Mark (#9476)
**Description:**

This PR removes the `transparent` of `SyntaxContext` and `is_builtin` of `Mark`.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9346
2024-08-21 05:31:05 +00:00
Donny/강동윤
ac432c4bff
fix(es/minifier): Mark LHS of for-in/of as update (#9474)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9466
2024-08-21 14:02:16 +09:00
Donny/강동윤
c72b5f8b32
fix(es/minifier): Force rename synthesized identifiers (#9473)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9468
2024-08-21 05:01:16 +00:00
Donny/강동윤
3ee8980dbe
feat(visit): Add experimental traverse APIs (#9464)
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
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 / Bench everything (push) Waiting to run
2024-08-21 08:29:24 +09:00
Donny/강동윤
a212ab0f2b
chore: Enable bunchee tests of swc-ecosystem-ci (#9472)
**Related issue:**

 - https://github.com/huozhi/bunchee/pull/574
2024-08-21 07:37:55 +09:00
Donny/강동윤
8c007c402f
fix(bindings/wasm): Fix typing (#9469)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9442
2024-08-20 19:37:30 +00:00
SWC Bot
3ed6abe52e chore: Update changelog
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
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 / Bench everything (push) Waiting to run
2024-08-20 12:48:02 +00:00
SWC Bot
c17debe330 chore: Publish 1.7.17-nightly-20240820.3 with swc_core v0.101.4 2024-08-20 12:48:01 +00:00
강동윤 (Donny)
a54b077ef4 chore(ci): Update artifact actions 2024-08-20 21:39:18 +09:00
강동윤 (Donny)
ac7bd31e8c fix(ci): FIx pattern for actions/download-artifact 2024-08-20 21:31:30 +09:00
SWC Bot
43236684c3 chore: Publish 1.7.17-nightly-20240820.2 with swc_core v0.101.4
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
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 / Bench everything (push) Waiting to run
2024-08-20 10:35:55 +00:00
강동윤 (Donny)
f0a370546f chore(ci): Update actions/download-artifact 2024-08-20 19:25:34 +09:00
강동윤 (Donny)
5a7b19dcb5 chore(ci): Fix artifact names 2024-08-20 19:24:42 +09:00
SWC Bot
5c27d8b340 chore: Update changelog 2024-08-20 09:47:37 +00:00
SWC Bot
ff0cc8a765 chore: Publish 1.7.17-nightly-20240820.1 with swc_core v0.101.4 2024-08-20 09:47:36 +00:00
강동윤 (Donny)
f30fd4fe42 chore(html): Fix publish action 2024-08-20 18:37:59 +09:00
SWC Bot
c3ed5d77e5 chore: Update changelog 2024-08-20 09:14:23 +00:00
SWC Bot
8c3afb84c8 chore: Publish 1.7.16-nightly-20240820.1 with swc_core v0.101.4 2024-08-20 09:14:22 +00:00
SWC Bot
b6d0bf86d5 chore: Update changelog 2024-08-20 08:43:41 +00:00
SWC Bot
3c5a112b3c chore: Publish 1.7.15-nightly-20240820.8 with swc_core v0.101.4 2024-08-20 08:43:40 +00:00
SWC Bot
aefbd59f08 chore: Publish crates with swc_core v0.101.4 2024-08-20 08:31:41 +00:00
Donny/강동윤
ffc64f66bf
chore(ci): Fix publish action (#9463) 2024-08-20 17:29:43 +09:00
Donny/강동윤
74d6478be1
feat(bindings/html): Allow using lightningcss as minfiier (#9462) 2024-08-20 15:54:20 +09:00
Donny/강동윤
911d4eaa14
perf(visit): Add linear AST traversal (#9452)
**Description:**

Babel decorator pass uses `fastTraverse`, and I think we can have one.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9451
2024-08-20 15:50:11 +09:00
SWC Bot
6187fcb134 chore: Update changelog 2024-08-20 06:02:35 +00:00
SWC Bot
b802ebe6d4 chore: Publish 1.7.15-nightly-20240820.7 with swc_core v0.101.3 2024-08-20 06:02:34 +00:00
Donny/강동윤
d43f1b1212
chore(ci): Fix publish-npm-package action (#9461)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9457
2024-08-20 14:54:07 +09:00
SWC Bot
171d1e83e5 chore: Update changelog 2024-08-20 03:44:06 +00:00
SWC Bot
61c22f4236 chore: Publish 1.7.15-nightly-20240820.6 with swc_core v0.101.3 2024-08-20 03:44:04 +00:00
강동윤 (Donny)
a5d307385d chore(ci): Fix concurrency.group 2024-08-20 12:35:32 +09:00