Skip to content
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

Bump @swc/core from 1.10.15 to 1.10.16 #264

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 13, 2025

Bumps @swc/core from 1.10.15 to 1.10.16.

Changelog

Sourced from @​swc/core's changelog.

[1.10.16] - 2025-02-13

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

  • (es/codegen) Reduce allocation using compact_str (#10008) (7d7319f)
Commits
  • df4f619 chore: Publish 1.10.16 with swc_core v13.3.0
  • 05d2152 chore: Publish 1.10.16-nightly-20250213.1 with swc_core v13.3.0
  • 660b92a chore: Publish crates with swc_core v13.3.0
  • 308f5d0 fix(ts/fast-strip): Handle unsupported module keyword (#10022)
  • 6dab49a fix(es/minifier): Check assign target before merge assign cond (#10020)
  • c9937b6 fix(es/parser): Preserve comment positions with leading semicolon (#10019)
  • 7d7319f perf(es/codegen): Reduce allocation using compact_str (#10008)
  • f9f4cac fix(swc_common): Fix panic with non-narrow chars with width != 2 (#10011)
  • 5dc16a2 chore: Update changelog
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by Sourcery

Update @swc/core to version 1.10.16. This release includes several bug fixes and performance improvements.

Bug Fixes:

  • Fix panic with non-narrow chars with width != 2.
  • Check assign target before merge assign condition.
  • Preserve comment positions with leading semicolon.
  • Handle unsupported module keyword

Enhancements:

  • Reduce allocation using compact_str

Chores:

  • Update changelog
  • Publish 1.10.16 with swc_core v13.3.0
  • Publish 1.10.16-nightly-20250213.1 with swc_core v13.3.0
  • Publish crates with swc_core v13.3.0

Bumps [@swc/core](https://github.com/swc-project/swc) from 1.10.15 to 1.10.16.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](swc-project/swc@v1.10.15...v1.10.16)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 13, 2025
Copy link

sourcery-ai bot commented Feb 13, 2025

Reviewer's Guide by Sourcery

This pull request bumps the @swc/core dependency from version 1.10.15 to 1.10.16. This update includes bug fixes for the minifier, parser, swc_common, and fast TypeScript stripper, as well as a performance improvement in code generation.

Updated class diagram for es/parser

classDiagram
    class Parser {
      +preserveCommentPositionsWithLeadingSemicolon()
    }
    note for Parser "Preserves comment positions with leading semicolon"
Loading

Updated class diagram for es/minifier

classDiagram
    class Minifier {
      +checkAssignTargetBeforeMergeAssignCond()
    }
    note for Minifier "Checks assign target before merge assign cond"
Loading

Updated class diagram for ts/fast-strip

classDiagram
    class FastStrip {
      +handleUnsupportedModuleKeyword()
    }
    note for FastStrip "Handles unsupported module keyword"
Loading

Updated class diagram for swc_common

classDiagram
    class SwcCommon {
      +fixPanicWithNonNarrowChars()
    }
    note for SwcCommon "Fixes panic with non-narrow chars with width != 2"
Loading

Updated class diagram for es/codegen

classDiagram
    class CodeGen {
      +reduceAllocationUsingCompactStr()
    }
    note for CodeGen "Reduces allocation using compact_str"
Loading

File-Level Changes

Change Details Files
The @swc/core dependency was updated to version 1.10.16.
  • Updated @swc/core in package.json.
  • Updated @swc/core in package-lock.json.
  • Updated @swc/core in yarn.lock.
package.json
package-lock.json
yarn.lock
Fixed a bug in the minifier that could occur when merging assignment conditions.
  • The minifier now checks the assignment target before merging assignment conditions.
Fixed a bug in the parser that caused comment positions to be lost when a leading semicolon was present.
  • The parser now preserves comment positions even when a leading semicolon is present.
Fixed a panic in swc_common that could occur with non-narrow characters with a width not equal to 2.
  • The code now correctly handles non-narrow characters with a width not equal to 2, preventing a panic.
Handled an unsupported module keyword in the fast TypeScript stripper.
  • The fast TypeScript stripper now handles the unsupported module keyword.
Improved code generation performance by reducing allocation using compact_str.
  • The code generator now uses compact_str to reduce allocation, improving performance.

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!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

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

@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. It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!

@github-actions github-actions bot merged commit 6b32338 into develop Feb 13, 2025
2 of 4 checks passed
@github-actions github-actions bot deleted the dependabot/npm_and_yarn/swc/core-1.10.16 branch February 13, 2025 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants