Commit Graph

9157 Commits

Author SHA1 Message Date
SWC Bot
e383961579 chore: Bump crates 2024-06-18 03:21:43 +00:00
hardfist
8d37daedf1
fix(css/minifier): Don't tranform rotate deg (#9072)
**Description:**

Transform rotate deg will cause animation work differently, so don't do transform for rotate deg

**Related issue:**

 - Closes #9070
2024-06-18 03:20:02 +00:00
SWC Bot
071e5be80d chore: Bump crates 2024-06-18 02:56:14 +00:00
Donny/강동윤
c3a8c0b567
refactor(common): Simplify StringInput implementation (#9071) 2024-06-18 11:54:34 +09:00
강동윤 (Donny)
ae6ab656fa chore: Skip benchmark for chore: commits 2024-06-17 16:59:19 +09:00
Donny/강동윤
aa59ca3727
chore: Restore benchmark action (#9067)
**Description:**

Let's restore https://swc.rs/docs/benchmarks
2024-06-17 16:08:01 +09:00
Donny/강동윤
9463ba35cf
chore: Improve ecosystem-ci (#9068)
**Description:**

 - Move workspace of `swc-ecosystem-ci`.
 - Reduce overrides.
2024-06-17 15:38:56 +09:00
Donny/강동윤
2e153707a3
chore: Enable more tests for swc-ecosystem-ci (#9065) 2024-06-17 12:07:46 +09:00
Donny/강동윤
e755bce438
chore: Implement Verify release with ecosystem (#9064)
**Description:**

This is a follow-up PR for https://github.com/swc-project/swc/pull/9062. This PR integrates swc-ecosystem-ci to publish pipeline. For faster debugging, I disabled the build process.
2024-06-17 08:58:52 +09:00
Donny/강동윤
2122756394
chore: Implement Publish nightly to npm (#9062)
**Description:**

This is a follow-up PR of https://github.com/swc-project/swc/pull/9061
2024-06-16 22:07:37 +09:00
Donny/강동윤
e7ec1e541d
chore: Reduce cache of CI (#9063) 2024-06-16 20:19:40 +09:00
Donny/강동윤
886bf0e9c2
chore: Implement Determine nightly version (#9061)
**Description:**

This is a follow-up PR of https://github.com/swc-project/swc/pull/9060. I'll integrate `swc-ecosystem-ci` into publish pipeline to prevent regressions.
2024-06-16 19:29:18 +09:00
Donny/강동윤
79e737caac
chore: Prepare publish CI action (#9060)
**Description:**

I'm trying to build a publishing pipeline that verifies ecosystem packages before publishing.
2024-06-16 18:15:08 +09:00
강동윤 (Donny)
9013e8acc6 chore: Update changelog 2024-06-16 14:56:08 +09:00
강동윤 (Donny)
e640972dae chore: Publish 1.6.1 with swc_core v0.95.2 2024-06-16 14:56:06 +09:00
SWC Bot
f8c2c4791a chore: Bump crates 2024-06-16 05:31:45 +00:00
Donny/강동윤
cdd20cd163
fix(common): Revert Use SourceMap::adjust_mappings (#9058)
**Description:**

https://github.com/getsentry/rust-sourcemap/pull/91 should fix this
issue, but let's revert #9052 for now.

# Context

`swc_core` regressed.

Caught by https://github.com/vercel/next.js/pull/66902

```
 ⚠ Linting is disabled.
  ▲ Next.js 15.0.0-canary.34

 ✓ Checking validity of types
   Creating an optimized production build ...
Panic: PanicInfo { payload: Any { .. }, message: Some(attempt to add with overflow), location: Location { file: "/Users/kdy1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sourcemap-8.0.1/src/encoder.rs", line: 89, col: 13 }, can_unwind: true, force_no_backtrace: false }
Backtrace:    0: backtrace::backtrace::libunwind::trace
             at /Users/kdy1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.68/src/backtrace/libunwind.rs:93:5
      backtrace::backtrace::trace_unsynchronized::<<backtrace::capture::Backtrace>::create::{closure#0}>
             at /Users/kdy1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.68/src/backtrace/mod.rs:66:5
      backtrace::backtrace::trace::<<backtrace::capture::Backtrace>::create::{closure#0}>
             at /Users/kdy1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.68/src/backtrace/mod.rs:53:14
      <backtrace::capture::Backtrace>::create
             at /Users/kdy1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.68/src/capture.rs:176:9
      <backtrace::capture::Backtrace>::new
             at /Users/kdy1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.68/src/capture.rs:140:22
   1: next_swc_napi::init::{closure#0}
             at packages/next-swc/crates/napi/src/lib.rs:85:29
   2: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /rustc/6f3df08aadf71e8d4bf7e49f5dc10dfa6f254cb4/library/alloc/src/boxed.rs:2077:9
      std::panicking::rust_panic_with_hook
             at /rustc/6f3df08aadf71e8d4bf7e49f5dc10dfa6f254cb4/library/std/src/panicking.rs:799:13
   3: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/6f3df08aadf71e8d4bf7e49f5dc10dfa6f254cb4/library/std/src/panicking.rs
```
2024-06-16 14:30:01 +09:00
SWC Bot
11df9e9424 chore: Bump crates 2024-06-16 00:54:44 +00:00
Donny/강동윤
ca26eb796b
perf(es/parser): Reduce allocations while lexing numbers (#9057) 2024-06-16 09:52:53 +09:00
강동윤 (Donny)
064af5391d chore: Update changelog 2024-06-15 22:01:19 +09:00
강동윤 (Donny)
13c2b2eef0 chore: Publish 1.6.0 with swc_core v0.95.0 2024-06-15 22:01:17 +09:00
SWC Bot
131bd42f58 chore: Bump crates 2024-06-15 09:03:56 +00:00
Donny/강동윤
bc8ec625ec
perf(es/parser): Reduce allocations for raw while lexing numbers (#9056) 2024-06-15 18:01:40 +09:00
SWC Bot
56464f2d62 chore: Bump crates 2024-06-15 08:25:58 +00:00
Donny/강동윤
ab226dcfb7
feat(es/ast): Add more utilities (#9054) 2024-06-15 08:24:12 +00:00
강동윤 (Donny)
ea7191e185 chore: Fix nightly publish action 2024-06-14 23:56:07 +09:00
SWC Bot
10eab94d81 chore: Bump crates 2024-06-14 14:47:30 +00:00
Donny/강동윤
eda2e45691
feat(common): Use SourceMap::adjust_mappings (#9052) 2024-06-14 14:45:58 +00:00
강동윤 (Donny)
8b66428429 chore: Update changelog 2024-06-14 22:57:10 +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)
fc188730b4 chore: Update changelog 2024-06-14 22:04:16 +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
SWC Bot
8d4f7cb9fb chore: Bump crates 2024-06-14 12:58:43 +00: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
SWC Bot
b31edbfb62 chore: Bump crates 2024-06-14 12:55:09 +00:00
Donny/강동윤
e856478060
refactor(es/utils): Refine some APIs (#9049)
**Description:**

This PR
 - moves some APIs into `swc_ecma_ast`.
 - removes needless types.

**BREAKING CHANGE:**

 - `swc_ecma_utils::IdentExt::private` => `swc_ecma_ast::Ident::into_private`.
 - `swc_ecma_utils::IdentExt::prefix` => `swc_ecma_ast::Ident::with_prefix`.
 - `swc_ecma_utils::undefined` => `swc_ecma_ast::Expr::undefined`.
2024-06-14 21:53:16 +09:00
강동윤 (Donny)
12e1c5d036 chore: Bump crates 2024-06-14 15:28:28 +09:00
SWC Bot
a3a37a0c7c chore: Bump crates 2024-06-14 06:26:31 +00:00
Donny/강동윤
32e23edd85
refactor(es/parser): Remove unused raw: Raw params (#9048) 2024-06-14 15:13:05 +09:00
Donny/강동윤
e5601989a1
perf(es/lints): Avoid needless allocations in no-dupe-args (#9041)
**Description:**

I introduced a zero-allocation variant for `swc_ecma_utils::DestructuringFinder` that does not allocate anything.
2024-06-14 14:39:15 +09:00
SWC Bot
931f752d54 chore: Bump crates 2024-06-14 05:24:10 +00:00
Donny/강동윤
60fe5f0eff
perf(es/parser): Do not track raw by hand (#9047)
**Description:**

We can skip this logic completely, as it's `raw`.

~I'm under the impression that I'm super stupid~
2024-06-14 14:22:26 +09:00
SWC Bot
0a3265e7fc chore: Bump crates 2024-06-13 08:20:48 +00:00
Donny/강동윤
11bba262f5
test(es/parser): Add benchmarks (#9044)
**Description:**

- Source: https://github.com/oxc-project/bench-javascript-parser-written-in-rust
2024-06-13 08:19:11 +00:00
강동윤 (Donny)
145c751603 chore: Update changelog 2024-06-13 09:15:09 +09:00
강동윤 (Donny)
4ecda3851c chore: Publish 1.5.29 with swc_core v0.93.4 2024-06-13 09:15:07 +09:00
강동윤 (Donny)
06592cb5b7 chore: Update changelog 2024-06-12 23:27:26 +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)
e4cbc8d675 chore(ci): Fix binary upload action 2024-06-12 23:26:46 +09:00
강동윤 (Donny)
c3c714e776 chore: Update changelog 2024-06-12 17:38:00 +09:00