Skip to content

Conversation

@dependabot-preview
Copy link
Contributor

Bumps vite from 2.0.0-beta.61 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)

... (truncated)

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.

If all status checks pass Dependabot will automatically merge this pull request.


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 use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label May 12, 2021
@dependabot-preview
Copy link
Contributor Author

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

@dependabot-preview
Copy link
Contributor Author

Superseded by #261.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/vite-2.3.0 branch May 13, 2021 06: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.

1 participant