Skip to content

[Snyk] Upgrade @swc/core from 1.3.68 to 1.13.20#8158

Closed
q1blue wants to merge 1 commit intomasterfrom
snyk-upgrade-f88f8ce6122d5bf4843b57a84edd5e69
Closed

[Snyk] Upgrade @swc/core from 1.3.68 to 1.13.20#8158
q1blue wants to merge 1 commit intomasterfrom
snyk-upgrade-f88f8ce6122d5bf4843b57a84edd5e69

Conversation

@q1blue
Copy link
Copy Markdown
Collaborator

@q1blue q1blue commented Oct 31, 2025

snyk-top-banner

Snyk has created this PR to upgrade @swc/core from 1.3.68 to 1.13.20.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 457 versions ahead of your current version.

  • The recommended version was released a month ago.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:


EntelligenceAI PR Summary

This PR updates the @swc/core dependency in the Backstage storybook package from version ^1.3.46 to ^1.13.20, representing a significant version jump. The update includes new dependencies (@swc/counter and @swc/types), updated peer dependencies, and all platform-specific binaries upgraded to version 1.14.0.

@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented Oct 31, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Oct 31, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@entelligence-ai-pr-reviews
Copy link
Copy Markdown

📝 Walkthrough

This pull request performs a major version upgrade of the @swc/core dependency used in the Backstage storybook package. The update jumps from version ^1.3.46 to ^1.13.20, which spans multiple major and minor releases of the SWC compiler. This upgrade introduces two new dependencies (@swc/counter and @swc/types) and updates the peer dependency requirements for @swc/helpers from ^0.5.0 to >=0.5.17.

The changes include updates to all platform-specific binary packages (darwin-arm64, darwin-x64, linux-arm-gnueabihf, etc.) from version 1.3.68 to 1.14.0, along with corresponding checksum updates in the yarn.lock file. However, there's a critical version mismatch where package.json specifies ^1.13.20 but yarn.lock resolves to 1.14.0, which could lead to inconsistent behavior across different environments.

Given the magnitude of this version jump, there are significant risks including potential breaking changes in AST definitions, parser behavior modifications, and plugin compatibility issues that need thorough testing before merge.


📊 Changes

File Change
storybook/package.json Updated @swc/core dependency from ^1.3.46 to ^1.13.20
storybook/yarn.lock Updated lock file with new package versions (1.14.0), added @swc/counter (^0.1.3) and @swc/types (^0.1.25), updated all platform-specific binaries and checksums

🔒 Security Highlights

  • Supply Chain Risk: Two new dependencies (@swc/counter and @swc/types) require security audit
  • Version Integrity: Large version jump increases risk of compromised packages
  • Binary Dependencies: Multiple platform binaries updated - verification needed from official sources
  • ✅ No apparent malicious code injection detected
  • ✅ Standard dependency update pattern followed
  • ✅ Checksums properly updated in lockfile

Sequence Diagram

This diagram shows the interactions between components:

sequenceDiagram
    participant PM as Package Manager
    participant SB as Storybook App
    participant SWC as @swc/core
    participant Binaries as Platform Binaries
    participant Counter as @swc/counter
    participant Types as @swc/types
    
    Note over PM,Types: Dependency Update: @swc/core 1.3.46 → 1.13.20
    
    PM->>PM: Read package.json
    Note right of PM: Updated dependency:<br/>@swc/core: ^1.13.20
    
    PM->>SWC: Resolve @swc/core@^1.13.20
    activate SWC
    Note right of SWC: Resolves to v1.14.0
    
    SWC->>Counter: Require @swc/counter@^0.1.3
    activate Counter
    Counter-->>SWC: v0.1.3 available
    deactivate Counter
    
    SWC->>Types: Require @swc/types@^0.1.25
    activate Types
    Types->>Counter: Depend on @swc/counter@^0.1.3
    Types-->>SWC: v0.1.25 available
    deactivate Types
    
    SWC->>Binaries: Resolve platform-specific binaries
    activate Binaries
    Note over Binaries: All binaries updated to 1.14.0:<br/>- darwin-arm64/x64<br/>- linux-arm/arm64/x64<br/>- win32-arm64/ia32/x64
    Binaries-->>SWC: Platform binaries resolved
    deactivate Binaries
    
    opt Peer Dependency Check
        SWC->>PM: Check @swc/helpers peer dependency
        Note right of PM: Updated requirement:<br/>>=0.5.17 (was ^0.5.0)
    end
    
    SWC-->>PM: Dependencies resolved
    deactivate SWC
    
    PM->>PM: Update yarn.lock
    Note right of PM: Lock file updated with<br/>new versions and checksums
    
    PM->>SB: Install updated dependencies
    activate SB
    SB->>SWC: Import and use @swc/core v1.14.0
    Note over SB,SWC: Storybook now uses<br/>updated SWC compiler
    deactivate SB
Loading

🔒 Security Analysis

  • Vulnerabilities: 0
  • Bugs: 0
  • Code Smells: 0
  • Security Hotspots: 0

▶️AI Code Reviews for VS Code, Cursor, Windsurf
Install the extension

Note for Windsurf Please change the default marketplace provider to the following in the windsurf settings:

Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery

Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items

Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts below

Emoji Descriptions:

  • ⚠️ Potential Issue - May require further investigation.
  • 🔒 Security Vulnerability - Fix to ensure system safety.
  • 💻 Code Improvement - Suggestions to enhance code quality.
  • 🔨 Refactor Suggestion - Recommendations for restructuring code.
  • ℹ️ Others - General comments and information.

Interact with the Bot:

  • Send a message or request using the format:
    @entelligenceai + *your message*
Example: @entelligenceai Can you suggest improvements for this code?
  • Help the Bot learn by providing feedback on its responses.
    @entelligenceai + *feedback*
Example: @entelligenceai Do not comment on `save_auth` function !

Also you can trigger various commands with the bot by doing
@entelligenceai command

The current supported commands are

  1. config - shows the current config
  2. retrigger_review - retriggers the review

More commands to be added soon.

Comment thread storybook/package.json
},
"dependencies": {
"@swc/core": "^1.3.46",
"@swc/core": "^1.13.20",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Correctness: 🚨 Version Mismatch Risk: The package.json specifies ^1.13.20 but yarn.lock resolves to 1.14.0. This could lead to inconsistent behavior across different environments where different team members may get different SWC versions.

📝 Committable Code Suggestion

‼️ Ensure you review the code suggestion before committing it to the branch. Make sure it replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
"@swc/core": "^1.13.20",
"@swc/core": "1.14.0",

Comment thread storybook/package.json
},
"dependencies": {
"@swc/core": "^1.3.46",
"@swc/core": "^1.13.20",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Correctness: 🚨 Major Version Jump Without Gradual Migration: Jumping from 1.3.46 to 1.13.20 spans multiple major releases with potential breaking changes. SWC has had documented breaking changes in AST definitions and plugin compatibility that could break existing builds, transformations, or plugin compatibility.

Comment thread storybook/package.json
},
"dependencies": {
"@swc/core": "^1.3.46",
"@swc/core": "^1.13.20",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Style: ⚠️ Missing Changelog/Migration Documentation: No documentation provided about why this upgrade is needed or what it addresses. Team members won't understand potential breaking changes or the business need for this upgrade.

Comment thread storybook/yarn.lock
Comment on lines +2843 to 2860
"@swc/core-darwin-arm64@npm:1.14.0":
version: 1.14.0
resolution: "@swc/core-darwin-arm64@npm:1.14.0"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@swc/core-darwin-x64@npm:1.3.68":
version: 1.3.68
resolution: "@swc/core-darwin-x64@npm:1.3.68"
"@swc/core-darwin-x64@npm:1.14.0":
version: 1.14.0
resolution: "@swc/core-darwin-x64@npm:1.14.0"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@swc/core-linux-arm-gnueabihf@npm:1.3.68":
version: 1.3.68
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.68"
"@swc/core-linux-arm-gnueabihf@npm:1.14.0":
version: 1.14.0
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.14.0"
conditions: os=linux & cpu=arm
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Security: ⚠️ New Dependencies Added: @swc/counter and @swc/types are now required dependencies. This increases bundle size and introduces potential supply chain risk. These dependencies should be verified as legitimate and audited for security.

Comment thread storybook/yarn.lock
Comment on lines +2843 to 2860
"@swc/core-darwin-arm64@npm:1.14.0":
version: 1.14.0
resolution: "@swc/core-darwin-arm64@npm:1.14.0"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@swc/core-darwin-x64@npm:1.3.68":
version: 1.3.68
resolution: "@swc/core-darwin-x64@npm:1.3.68"
"@swc/core-darwin-x64@npm:1.14.0":
version: 1.14.0
resolution: "@swc/core-darwin-x64@npm:1.14.0"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@swc/core-linux-arm-gnueabihf@npm:1.3.68":
version: 1.3.68
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.68"
"@swc/core-linux-arm-gnueabihf@npm:1.14.0":
version: 1.14.0
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.14.0"
conditions: os=linux & cpu=arm
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Correctness: ⚠️ Peer Dependency Compatibility: @swc/helpers requirement changed from ^0.5.0 to >=0.5.17. This may require updates to other packages using SWC helpers and could impact compatibility across the Backstage monorepo.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 7, 2025

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@github-actions github-actions Bot added the stale label Nov 7, 2025
@github-actions github-actions Bot closed this Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants