Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 12, 2021

Bumps vite from 2.2.4 to 2.3.0.

Changelog

Sourced from vite's changelog.

2.3.0 (2021-05-11)

BREAKING CHANGES

  • Browser default targets changed (PR #2976)
    • Default browser support range has changed. The minimum requirement is now native dynamic import support. Most notably, this means support for legacy Microsoft Edge (16-18) has been dropped.
    • vite/dynamic-import-polyfill removed and no longer required in custom entries

Why are there breaking changes in a minor?

  • Limited impact: The affected target browsers are ones that natively support ES6 modules (92.83% of global usage) but do not support native dynamic imports (92.34% of global usage). So this is a small range affecting only 0.49% of global usage.

    This number should continue to decrease in the future as most modern browsers are evergreen. You are also not affected if you are already targeting legacy browsers using @vitejs/plugin-legacy.

  • Easy migration: if you do intend to support browsers that fall into this category, you can use dynamic-import-polyfill.

    To make the polyfill work, you will also need to use a plugin with renderDynamicImport to change the import calls to __import__. You can follow the installation guide in this example.

  • Required for bug fixes: This change is required for upgrading esbuild from v0.9 to v0.11, which includes a lot of bug fixes and improvements. And it also allows us to remove the complexity of the dynamic import polyfill.

Security Fixes

  • Dev server only listens to localhost by default now (PR #2977)
    • Pass --host 0.0.0.0 to change back to the previous behavior.
  • Dev server only serves files under workspace root by defualt (PR #2850, #3321)
    • Accessing files outside of workspace root will result in a 403 response.
    • Vite will try to search up for workspace root defined in package.json or pnpm-workspace.yaml
    • To set the workspace root explicitly, see configurations

Bug Fixes

Features

  • add optimizeDeps.esbuildOptions (#2991) (77a882a)
  • set publicDir to false to disable copied static assets to build dist dir (#3152) (f4ab90a)
  • webworker ssr target (#3151) (1c59ef1)
Commits
Maintainer changes

This version was pushed to npm by antfu, a new releaser for vite since your current version.


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 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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript labels May 12, 2021
@Demivan
Copy link
Member

Demivan commented May 12, 2021

@dependabot squash and merge

@dependabot dependabot bot merged commit 6c3f221 into develop May 12, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/examples/vite-2.3.0 branch May 12, 2021 14:11
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

Development

Successfully merging this pull request may close these issues.

2 participants