Skip to content

Update swc monorepo #4191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2025
Merged

Update swc monorepo #4191

merged 1 commit into from
Apr 27, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 27, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@swc/cli 0.3.12 -> 0.7.3 age adoption passing confidence
@swc/core (source) 1.11.21 -> 1.11.22 age adoption passing confidence
@swc/helpers (source) 0.5.10 -> 0.5.17 age adoption passing confidence

Release Notes

swc-project/swc (@​swc/core)

v1.11.22

Compare Source

Bug Fixes
Features
  • (bindings/core) Enhance existing parse function to accept both string and buffer types(#​10371) (c9a2afc)

  • (css/prefixer) Fix default implementation (#​10351) (34f4e41)

Miscellaneous Tasks
Performance
Refactor
Testing

v1.11.21

Compare Source

Bug Fixes
Miscellaneous Tasks
Performance

v1.11.20

Compare Source

Bug Fixes

Related issue:

Features
Miscellaneous Tasks
Performance
Testing

v1.11.18

Compare Source

Bug Fixes
Features
Refactor
Testing

v1.11.16

Compare Source

Miscellaneous Tasks

v1.11.15

Compare Source

Bug Fixes
Documentation
Features
Miscellaneous Tasks
Performance
Refactor
Testing

v1.11.13

Compare Source

Features
Performance

v1.11.12

Compare Source

Bug Fixes
Documentation
Features
Performance
  • (es/minifier) Merge dead_branch_remover into pure optimizer (#​10201) (6841523)

v1.11.11

Compare Source

Bug Fixes
Features
Miscellaneous Tasks
Refactor
Testing

v1.11.10

Compare Source

Bug Fixes
  • (es/proposal) Fix declarations for explicit-resource-management (#​10198) (99ba555)

  • (es/types) Add missing types for jsc.transform.react.refresh (#​10206) (e71b000)

  • (typescript) Skip the body of ArrowExpr in type usage analysis (#​10187) (9aca205)

Documentation
Features
Miscellaneous Tasks
Performance
  • (es/minifier) Do not repeat applying pure minifier on last (#​10196) (e6b7cee)
Refactor
Testing

v1.11.9

Compare Source

Bug Fixes
  • (es/compat) Hoist arguments in object method while lowering async functions (#​10167) (e764df2)

  • (es/minifier) Check array inline for indexed with dynamic key (#​10184) (c2fe4bf)

Features
Performance

v1.11.8

Compare Source

Bug Fixes
Features
Performance
Refactor
Ci

v1.11.7

Compare Source

Features

v1.11.6

Compare Source

Bug Fixes

v1.11.5

Compare Source

Bug Fixes
  • (es/lints) Capture errors and emit from the original thread (#​10119) (2304cd8)

  • (es/minifier) Skip inlining if the referential identity of a function matters (#​10123) (c08fe8d)

  • (ts/fast-strip) Throw object consistently (#​10122) (010ff2a)

Miscellaneous Tasks
Performance

v1.11.4

Compare Source

Bug Fixes
Miscellaneous Tasks
Performance
Refactor

v1.11.1

Compare Source

Bug Fixes
Documentation
Features
Miscellaneous Tasks
Performance
Refactor

v1.10.18

Compare Source

Bug Fixes
Miscellaneous Tasks
  • (es/minifier) Make minify-all example ignore parsing errors (#​10045) (6c7ec46)
Build

v1.10.17

Compare Source

Bug Fixes
Performance
Testing

v1.10.16

Compare Source

Bug Fixes
  • (es/minifier) Check assign target before merge assign cond (#​10020) (6dab49a)

  • (es/parser) Preserve comment positions with leading semicolon (#​10019) (c9937b6)

  • (swc_common) Fix panic with non-narrow chars with width != 2 (#​10011) (f9f4cac)

  • (ts/fast-strip) Handle unsupported module keyword (#​10022) (308f5d0)

Performance

v1.10.15

Compare Source

Bug Fixes
Features
Performance

v1.10.14

Compare Source

Bug Fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Summary by Sourcery

Update the @swc/core dependency to version 1.11.22.

Bug Fixes:

  • Pull in fixes for parsing export default from; and handling exported classes with explicit resource management from the updated @swc/core.
  • Upgrade internal browserslist-rs dependency used by @swc/core.
  • Fix downstream documentation builds related to swc_core changes.

Copy link
Contributor Author

renovate bot commented Apr 27, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: pnpm-lock.yaml
Scope: all 21 workspace projects
Progress: resolved 1, reused 0, downloaded 0, added 0
bench/vercel                             |  WARN  deprecated term-size@4.0.0
/tmp/renovate/repos/github/X-oss-byte/Nextjs/packages/next-swc/crates/next-dev-tests/tests:
 ERR_PNPM_FETCH_404  GET https://registry.npmjs.org/@turbo%2Fpack-test-harness: Not Found - 404

This error happened while installing a direct dependency of /tmp/renovate/repos/github/X-oss-byte/Nextjs/packages/next-swc/crates/next-dev-tests/tests

@turbo/pack-test-harness is not in the npm registry, or you have no permission to fetch it.

No authorization header was set for the request.
 WARN  deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

sourcery-ai bot commented Apr 27, 2025

Reviewer's Guide by Sourcery

This pull request updates the SWC monorepo packages (@swc/cli, @swc/core, @swc/helpers) to bring in numerous bug fixes, performance improvements, and new features from several upstream releases.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Updated SWC dependencies, incorporating various bug fixes.
  • Fixed parsing issues, including export default from and await tokens.
  • Corrected behavior for explicit-resource-management proposals.
  • Resolved issues in error reporters, minifier, and resolver.
  • Improved compatibility fixes, such as async function lowering and yield* behavior.
  • Addressed Node.js specific issues.
  • Fixed handling of comments and various AST nodes.
package.json
Introduced new features and enhancements from updated SWC versions.
  • Integrated miette for enhanced diagnostic reporting.
  • Added support for sourceMap.url and pluginEnvVars.
  • Introduced a new analysis API.
  • Implemented various minifier optimizations, including number to int, useless to number removal, expression merging, optional chaining optimization, and block manipulation.
  • Enhanced fast-lexer with Unicode support and improved error reporting for fast-strip.
  • Supported additional import.meta properties.
  • Added parallel iterators for improved processing.
package.json
Improved performance across various SWC components.
  • Optimized lexing and parsing speed through reduced string comparisons, improved memory layout, SIMD usage, and reduced bound checks.
  • Enhanced minifier performance by using bitflags, adjusting parallelism, and optimizing analysis steps.
  • Reduced needless allocations in resolver and codegen.
  • Improved performance of string interning (hstr).
  • Added caching for JSX passes.
  • Integrated mimalloc/jemalloc for better memory allocation on certain platforms.
package.json
Refactored internal SWC code for better structure and maintainability.
  • Simplified compat transforms.
  • Split lexer and codegen modules.
  • Extracted parallel processing utilities.
  • Cleaned up unused code and dependencies.
package.json
Updated testing and build infrastructure.
  • Added new tests and updated existing ones, including source map tests and terser compatibility tests.
  • Updated Node.js version in execution tests.
  • Introduced real-world benchmarks and managed their execution on CI.
  • Improved build processes, including dependency updates, optimization level selection, and fixes for allocator issues.
  • Added CI tests for swc_plugins.
package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

changeset-bot bot commented Apr 27, 2025

⚠️ No Changeset found

Latest commit: 71ead1f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@kodiakhq kodiakhq bot merged commit 10bbfd0 into canary Apr 27, 2025
1 of 6 checks passed
@kodiakhq kodiakhq bot deleted the renovate/swc-monorepo branch April 27, 2025 04:50
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants