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

chore(deps-dev): bump vite from 4.5.0 to 5.0.4 #26

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 4, 2023

Bumps vite from 4.5.0 to 5.0.4.

Release notes

Sourced from vite's releases.

create-vite@5.0.0

Please refer to CHANGELOG.md for details.

create-vite@5.0.0-beta.1

Please refer to CHANGELOG.md for details.

create-vite@5.0.0-beta.0

Please refer to CHANGELOG.md for details.

Changelog

Sourced from vite's changelog.

5.0.4 (2023-11-29)

5.0.3 (2023-11-28)

5.0.2 (2023-11-21)

5.0.1 (2023-11-21)

5.0.0 (2023-11-16)

Vite 5 is out! Read the announcement blog post here

Announcing Vite 5

Today, we mark another big milestone in Vite's path. The Vite team, contributors, and ecosystem partners, are excited to announce the release of Vite 5. Vite is now using Rollup 4, which already represents a big boost in build performance. And there are also new options to improve your dev server performance profile.

Vite 5 focuses on cleaning up the API (removing deprecated features) and streamlines several features closing long-standing issues, for example switching define to use proper AST replacements instead of regexes. We also continue to take steps to future-proof Vite (Node.js 18+ is now required, and the CJS Node API has been deprecated).

... (truncated)

Commits
  • 73ef074 release: v5.0.4
  • d2a2493 fix: revert "fix: js fallback sourcemap content should be using original cont...
  • 4a111aa fix(resolve): respect order of browser in mainFields when resolving (#15137)
  • 9474c4b feat: preserve vite.middlewares connect instance after restarts (#15166)
  • ec401da fix(define): allow define process.env (#15173)
  • 642f9bc refactor: align with Promise.withResolvers() (#15171)
  • 67ac572 fix: bindCLIShortcuts to proper server (#15162)
  • 2649f40 release: v5.0.3
  • 811e392 fix(css): use non-nested chunk name if facadeModule is not CSS file (#15155)
  • cb3243c fix(dev): bind plugin context functions (#14569)
  • Additional commits viewable 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)

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

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

stackblitz bot commented Dec 4, 2023

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

Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Issue Package Version Note Source
Dynamic require rollup 4.6.1
Environment variable access rollup 4.6.1
Filesystem access rollup 4.6.1
Mixed license rollup 4.6.1
Uses eval rollup 4.6.1

Next steps

What is dynamic require?

Dynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.

Packages should avoid dynamic imports when possible. Audit the use of dynamic require to ensure it is not executing malicious or vulnerable code.

What is environment variable access?

Package accesses environment variables, which may be a sign of credential stuffing or data theft.

Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

What is filesystem access?

Accesses the file system, and could potentially read sensitive data.

If a package must read the file system, clarify what it will read and ensure it reads only what it claims to. If appropriate, packages can leave file system access to consumers and operate on data passed to it instead.

What is a mixed license?

(Experimental) Package contains multiple licenses.

A new version of the package should be published that includes a single license. Consumers may seek clarification from the package author. Ensure that the license details are consistent across the LICENSE file, package.json license field and license details mentioned in the README.

What is eval?

Package uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.

Avoid packages that use eval, since this could potentially execute any code.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore rollup@4.6.1

Copy link

Pull Request Review

Hey there! 👋 Here's a summary of the previous tasks and their results. Let's get started!

Changes

  1. Updated vite dependency from version 4.5.0 to 5.0.4. 🚀

Suggestions

  1. Line 39 in package.json: Consider providing a reason for the version update of vite. 🤔
  2. Line 39 in package.json: Verify if the updated version of vite is compatible with other dependencies. 🧐

Bugs

  1. File pnpm-lock.yaml: Check the integrity of the lock file as it seems to have an invalid entry at line 2. 🐛

Improvements

  1. File package.json: Consider refactoring the dependency list by grouping related dependencies together for better readability. For example:
"dependencies": {
  "react": "^17.0.2",
  "react-dom": "^17.0.2",
  "vite": "^5.0.4",
  "typescript": "^5.2.2",
  "unplugin-auto-import": "^0.16.7",
  "tsx": "^4.1.2",
  "vitest": "^0.34.6"
}

Rating

Overall code rating: 7.5/10. 🌟
Criteria: readability, performance, security.

Explanation: The code has been updated to use the latest version of vite, but there are some areas that could be improved for better readability and maintainability. The lock file also needs to be checked for integrity.

That's it for the summary! Feel free to make any necessary changes based on the feedback provided. Good luck with your pull request! 🎉

Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 4, 2023

Looks like vite is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Dec 4, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/vite-5.0.4 branch December 4, 2023 18:46
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