Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: swc-project/swc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.11.11
Choose a base ref
...
head repository: swc-project/swc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.11.12
Choose a head ref

Commits on Mar 17, 2025

  1. chore: Update changelog

    swc-bot committed Mar 17, 2025
    Copy the full SHA
    cde2f0f View commit details

Commits on Mar 18, 2025

  1. fix(es/types): Fix broken types (#10224)

    Broken in this commit: nicksrandall@e71b000
    nicksrandall authored Mar 18, 2025
    Copy the full SHA
    540bdf8 View commit details
  2. feat(es/fast-lexer): Enhance identifier handling with Unicode support (

    …#10226)
    
    **Description:**
    
    - Added support for Unicode characters in identifiers, allowing for a broader range of valid identifiers.
    - Introduced methods to handle Unicode escape sequences and UTF-8 characters in identifiers.
    - Updated the lexer to utilize these new methods, improving the parsing of identifiers that include non-ASCII characters.
    - Added tests to verify the correct handling of identifiers with Unicode characters and escape sequences.
    GiveMe-A-Name authored Mar 18, 2025
    Copy the full SHA
    482b63a View commit details

Commits on Mar 19, 2025

  1. feat(es/minifier): Invoke IIFE into block (#10220)

    **Description:**
    
    This is maybe the biggest missing feature of terser as compared to gcc because its lack of proper scope support. But we have.
    
    Further development:
    1. invoke IIFE with return into labelled break
    2. invoke IIFE in place where value is needed like `if (() => {} ())`
    3. invoke IIFE in seq and other side effect free expressions
    
    
    **Related issue:**
    
     - Closes #10054
    Austaras authored Mar 19, 2025
    Copy the full SHA
    c9a6c23 View commit details

Commits on Mar 20, 2025

  1. fix(es/minifier): Make inline_globals noop by default (#10231)

    **Related issue:**
    
     - Closes #10230
    kdy1 authored Mar 20, 2025
    Copy the full SHA
    b192dc8 View commit details
  2. perf(es/minifier): Merge dead_branch_remover into pure optimizer (#…

    …10201)
    
    **Description:**
    
    Merge `dead_branch_remover` into the pure optimizer to make the sequential process parallel and reduce the overhead of the visitor pattern.
    
    
    **Related issue:**
    
    - Closes #10217 because we don't use it for minifier anymore.
    kdy1 authored Mar 20, 2025
    Copy the full SHA
    6841523 View commit details
  3. feat(es/minifier): Remove needless blocks (#10234)

    **Description:**
    
    I postponed this while working on `dead_branch_remover` removal PR.
    kdy1 authored Mar 20, 2025
    Copy the full SHA
    0817970 View commit details
  4. Revert "feat(es/minifier): Remove needless blocks (#10234)"

    This reverts commit 0817970.
    kdy1 committed Mar 20, 2025
    1
    Copy the full SHA
    7db84c3 View commit details
  5. Revert "perf(es/minifier): Merge dead_branch_remover into pure opti…

    …mizer (#10201)"
    
    This reverts commit 6841523.
    kdy1 committed Mar 20, 2025
    1
    Copy the full SHA
    1115d37 View commit details
  6. Revert "fix(es/minifier): Make inline_globals noop by default (#10231

    …)"
    
    This reverts commit b192dc8.
    kdy1 committed Mar 20, 2025
    1
    Copy the full SHA
    5787f49 View commit details
  7. Revert "feat(es/minifier): Invoke IIFE into block (#10220)"

    This reverts commit c9a6c23.
    kdy1 committed Mar 20, 2025
    1
    Copy the full SHA
    52c74c8 View commit details
  8. feat(swc_parallel): Introduce rayon mode (#10237)

    **Description:**
    
    It enables parallelism based on `rayon` instead of `chili`
    kdy1 authored Mar 20, 2025
    Copy the full SHA
    3c2213c View commit details
  9. chore: Publish crates with swc_core v16.8.0

    kdy1 committed Mar 20, 2025
    Copy the full SHA
    7c4d9e2 View commit details
  10. Copy the full SHA
    c1b602d View commit details
  11. Revert "Revert "fix(es/minifier): Make inline_globals noop by defau…

    …lt (#10231)""
    
    This reverts commit 5787f49.
    kdy1 committed Mar 20, 2025
    Copy the full SHA
    234789d View commit details
  12. Revert "Revert "perf(es/minifier): Merge dead_branch_remover into p…

    …ure optimizer (#10201)""
    
    This reverts commit 1115d37.
    kdy1 committed Mar 20, 2025
    Copy the full SHA
    7cd3dac View commit details
  13. Revert "Revert "feat(es/minifier): Remove needless blocks (#10234)""

    This reverts commit 7db84c3.
    kdy1 committed Mar 20, 2025
    Copy the full SHA
    c47b9da View commit details
  14. fix(es/minifier): Fix access to GLOBALS in char freq compute (#10239)

    **Description:**
    
    The bug was not detected because `chili` is far better for reusing the current thread.
    kdy1 authored Mar 20, 2025
    Copy the full SHA
    6286663 View commit details
  15. chore: Publish crates with swc_core v16.9.0

    kdy1 committed Mar 20, 2025
    Copy the full SHA
    ea5d156 View commit details
  16. chore(ci): Fix CI (#10238)

    **Description:**
    
    Let's fix CI, given that I made relevant PRs.
    kdy1 authored Mar 20, 2025
    Copy the full SHA
    69788d7 View commit details

Commits on Mar 22, 2025

  1. doc(es): Improve documentation (#10247)

    **Description:**
    
    Add some documentations to some methods.
    
    **Related issue:**
    
     - Closes #10244
    kdy1 authored Mar 22, 2025
    Copy the full SHA
    549e38d View commit details

Commits on Mar 23, 2025

  1. feat(ts/fast-strip): Add start/end span information (#10251)

    **Description:**
    
    Note: This PR does not include a fix for the parser diagnostics.
    
    **Related issue:**
    
     - Closes #10188
    kdy1 authored Mar 23, 2025
    Copy the full SHA
    ab39a62 View commit details
  2. fix(es/parser): Fix span of wrong await tokens (#10252)

    kdy1 authored Mar 23, 2025
    Copy the full SHA
    5c28dc3 View commit details
  3. feat(ts/fast-strip): Improve error message snippet (#10253)

    **Description:**
    
    We use `miette` with a very strange config
    kdy1 authored Mar 23, 2025
    Copy the full SHA
    f4f426c View commit details
  4. chore: Publish crates with swc_core v16.9.1

    kdy1 committed Mar 23, 2025
    Copy the full SHA
    254bcf9 View commit details
  5. feat(ts/fast-strip): Remove line numbers (#10254)

    **Description:**
    
    We use string search to replace line numbers
    kdy1 authored Mar 23, 2025
    Copy the full SHA
    40e216d View commit details
  6. Copy the full SHA
    27379cd View commit details
  7. chore: Update changelog

    swc-bot committed Mar 23, 2025
    Copy the full SHA
    0783c18 View commit details
  8. chore: Fix swc_cli

    kdy1 committed Mar 23, 2025
    Copy the full SHA
    4985b52 View commit details
  9. Copy the full SHA
    090c0f3 View commit details
  10. chore: Update changelog

    swc-bot committed Mar 23, 2025
    Copy the full SHA
    5e6a08a View commit details
  11. Copy the full SHA
    3179067 View commit details
Showing 406 changed files with 43,364 additions and 42,458 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -301,7 +301,7 @@ jobs:
- name: Run cargo test (swc_ecma_minifier)
if: matrix.settings.crate == 'swc_ecma_minifier'
run: |
cargo test -p swc_ecma_minifier --features concurrent --release
cargo test -p swc_ecma_minifier --features concurrent --features swc_parallel/chili
- name: Run cargo test (swc_ecma_parser)
if: matrix.settings.crate == 'swc_ecma_parser'
101 changes: 71 additions & 30 deletions CHANGELOG-CORE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,75 @@
# Changelog
## [unreleased]

### Features



- **(ts/fast-strip)** Remove line numbers ([#10254](https://github.com/swc-project/swc/issues/10254)) ([40e216d](https://github.com/swc-project/swc/commit/40e216db82225a1b6cbd9bf2925a4fe7aab2c98e))

## [swc_core@v16.9.1] - 2025-03-23

### Bug Fixes



- **(es/parser)** Fix span of wrong `await` tokens ([#10252](https://github.com/swc-project/swc/issues/10252)) ([5c28dc3](https://github.com/swc-project/swc/commit/5c28dc39646a449a9d0a92f560427ee75e1b0644))

### Documentation



- **(es)** Improve documentation ([#10247](https://github.com/swc-project/swc/issues/10247)) ([549e38d](https://github.com/swc-project/swc/commit/549e38db9e13135c5318fdef76635eeb82a21c11))

### Features



- **(ts/fast-strip)** Add start/end span information ([#10251](https://github.com/swc-project/swc/issues/10251)) ([ab39a62](https://github.com/swc-project/swc/commit/ab39a62528ee852acc5eb089c305ff93aa5d1bea))


- **(ts/fast-strip)** Improve error message snippet ([#10253](https://github.com/swc-project/swc/issues/10253)) ([f4f426c](https://github.com/swc-project/swc/commit/f4f426c9c95d4eda5433e1da123f9b93bc1cb408))

## [swc_core@v16.9.0] - 2025-03-20

### Bug Fixes



- **(es/minifier)** Fix access to `GLOBALS` in char freq compute ([#10239](https://github.com/swc-project/swc/issues/10239)) ([6286663](https://github.com/swc-project/swc/commit/628666386877067c96c32f50b55cda80acde979e))

## [swc_core@v16.8.0] - 2025-03-20

### Bug Fixes



- **(es/minifier)** Make `inline_globals` noop by default ([#10231](https://github.com/swc-project/swc/issues/10231)) ([b192dc8](https://github.com/swc-project/swc/commit/b192dc82e6a84bd30f159fb12ca8a216f41e8efb))


- **(es/types)** Fix broken types ([#10224](https://github.com/swc-project/swc/issues/10224)) ([540bdf8](https://github.com/swc-project/swc/commit/540bdf868d888a017e90c9badf8bab49e9b485bb))

### Features



- **(es/fast-lexer)** Enhance identifier handling with Unicode support ([#10226](https://github.com/swc-project/swc/issues/10226)) ([482b63a](https://github.com/swc-project/swc/commit/482b63a905ddcc49a0cbf0b5a84f93ca7d2a42df))


- **(es/minifier)** Invoke IIFE into block ([#10220](https://github.com/swc-project/swc/issues/10220)) ([c9a6c23](https://github.com/swc-project/swc/commit/c9a6c2378737828becd9b6a87c2fb3b93d9c0acb))


- **(es/minifier)** Remove needless blocks ([#10234](https://github.com/swc-project/swc/issues/10234)) ([0817970](https://github.com/swc-project/swc/commit/08179702bfb1172d5764d8c5326bd00f4e04ba61))


- **(swc_parallel)** Introduce `rayon` mode ([#10237](https://github.com/swc-project/swc/issues/10237)) ([3c2213c](https://github.com/swc-project/swc/commit/3c2213c8299e889fb99ace0a53cf0b2152976bae))

### Performance



- **(es/minifier)** Merge `dead_branch_remover` into pure optimizer ([#10201](https://github.com/swc-project/swc/issues/10201)) ([6841523](https://github.com/swc-project/swc/commit/6841523977d072f3bed361fbb7a47910b41bbcd9))

## [swc_core@v16.7.0] - 2025-03-17

### Features
@@ -1617,9 +1688,6 @@
- **(common)** Use `SourceMap::adjust_mappings` in correct order ([#9447](https://github.com/swc-project/swc/issues/9447)) ([05961eb](https://github.com/swc-project/swc/commit/05961eb018e2e76ed5ef95de9bad923b2fe1df88))


- **(deps)** Update cargo (patch) ([#9317](https://github.com/swc-project/swc/issues/9317)) ([ea66e84](https://github.com/swc-project/swc/commit/ea66e849116aaa569a707ef03762344f0bc06cab))


- **(es)** Improve sourcemap url error messages. ([#9422](https://github.com/swc-project/swc/issues/9422)) ([230d1d9](https://github.com/swc-project/swc/commit/230d1d98b91bde2fa0de54e5fe06e899302e481c))


@@ -1734,9 +1802,6 @@
- **(es/parser)** Fix failure of TS instantiation followed by satisfies ([#9583](https://github.com/swc-project/swc/issues/9583)) ([77900d8](https://github.com/swc-project/swc/commit/77900d808e2a3be2e62b74022c88a81b26a73f86))


- **(es/typescript)** Preserve type assertions ([#9328](https://github.com/swc-project/swc/issues/9328)) ([4d60f52](https://github.com/swc-project/swc/commit/4d60f528d1e7f3a1606cb2c288786491dbafbd5b))


- **(es/typescript)** Fix ASI in expression for fast strip ([#9358](https://github.com/swc-project/swc/issues/9358)) ([3ee82e2](https://github.com/swc-project/swc/commit/3ee82e223fe0ce54ad892cc5b009f573d997c60e))


@@ -1788,9 +1853,6 @@
- **(es/typescrupt)** Fix ASI issue in fast ts strip ([#9332](https://github.com/swc-project/swc/issues/9332)) ([57146cf](https://github.com/swc-project/swc/commit/57146cf58acb43fb5fa526bfde206c4f147edc6d))


- **(es/utils)** Use `$crate` for `quote_ident!()` ([#9309](https://github.com/swc-project/swc/issues/9309)) ([bdaaf47](https://github.com/swc-project/swc/commit/bdaaf47cb4fc0146485a567d48449116d0e67e98))


- **(html)** Fix html binding ([eefae1c](https://github.com/swc-project/swc/commit/eefae1cde794b28b68e5c0af2d2f13a5053b7a49))


@@ -1866,18 +1928,6 @@
- **(common)** Remove `dbg` log ([#9384](https://github.com/swc-project/swc/issues/9384)) ([a538ca1](https://github.com/swc-project/swc/commit/a538ca1990e7b5b8841bc4a883b464c7690e2022))


- **(deps)** Update actions ([#9311](https://github.com/swc-project/swc/issues/9311)) ([475432e](https://github.com/swc-project/swc/commit/475432e83aad0191b8ad23e503d9fbe1835be196))


- **(deps)** Update npm (patch) ([#9318](https://github.com/swc-project/swc/issues/9318)) ([9d983c3](https://github.com/swc-project/swc/commit/9d983c3864888c3402679ce5498f82e71899c210))


- **(deps)** Update `wasmer` to fix broken Windows build ([#9322](https://github.com/swc-project/swc/issues/9322)) ([a120faf](https://github.com/swc-project/swc/commit/a120faf84b178c666b9ac785d27f426f89d10ac6))


- **(deps)** Drop `atty` ([#9325](https://github.com/swc-project/swc/issues/9325)) ([831500e](https://github.com/swc-project/swc/commit/831500e24a25b454f496729242e5e5d54c01756a))


- **(deps)** Update rust crate toml to v0.8.16 ([#9327](https://github.com/swc-project/swc/issues/9327)) ([67aadfa](https://github.com/swc-project/swc/commit/67aadfa6c976c60a3a756a1b1fcdcf193d96c51f))


@@ -1932,9 +1982,6 @@
- **(es/compat)** Reimplement constructor transform ([#9519](https://github.com/swc-project/swc/issues/9519)) ([4b85a92](https://github.com/swc-project/swc/commit/4b85a92170576f194c2b1ad3b3ec624c4839e215))


- **(es/helpers)** Use `bool` instead of `AtomicBool` ([#9321](https://github.com/swc-project/swc/issues/9321)) ([8107e98](https://github.com/swc-project/swc/commit/8107e985e13e73f408d569655119d0684c166f24))


- **(es/utils)** Rewrite inject_after_super ([#9496](https://github.com/swc-project/swc/issues/9496)) ([c562cfa](https://github.com/swc-project/swc/commit/c562cfa8af1163a4946ef79cb025d461c7e2e5e0))


@@ -1961,10 +2008,4 @@

- **(es/typescript)** Verify TypeScript stripped output ([#9398](https://github.com/swc-project/swc/issues/9398)) ([4c4c860](https://github.com/swc-project/swc/commit/4c4c86014f7827e92731c0d60ef1613238648b30))

### Build



- Update `rustc` to `nightly-2024-07-21` ([#9319](https://github.com/swc-project/swc/issues/9319)) ([279ea91](https://github.com/swc-project/swc/commit/279ea910e001f0c7db8d06bc7a3c48e4d718fed9))

<!-- generated by git-cliff -->
94 changes: 53 additions & 41 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,59 @@



- **(es/minifier)** Make `inline_globals` noop by default ([#10231](https://github.com/swc-project/swc/issues/10231)) ([b192dc8](https://github.com/swc-project/swc/commit/b192dc82e6a84bd30f159fb12ca8a216f41e8efb))


- **(es/minifier)** Fix access to `GLOBALS` in char freq compute ([#10239](https://github.com/swc-project/swc/issues/10239)) ([6286663](https://github.com/swc-project/swc/commit/628666386877067c96c32f50b55cda80acde979e))


- **(es/parser)** Fix span of wrong `await` tokens ([#10252](https://github.com/swc-project/swc/issues/10252)) ([5c28dc3](https://github.com/swc-project/swc/commit/5c28dc39646a449a9d0a92f560427ee75e1b0644))


- **(es/types)** Fix broken types ([#10224](https://github.com/swc-project/swc/issues/10224)) ([540bdf8](https://github.com/swc-project/swc/commit/540bdf868d888a017e90c9badf8bab49e9b485bb))

### Documentation



- **(es)** Improve documentation ([#10247](https://github.com/swc-project/swc/issues/10247)) ([549e38d](https://github.com/swc-project/swc/commit/549e38db9e13135c5318fdef76635eeb82a21c11))

### Features



- **(es/fast-lexer)** Enhance identifier handling with Unicode support ([#10226](https://github.com/swc-project/swc/issues/10226)) ([482b63a](https://github.com/swc-project/swc/commit/482b63a905ddcc49a0cbf0b5a84f93ca7d2a42df))


- **(es/minifier)** Invoke IIFE into block ([#10220](https://github.com/swc-project/swc/issues/10220)) ([c9a6c23](https://github.com/swc-project/swc/commit/c9a6c2378737828becd9b6a87c2fb3b93d9c0acb))


- **(es/minifier)** Remove needless blocks ([#10234](https://github.com/swc-project/swc/issues/10234)) ([0817970](https://github.com/swc-project/swc/commit/08179702bfb1172d5764d8c5326bd00f4e04ba61))


- **(swc_parallel)** Introduce `rayon` mode ([#10237](https://github.com/swc-project/swc/issues/10237)) ([3c2213c](https://github.com/swc-project/swc/commit/3c2213c8299e889fb99ace0a53cf0b2152976bae))


- **(ts/fast-strip)** Add start/end span information ([#10251](https://github.com/swc-project/swc/issues/10251)) ([ab39a62](https://github.com/swc-project/swc/commit/ab39a62528ee852acc5eb089c305ff93aa5d1bea))


- **(ts/fast-strip)** Improve error message snippet ([#10253](https://github.com/swc-project/swc/issues/10253)) ([f4f426c](https://github.com/swc-project/swc/commit/f4f426c9c95d4eda5433e1da123f9b93bc1cb408))


- **(ts/fast-strip)** Remove line numbers ([#10254](https://github.com/swc-project/swc/issues/10254)) ([40e216d](https://github.com/swc-project/swc/commit/40e216db82225a1b6cbd9bf2925a4fe7aab2c98e))

### Performance



- **(es/minifier)** Merge `dead_branch_remover` into pure optimizer ([#10201](https://github.com/swc-project/swc/issues/10201)) ([6841523](https://github.com/swc-project/swc/commit/6841523977d072f3bed361fbb7a47910b41bbcd9))

## [1.11.11] - 2025-03-17

### Bug Fixes



- **(es/ast)** Fix Typo in API ([#10210](https://github.com/swc-project/swc/issues/10210)) ([8eb87ba](https://github.com/swc-project/swc/commit/8eb87ba89698f5d8ce2ade37737ae3e285f1235c))


@@ -1827,45 +1880,4 @@

- **(bindings/wasm)** Document supported TypeScript version ([#9334](https://github.com/swc-project/swc/issues/9334)) ([66f31c0](https://github.com/swc-project/swc/commit/66f31c0af46dea60c51e4155a8887a5d2b441da3))

## [1.7.1] - 2024-07-24

### Bug Fixes



- **(deps)** Update cargo (patch) ([#9317](https://github.com/swc-project/swc/issues/9317)) ([ea66e84](https://github.com/swc-project/swc/commit/ea66e849116aaa569a707ef03762344f0bc06cab))


- **(es/typescript)** Preserve type assertions ([#9328](https://github.com/swc-project/swc/issues/9328)) ([4d60f52](https://github.com/swc-project/swc/commit/4d60f528d1e7f3a1606cb2c288786491dbafbd5b))


- **(es/utils)** Use `$crate` for `quote_ident!()` ([#9309](https://github.com/swc-project/swc/issues/9309)) ([bdaaf47](https://github.com/swc-project/swc/commit/bdaaf47cb4fc0146485a567d48449116d0e67e98))

### Miscellaneous Tasks



- **(deps)** Update actions ([#9311](https://github.com/swc-project/swc/issues/9311)) ([475432e](https://github.com/swc-project/swc/commit/475432e83aad0191b8ad23e503d9fbe1835be196))


- **(deps)** Update npm (patch) ([#9318](https://github.com/swc-project/swc/issues/9318)) ([9d983c3](https://github.com/swc-project/swc/commit/9d983c3864888c3402679ce5498f82e71899c210))


- **(deps)** Update `wasmer` to fix broken Windows build ([#9322](https://github.com/swc-project/swc/issues/9322)) ([a120faf](https://github.com/swc-project/swc/commit/a120faf84b178c666b9ac785d27f426f89d10ac6))


- **(deps)** Drop `atty` ([#9325](https://github.com/swc-project/swc/issues/9325)) ([831500e](https://github.com/swc-project/swc/commit/831500e24a25b454f496729242e5e5d54c01756a))

### Performance



- **(es/helpers)** Use `bool` instead of `AtomicBool` ([#9321](https://github.com/swc-project/swc/issues/9321)) ([8107e98](https://github.com/swc-project/swc/commit/8107e985e13e73f408d569655119d0684c166f24))

### Build



- Update `rustc` to `nightly-2024-07-21` ([#9319](https://github.com/swc-project/swc/issues/9319)) ([279ea91](https://github.com/swc-project/swc/commit/279ea910e001f0c7db8d06bc7a3c48e4d718fed9))

<!-- generated by git-cliff -->
Loading