Skip to content

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Oct 25, 2024

Bumps vite from 5.2.11 to 5.4.10.

Release notes

Sourced from vite's releases.

v5.4.10

Please refer to CHANGELOG.md for details.

v5.4.9

Please refer to CHANGELOG.md for details.

v5.4.8

Please refer to CHANGELOG.md for details.

v5.4.7

Please refer to CHANGELOG.md for details.

v5.4.6

Please refer to CHANGELOG.md for details.

v5.4.5

Please refer to CHANGELOG.md for details.

v5.4.4

Please refer to CHANGELOG.md for details.

v5.4.3

Please refer to CHANGELOG.md for details.

plugin-legacy@5.4.2

Please refer to CHANGELOG.md for details.

v5.4.2

Please refer to CHANGELOG.md for details.

plugin-legacy@5.4.1

Please refer to CHANGELOG.md for details.

v5.4.1

Please refer to CHANGELOG.md for details.

plugin-legacy@5.4.0

Please refer to CHANGELOG.md for details.

create-vite@5.4.0

Please refer to CHANGELOG.md for details.

v5.4.0

Please refer to CHANGELOG.md for details.

v5.4.0-beta.1

Please refer to CHANGELOG.md for details.

v5.4.0-beta.0

Please refer to CHANGELOG.md for details.

... (truncated)

Changelog

Sourced from vite's changelog.

5.4.10 (2024-10-23)

  • fix: backport #18367,augment hash for CSS files to prevent chromium erroring by loading previous fil (7d1a3bc), closes #18367 #18412

5.4.9 (2024-10-14)

5.4.8 (2024-09-25)

5.4.7 (2024-09-20)

5.4.6 (2024-09-16)

5.4.5 (2024-09-13)

5.4.4 (2024-09-11)

... (truncated)

Commits

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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Summary by Sourcery

Upgrade Vite from version 5.2.11 to 5.4.10, addressing multiple bug fixes and improvements. Update pnpm-lock.yaml to reflect the changes. Fix various issues related to CSS handling, SSR, and HMR. Update documentation and perform maintenance tasks like updating URLs and license information.

Bug Fixes:

  • Fix augment hash for CSS files to prevent Chromium from erroring by loading previous files.
  • Bump launch-editor-middleware to v2.9.1 to address related issues.
  • Fix CSS dependency URL resolution with custom root in lightningcss.
  • Ensure only IDs starting with 'data:' are matched in data-uri.
  • Bump tsconfck to resolve dependency issues.
  • Prevent HMR from rewriting imports for direct CSS soft invalidation.
  • Fix SSR source map remapping with multiple sources.
  • Fix missing source file warning with Sass modern API custom importer.
  • Ensure Sass compiler is initialized only once.
  • Treat config file as ESM in Deno.
  • Avoid DOM Clobbering gadget in getRelativeUrlFromDocument.
  • Fix fs raw query handling.
  • Ensure req.url matches moduleByEtag URL to avoid incorrect 304 responses.
  • Allow scanning exports from script module in Svelte.

Build:

  • Update pnpm-lock.yaml to reflect the upgrade of Vite from version 5.2.11 to 5.4.10.

Documentation:

  • Update homepage documentation.

Chores:

  • Update all URL references from vitejs.dev to vite.dev.
  • Update license copyright information.

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.11 to 5.4.10.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.10/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.10/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 25, 2024
@sourcery-ai
Copy link

sourcery-ai bot commented Oct 25, 2024

Reviewer's Guide by Sourcery

This pull request updates the vite dependency from version 5.2.11 to 5.4.10. The update includes several bug fixes, dependency updates, and minor improvements to Vite's functionality.

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

File-Level Changes

Change Details Files
Update Vite to version 5.4.10
  • Fix CSS file hash augmentation to prevent Chromium errors
  • Fix LightningCSS dependency URL resolution with custom root
  • Fix HMR import rewriting for direct CSS soft invalidation
  • Fix data URI matching to only match IDs starting with 'data:'
  • Update launch-editor-middleware and tsconfck dependencies
  • Update website URLs from vitejs.dev to vite.dev
pnpm-lock.yaml

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.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a 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. You can also use
    this command to specify where the summary should be inserted.

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. Here's why:

  • It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!
  • All of the files are larger than we can process. We're working on it!

micromark@4.0.0:
resolution: {integrity: sha512-o/sd0nMof8kYff+TqcDx3VSrgBTcZpSvYcAHIfHhv5VAuNmisCxjhx6YmxS8PFEpb9z5WKWKPdzf0jM23ro3RQ==}

