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 3.2.11 to 4.5.6 in /web/admin #165

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

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps vite from 3.2.11 to 4.5.6.

Release notes

Sourced from vite's releases.

v4.5.6

This version contains a breaking change due to security fixes. See GHSA-vg6x-rcgg-rjx6 for more details.

Please refer to CHANGELOG.md for details.

v4.5.5

Please refer to CHANGELOG.md for details.

v4.5.4

Please refer to CHANGELOG.md for details.

Changelog

Sourced from vite's changelog.

4.5.6 (2025-01-20)

  • fix!: check host header to prevent DNS rebinding attacks and introduce server.allowedHosts (ef1049d)
  • fix!: default server.cors: false to disallow fetching from untrusted origins (07b36d5)
  • fix: verify token for HMR WebSocket connection (c065a77)

4.5.5 (2024-09-16)

4.5.4 (2024-09-16)

4.5.3 (2024-03-24)

4.5.2 (2024-01-19)

4.5.1 (2023-12-04)

4.5.0 (2023-10-18)

4.4.11 (2023-10-05)

  • revert: "fix: use string manipulation instead of regex to inject esbuild helpers (54e1275), closes #14094

... (truncated)

Commits
  • 9e460f5 release: v4.5.6
  • ef1049d fix!: check host header to prevent DNS rebinding attacks and introduce `serve...
  • c065a77 fix: verify token for HMR WebSocket connection
  • 07b36d5 fix!: default server.cors: false to disallow fetching from untrusted origins
  • f1d8845 release: v4.5.5
  • 2466c08 release: v4.5.4
  • e812716 fix: avoid DOM Clobbering gadget in getRelativeUrlFromDocument (#18115)
  • b901438 fix: backport #18112, fs raw query
  • aac695e release: v4.5.3
  • 96a7f3a fix: fs.deny with globs with directories (#16250)
  • 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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Summary by Sourcery

Updates the vite dependency to version 4.5.6, which includes security fixes and new features.

Bug Fixes:

  • Addresses potential DNS rebinding attacks by checking the host header and introducing the server.allowedHosts configuration.
  • Defaults server.cors to false to prevent fetching from untrusted origins.
  • Verifies the token for HMR WebSocket connections.

Enhancements:

  • Adds support for .marko files scanning.
  • Backports ssr.resolve.conditions and ssr.resolve.externalConditions for SSR.

Chores:

  • Updates the vite dependency in the /web/admin directory from version 3.2.11 to 4.5.6.

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.2.11 to 4.5.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Feb 18, 2025
Copy link
Contributor

sourcery-ai bot commented Feb 18, 2025

Reviewer's Guide by Sourcery

This pull request updates the vite dependency from version 3.2.11 to 4.5.6 in the /web/admin directory. This includes updating the dependency in package.json and pnpm-lock.yaml, as well as updating related dependencies like @vitejs/plugin-vue, @vitejs/plugin-vue-jsx, and vite-plugin-eslint in pnpm-lock.yaml.

Sequence diagram for HMR WebSocket connection

sequenceDiagram
    participant Browser
    participant Vite Server

    Browser->>Vite Server: Establish WebSocket connection
    activate Vite Server
    Vite Server->>Vite Server: Verify token
    alt Token is valid
        Vite Server-->>Browser: HMR updates
    else Token is invalid
        Vite Server-->>Browser: Close connection
    end
    deactivate Vite Server
Loading

Updated class diagram for Vite configuration

classDiagram
    class ViteConfig {
        +server: ServerOptions
        +build: BuildOptions
        +plugins: Plugin[]
        +optimizeDeps: OptimizeDeps
    }

    class ServerOptions {
        +host: string
        +port: number
        +cors: boolean
        +allowedHosts: string[]
    }

    note for ServerOptions "cors defaults to false in Vite 4.5.6 for security"
    note for ServerOptions "allowedHosts introduced in Vite 4.5.6 to prevent DNS rebinding attacks"

    class BuildOptions {
        +target: string
        +outDir: string
        +minify: boolean
    }

    class Plugin {
        +name: string
        +apply: string
        +config: (config: ViteConfig, env: ConfigEnv) => ViteConfig | null | void
    }

    class OptimizeDeps {
        +entries: string[]
    }

    ViteConfig -- ServerOptions : has
    ViteConfig -- BuildOptions : has
    ViteConfig -- Plugin : has
    ViteConfig -- OptimizeDeps : has
Loading

File-Level Changes

Change Details Files
The version of the vite dependency was bumped from 3.2.11 to 4.5.6.
  • Updated the vite dependency version in package.json.
  • Updated the vite dependency version in pnpm-lock.yaml.
  • Updated the @vitejs/plugin-vue dependency version in pnpm-lock.yaml.
  • Updated the @vitejs/plugin-vue-jsx dependency version in pnpm-lock.yaml.
  • Updated the vite-plugin-eslint dependency version in pnpm-lock.yaml.
  • Updated esbuild and its optional dependencies in pnpm-lock.yaml.
web/admin/pnpm-lock.yaml
web/admin/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!
  • 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
Contributor

@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!

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 javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants