Commit Graph

547 Commits

Author SHA1 Message Date
Sébastien Lorber
7b98bb5e93
fix(html/minifier): Fix HTML minifier TS types (#9615)
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
**Description:**

 - `preserveComments` is optional but required in the TS type

 - `removeRedundantAttributes` is an enum and passing a boolean leads to errors

See https://github.com/swc-project/swc/blob/main/crates/swc_html_minifier/src/option.rs#L54

**Related issue:**

 - https://github.com/facebook/docusaurus/pull/10554
2024-10-06 18:05:16 +09:00
SWC Bot
d24e99a473 chore: Publish 1.7.30-nightly-20241002.1 with swc_core v0.106.4 2024-10-02 06:36:04 +00:00
Donny/강동윤
24c3a0ce13
perf(es/transforms): Copy benchmarks from oxc (#9602) 2024-10-02 03:07:28 +00:00
SWC Bot
8c923377c4 chore: Publish 1.7.29 with swc_core v0.106.3 2024-10-01 09:49:29 +00:00
SWC Bot
ecf05a8579 chore: Publish 1.7.29-nightly-20241001.1 with swc_core v0.106.3 2024-10-01 08:52:25 +00:00
Donny/강동윤
b94a0e1fd2
chore(es): Add helpers (#9586)
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
**Description:**

This is a part of https://github.com/swc-project/swc/pull/9585. I extracted this as a separate PR to make WIP small.
2024-09-25 15:58:19 +09:00
SWC Bot
6be7166c16 chore: Publish 1.7.28 with swc_core v0.106.0 2024-09-24 11:30:20 +00:00
SWC Bot
8811879f3b chore: Publish 1.7.28-nightly-20240924.1 with swc_core v0.106.0 2024-09-24 10:31:16 +00:00
Donny/강동윤
9dd8f6facf
test(es): Add tests for arm64 windows (#9547)
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-09-14 19:34:03 +09:00
SWC Bot
48bb8f4277 chore: Publish 1.7.27 with swc_core v0.104.1
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-09-11 12:31:52 +00:00
SWC Bot
6a075f8d22 chore: Publish 1.7.27-nightly-20240911.1 with swc_core v0.104.1 2024-09-11 11:33:37 +00:00
SWC Bot
de2240b31a chore: Publish 1.7.26 with swc_core v0.104.1 2024-09-11 09:40:06 +00:00
SWC Bot
9f3797613a chore: Publish 1.7.26-nightly-20240911.1 with swc_core v0.104.1 2024-09-11 08:42:51 +00:00
SWC Bot
898a3b043a chore: Publish 1.7.25 with swc_core v0.104.1 2024-09-11 03:54:37 +00:00
SWC Bot
7becba771e chore: Publish 1.7.25-nightly-20240911.1 with swc_core v0.104.1 2024-09-11 02:57:28 +00:00
강동윤 (Donny)
64ec111769 chore(bindings/node): Fix type definition
- Closes https://github.com/swc-project/swc/issues/9510
2024-09-11 11:49:02 +09:00
강동윤 (Donny)
6137b897aa chore: Fix CLI upload script
Closes https://github.com/swc-project/swc/issues/9511
2024-09-11 11:47:08 +09:00
SWC Bot
8e69a4fdb5 chore: Publish 1.7.24 with swc_core v0.103.2 2024-09-08 06:12:47 +00:00
SWC Bot
6bcdb0951f chore: Publish 1.7.24-nightly-20240908.1 with swc_core v0.103.2 2024-09-08 05:15:36 +00:00
강동윤 (Donny)
6bdc4f7e5e chore: Publish @swc/helpers@v0.5.13 2024-09-03 11:23:25 +09:00
SWC Bot
d52a48fac8 chore: Publish 1.7.23 with swc_core v0.103.1 2024-09-02 22:27:37 +00:00
SWC Bot
3c503ebc41 chore: Publish 1.7.23-nightly-20240902.1 with swc_core v0.103.1 2024-09-02 21:30:50 +00:00
magic-akari
4b85a92170
perf(es/compat): Reimplement constructor transform (#9519)
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 #9494 
- babel/babel#16194
2024-09-02 19:53:16 +09:00
SWC Bot
6290dd308b chore: Publish 1.7.22 with swc_core v0.102.2 2024-08-30 09:01:38 +00:00
SWC Bot
4313e2788d chore: Publish 1.7.22-nightly-20240830.1 with swc_core v0.102.2 2024-08-30 08:03:49 +00:00
SWC Bot
32f13d7b9a chore: Publish 1.7.21 with swc_core v0.102.1 2024-08-28 11:18:13 +00:00
SWC Bot
5da0e25454 chore: Publish 1.7.21-nightly-20240828.1 with swc_core v0.102.1 2024-08-28 10:21:17 +00:00
강동윤 (Donny)
e05272feb9 chore: Fix publish pipeline of @swc/html 2024-08-28 19:12:46 +09:00
SWC Bot
63656bc5f4 chore: Publish 1.7.20-nightly-20240828.1 with swc_core v0.102.1 2024-08-28 08:40:20 +00:00
SWC Bot
613e8eefb5 chore: Publish 1.7.19 with swc_core v0.102.1 2024-08-28 06:26:36 +00:00
SWC Bot
c6e416abab chore: Publish 1.7.19-nightly-20240828.1 with swc_core v0.102.1 2024-08-28 05:20:43 +00:00
Donny/강동윤
af922d83e5
feat(es/minifier): Support mangle cache (#9489)
**Description:**

This PR adds a name cache for the mangler. It's implemented using a `Mutex`, and it's exposed to JS as an experimental API. Note that JS API only provides an opaque object.
2024-08-25 23:42:53 +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
6a47580bb2 chore: Publish 1.7.18-nightly-20240824.1 with swc_core v0.101.6 2024-08-24 09:14:32 +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
58fe9a42a2 chore: Publish 1.7.17-nightly-20240823.1 with swc_core v0.101.6 2024-08-23 13:51:28 +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
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
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
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
3c5a112b3c chore: Publish 1.7.15-nightly-20240820.8 with swc_core v0.101.4 2024-08-20 08:43:40 +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
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
61c22f4236 chore: Publish 1.7.15-nightly-20240820.6 with swc_core v0.101.3 2024-08-20 03:44:04 +00:00
SWC Bot
593279318d chore: Publish 1.7.15-nightly-20240820.5 with swc_core v0.101.3 2024-08-20 03:27:43 +00:00
강동윤 (Donny)
eefae1cde7 fix(html): Fix html binding 2024-08-20 12:18:51 +09:00
SWC Bot
6ebff4c6e3 chore: Publish 1.7.15-nightly-20240820.4 with swc_core v0.101.3 2024-08-20 03:07:10 +00:00