Skip to content

[Snyk] Upgrade rollup from 4.22.4 to 4.40.2 #289

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented May 31, 2025

snyk-top-banner

Snyk has created this PR to upgrade rollup from 4.22.4 to 4.40.2.

ℹ️ 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 55 versions ahead of your current version.

  • The recommended version was released 25 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-CROSSSPAWN-8303230
169 Proof of Concept
Release notes
Package name: rollup
  • 4.40.2 - 2025-05-06

    4.40.2

    2025-05-06

    Bug Fixes

    • Create correct IIFE/AMD/UMD bundles when using a mutable default export (#5934)
    • Fix execution order when using top-level await for dynamic imports with inlineDynamicImports (#5937)
    • Throw when the output is watched in watch mode (#5939)

    Pull Requests

    • #5934: fix(exports): avoid "exports is not defined" ReferenceError (@ dasa)
    • #5937: consider TLA imports have higher execution priority (@ TrickyPi)
    • #5939: fix: watch mode input should not be an output subpath (@ btea)
    • #5940: chore(deps): update dependency vite to v6.3.4 [security] (@ renovate[bot])
    • #5941: chore(deps): update dependency eslint-plugin-unicorn to v59 (@ renovate[bot])
    • #5942: fix(deps): lock file maintenance minor/patch updates (@ renovate[bot])
    • #5943: fix(deps): lock file maintenance minor/patch updates (@ renovate[bot])
  • 4.40.1 - 2025-04-28

    4.40.1

    2025-04-28

    Bug Fixes

    • Limit hash size for asset file names to the supported 21 (#5921)
    • Do not inline user-defined entry chunks or chunks with explicit file name (#5923)
    • Avoid top-level-await cycles when non-entry chunks use top-level await (#5930)
    • Expose package.json via exports (#5931)

    Pull Requests

    • #5921: fix(assetFileNames): reduce max hash size to 21 (@ shulaoda)
    • #5923: fix: generate the separate chunk for the entry module with explicated chunk filename or name (@ TrickyPi)
    • #5926: fix(deps): update rust crate swc_compiler_base to v18 (@ renovate[bot])
    • #5927: fix(deps): lock file maintenance minor/patch updates (@ renovate[bot])
    • #5928: fix(deps): lock file maintenance minor/patch updates (@ renovate[bot])
    • #5930: Avoid chunks TLA dynamic import circular when TLA dynamic import used in non-entry modules (@ TrickyPi)
    • #5931: chore: add new ./package.json entry (@ JounQin, @ lukastaegert)
    • #5936: fix(deps): lock file maintenance minor/patch updates (@ renovate[bot])
  • 4.40.0 - 2025-04-12

    4.40.0

    2025-04-12

    Features

    • Only show eval warnings on first render and only when the call is not tree-shaken (#5892)
    • Tree-shake non-included dynamic import members when the handler just maps to one named export (#5898)

    Bug Fixes

    • Consider dynamic imports nested within top-level-awaited dynamic import expressions to be awaited as well (#5900)
    • Fix namespace rendering when tree-shaking is disabled (#5908)
    • When using multiple transform hook filters, all of them need to be satisfied together (#5909)

    Pull Requests

  • 4.39.0 - 2025-04-02

    4.39.0

    2025-04-02

    Features

    • Do not create separate facade chunks if a chunk would contain several entry modules that allow export extension if there are no export name conflicts (#5891)

    Bug Fixes

    • Mark the id property as optional in the filter for the resolveId hook (#5896)

    Pull Requests

  • 4.38.0 - 2025-03-29

    4.38.0

    2025-03-29

    Features

    • Support .filter option in resolveId, load and transform hooks (#5882)

    Pull Requests

  • 4.37.0 - 2025-03-23

    4.37.0

    2025-03-23

    Features

    • Support Musl Linux on Riscv64 architectures (#5726)
    • Handles class decorators placed before the export keyword (#5871)

    Bug Fixes

    • Log Rust panic messages to the console when using the WASM build (#5875)

    Pull Requests

  • 4.36.0 - 2025-03-17

    4.36.0

    2025-03-17

    Features

    • Extend renderDynamicImport hook to provide information about static dependencies of the imported module (#5870)
    • Export several additional types used by Vite (#5879)

    Bug Fixes

    • Do not merge chunks if that would create a top-level await cycle between chunks (#5843)

    Pull Requests

  • 4.35.0 - 2025-03-08

    4.35.0

    2025-03-08

    Features

    • Pass build errors to the closeBundle hook (#5867)

    Pull Requests

  • 4.34.9 - 2025-03-01

    4.34.9

    2025-03-01

    Bug Fixes

    • Support JSX modes in WASM (#5866)
    • Allow the CustomPluginOptions to be extended (#5850)

    Pull Requests

  • 4.34.8 - 2025-02-17

    4.34.8

    2025-02-17

    Bug Fixes

    • Do not make assumptions about the value of nested paths in logical expressions if the expression cannot be simplified (#5846)

    Pull Requests

    • #5846: return UnknownValue if the usedbranch is unkown and the path is not empty (@ TrickyPi)
  • 4.34.7 - 2025-02-14
  • 4.34.6 - 2025-02-07
  • 4.34.5 - 2025-02-07
  • 4.34.4 - 2025-02-05
  • 4.34.3 - 2025-02-05
  • 4.34.2 - 2025-02-04
  • 4.34.1 - 2025-02-03
  • 4.34.0 - 2025-02-01
  • 4.33.0 - 2025-02-01
  • 4.33.0-0 - 2025-01-28
  • 4.32.1 - 2025-01-28
  • 4.32.0 - 2025-01-24
  • 4.31.0 - 2025-01-19
  • 4.31.0-0 - 2025-01-14
  • 4.30.1 - 2025-01-07
  • 4.30.0 - 2025-01-06
  • 4.30.0-1 - 2024-12-30
  • 4.30.0-0 - 2024-12-21
  • 4.29.2 - 2025-01-05
  • 4.29.1 - 2024-12-21
  • 4.29.0 - 2024-12-20
  • 4.29.0-2 - 2024-12-20
  • 4.29.0-1 - 2024-12-19
  • 4.29.0-0 - 2024-12-16
  • 4.28.1 - 2024-12-06
  • 4.28.0 - 2024-11-30
  • 4.27.4 - 2024-11-23
  • 4.27.3 - 2024-11-18
  • 4.27.2 - 2024-11-15
  • 4.27.1 - 2024-11-15
  • 4.27.1-1 - 2024-11-15
  • 4.27.1-0 - 2024-11-15
  • 4.27.0 - 2024-11-15
  • 4.27.0-1 - 2024-11-14
  • 4.27.0-0 - 2024-11-13
  • 4.26.0 - 2024-11-13
  • 4.25.0 - 2024-11-09
  • 4.25.0-0 - 2024-10-29
  • 4.24.4 - 2024-11-04
  • 4.24.3 - 2024-10-29
  • 4.24.2 - 2024-10-27
  • 4.24.1 - 2024-10-27
  • 4.24.0 - 2024-10-02
  • 4.23.0 - 2024-10-01
  • 4.22.5 - 2024-09-27
  • 4.22.4 - 2024-09-21
from rollup GitHub release notes

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.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

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:

Summary by Sourcery

Upgrade rollup from v4.22.4 to v4.40.2 in the lint-md tooling to incorporate upstream fixes and address a high-severity ReDoS vulnerability.

Bug Fixes:

  • Fix Regular Expression Denial of Service (ReDoS) vulnerability in cross-spawn via rollup upgrade

Build:

  • Bump rollup dependency to v4.40.2 in tools/lint-md package

Snyk has created this PR to upgrade rollup from 4.22.4 to 4.40.2.

See this package in npm:
rollup

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/cff36355-d877-492a-a8fd-40687822fe66?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented May 31, 2025

Reviewer's Guide

This PR updates the Rollup dependency used by the markdown linter tool from v4.22.4 to v4.40.2 to address a known ReDoS vulnerability and bring the package in line with the latest stable release.

Sequence Diagram for Snyk Automated Dependency Upgrade

sequenceDiagram
    actor SnykBot
    participant GitHubRepo as "Project Repository"
    actor Developer

    SnykBot->>GitHubRepo: Scan tools/lint-md for vulnerabilities
    activate SnykBot
    activate GitHubRepo
    GitHubRepo-->>SnykBot: Report [email protected] (vulnerable: SNYK-JS-CROSSSPAWN-8303230)
    deactivate GitHubRepo
    SnykBot->>GitHubRepo: Create Pull Request to upgrade rollup to 4.40.2
    activate GitHubRepo
    deactivate SnykBot
    GitHubRepo->>Developer: Notify about new PR
    activate Developer
    Developer->>GitHubRepo: Review PR
    Developer->>GitHubRepo: Merge PR
    deactivate Developer
    deactivate GitHubRepo
Loading

File-Level Changes

Change Details Files
Bump Rollup version in lint-md tool
  • Updated devDependency rollup from ^4.22.4 to ^4.40.2
  • Regenerated lockfile or ensure lockfile consistency
tools/lint-md/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

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.

2 participants