micromatch@4.0.7:

Choose a reason for hiding this comment

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

⚠️ Codacy found a medium Security issue: Insecure dependency micromatch@4.0.7 (CVE-2024-4067: micromatch: vulnerable to Regular Expression Denial of Service) (update to 4.0.8)

The issue identified by the Trivy linter is a security vulnerability in the micromatch package version 4.0.7. The vulnerability, identified as CVE-2024-4067, is related to a Regular Expression Denial of Service (ReDoS). This type of vulnerability occurs when an attacker can exploit the way regular expressions are processed, potentially causing the application to become unresponsive or slow due to excessive resource consumption.

To fix this issue, the micromatch package should be updated to version 4.0.8, where the vulnerability has been addressed. Here is the code suggestion for updating the package:

Suggested change
micromatch@4.0.7:
micromatch@4.0.8:

This comment was generated by an experimental AI tool.

resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}
engines: {node: '>=16 || 14 >=14.18'}

path-to-regexp@6.2.2:

Choose a reason for hiding this comment

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

Codacy found a critical Security issue: Insecure dependency path-to-regexp@6.2.2 (CVE-2024-45296: path-to-regexp: Backtracking regular expressions cause ReDoS) (update to 6.3.0)

The issue identified by the Trivy linter is a security vulnerability in the path-to-regexp package, specifically version 6.2.2. This vulnerability is related to a Regular Expression Denial of Service (ReDoS) attack, which occurs when an attacker can provide input that causes a regular expression to consume excessive amounts of processing time. This can lead to a denial of service as the application becomes unresponsive. The CVE (Common Vulnerabilities and Exposures) ID for this issue is CVE-2024-45296. The recommended fix is to update the path-to-regexp package to version 6.3.0, which addresses this vulnerability.

To fix the issue, you should update the path-to-regexp version in your dependencies. Here is the single line change suggestion:

Suggested change
path-to-regexp@6.2.2:
path-to-regexp@6.3.0:

This comment was generated by an experimental AI tool.

domutils@3.1.0:
resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==}

dset@3.1.3:

Choose a reason for hiding this comment

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

Codacy found a critical Security issue: Insecure dependency dset@3.1.3 (CVE-2024-21529: dset: Prototype Pollution) (update to 3.1.4)

The issue identified by the Trivy linter is a security vulnerability known as Prototype Pollution in the dset package, specifically in version 3.1.3. Prototype Pollution is a type of vulnerability that allows an attacker to manipulate the prototype of a base object, which can lead to unexpected behaviors, security issues, or application crashes. In this case, the vulnerability is tracked as CVE-2024-21529. To mitigate this vulnerability, it is recommended to update the dset package to version 3.1.4, where the issue has been addressed.

To fix the issue, update the version of dset from 3.1.3 to 3.1.4 in your code. Here's the single line change you need to make:

Suggested change
dset@3.1.3:
dset@3.1.4:

This comment was generated by an experimental AI tool.

'@types/cheerio@0.22.35':
resolution: {integrity: sha512-yD57BchKRvTV+JD53UZ6PD8KWY5g5rvvMLRnZR3EQBCZXiDT/HR+pKpMzFGlWNhFrXlo7VPZXtKvIEwZkAWOIA==}

'@types/cookie@0.6.0':

Choose a reason for hiding this comment

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

ℹ️ Codacy found a minor Security issue: Insecure dependency cookie@0.6.0 (CVE-2024-47764: cookie: cookie accepts cookie name, path, and domain with out of bounds characters) (update to 0.7.0)

The issue identified by the Trivy linter is related to a security vulnerability in the cookie library, specifically version 0.6.0. The vulnerability, identified as CVE-2024-47764, allows the cookie library to accept cookie name, path, and domain with out-of-bounds characters. This can potentially lead to security risks such as improper handling of cookies, which might be exploited by an attacker to inject malicious cookies or bypass security controls.

To fix this issue, you should update the cookie library to a version where the vulnerability is patched. According to the provided issue description, updating to version 0.7.0 resolves the problem. Here's the code suggestion to update the dependency:

Suggested change
'@types/cookie@0.6.0':
'@types/cookie@0.7.0':

This comment was generated by an experimental AI tool.

@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Jan 22, 2025

Superseded by #10.

@dependabot dependabot bot closed this Jan 22, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/vite-5.4.10 branch January 22, 2025 00:38
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