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

Update dependency vite to v2.9.12 #8

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 30, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vite 2.7.9 -> 2.9.12 age adoption passing confidence

Release Notes

vitejs/vite

v2.9.12

Compare Source

v2.9.11

Compare Source

v2.9.10

Compare Source

v2.9.9

Compare Source

v2.9.8

Compare Source

v2.9.7

Compare Source

v2.9.6

Compare Source

v2.9.5

Compare Source

v2.9.4

Compare Source

v2.9.3

Compare Source

v2.9.2

Compare Source

v2.9.1

Compare Source

v2.9.0

Compare Source

Faster Cold Start

Before 2.9, the first time dev was run on a project Vite needed to perform a scan phase to discover dependencies and then pre-bundle them before starting the server. In 2.9 both scanning #​7379 and pre-bundling #​6758 of dependencies are now non-blocking, so the server starts right away during cold start. We also now allow requests to flow through the pipeline improving initial cold start load speed and increasing the chances of discovering new missing dependencies when re-processing and letting Vite populate the module graph and the browser to process files. In many cases, there is also no need to full-reload the page when new dependencies are discovered.

CSS Sourcemap support during dev (experimental)

Vite now supports CSS sourcemaps #​7173. This feature is still experimental, and it is disabled by default to avoid incurring a performance penalty for users that don't need it. To enable it, set css.devSourcemap to true.

Avoid splitting vendor chunks by default

Vite's default chunking strategy was a good fit for most SPAs, but it wasn't ideal in some other use cases. Vite doesn't have enough context to make the best decision here, so in Vite 2.9 the previous chunking strategy is now opt-in #​6534 and Vite will no longer split vendor libs in a separate chunk.

Web Workers enhancements

Web Workers now supports source map generation (see #​5417). The implementation is also now more robust, fixing several issues encountered in previous versions (#​6599).

Raw Glob Imports

Glob imports support for the raw modifier syntax has changed to using { as: 'raw' }, which works in the same way as the ?raw suffix in regular imports:

const examples = import.meta.globEager('./examples/*.html', { as: 'raw' })

The { assert: { type: 'raw' }} syntax introduced in v2.8 has been deprecated. See #​7017 for more information.

envDir changes

The envDir now correctly loads .env files in the specified directory only (defaults to root). Previously, it would load files above the directory, which imposed security issues. If you had relied on the previous behaviour, make sure you move your .env files to the correct directory, or configure the envDir option.

New tools for Plugin and Framework Authors
Client Server Communication API

Vite now provides utilities for plugins to help handle the communication with clients connected to Vite's server #​7437. Reusing the open WebSocket connection between the server and clients several use cases can be simplified (vite-plugin-inspect, SliDev, and many others). Check out the Client Server Communication docs for more information.

// Send a message from the client to the server
if (import.meta.hot) {
  import.meta.hot.send('my:from-client', { msg: 'Hey!' })
}
// And listen to client messages in a plugin
  configureServer(server) {
    server.ws.on('my:from-client', (data, client) => {
      console.log('Message from client:', data.msg) // Hey!
      // ...
    })
  }
importedCss and importedAssets to RenderedChunk type

Replace the internal chunkToEmittedCssFileMap and chunkToEmittedAssetsMap variables with public properties added by Vite to RenderedChunk objects in the renderChunk phase. These is useful for Vite-based frameworks that generate their own HTML. See #​6629.

Optimize Custom Extensions (experimental)

A new optimizeDeps.extensions: string[] option is available to enable pre-bundling of custom extensions. A respective esbuild plugin is required to handle that extension. e.g. ['.svelte', '.svelte.md']. See #​6801 for more information.

Bug Fixes
Features
Beta Changelogs
2.9.0-beta.11 (2022-03-29)

See 2.9.0-beta.11 changelog

2.9.0-beta.10 (2022-03-28)

See 2.9.0-beta.10 changelog

2.9.0-beta.9 (2022-03-26)

See 2.9.0-beta.9 changelog

2.9.0-beta.8 (2022-03-24)

See 2.9.0-beta.8 changelog

2.9.0-beta.7 (2022-03-23)

See 2.9.0-beta.7 changelog

2.9.0-beta.6 (2022-03-22)

See 2.9.0-beta.6 changelog

2.9.0-beta.5 (2022-03-22)

See 2.9.0-beta.5 changelog

2.9.0-beta.4 (2022-03-19)

See 2.9.0-beta.4 changelog

2.9.0-beta.3 (2022-03-16)

See 2.9.0-beta.3 changelog

2.9.0-beta.2 (2022-03-14)

See 2.9.0-beta.2 changelog

2.9.0-beta.1 (2022-03-14)

See 2.9.0-beta.1 changelog

2.9.0-beta.0 (2022-03-09)

See 2.9.0-beta.0 changelog

2.8.6 (2022-03-01)

Bug Fixes

2.8.5 (2022-02-28)

Bug Fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/vite-2.x branch from 594c542 to d81d87e Compare January 13, 2022 12:33
@renovate renovate bot changed the title Update dependency vite to v2.7.10 Update dependency vite to v2.7.11 Jan 13, 2022
@renovate renovate bot changed the title Update dependency vite to v2.7.11 Update dependency vite to v2.7.12 Jan 13, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from d81d87e to 9f1e72f Compare January 13, 2022 20:15
@renovate renovate bot changed the title Update dependency vite to v2.7.12 Update dependency vite to v2.7.13 Jan 18, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from 9f1e72f to b75c951 Compare January 18, 2022 21:59
@renovate renovate bot changed the title Update dependency vite to v2.7.13 Update dependency vite to v2.8.0 Feb 9, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch 2 times, most recently from 7faf10f to 4d78079 Compare February 11, 2022 13:42
@renovate renovate bot changed the title Update dependency vite to v2.8.0 Update dependency vite to v2.8.1 Feb 11, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from 4d78079 to e72f95e Compare February 14, 2022 11:25
@renovate renovate bot changed the title Update dependency vite to v2.8.1 Update dependency vite to v2.8.2 Feb 14, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from e72f95e to 9deaf2b Compare February 15, 2022 17:48
@renovate renovate bot changed the title Update dependency vite to v2.8.2 Update dependency vite to v2.8.3 Feb 15, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from 9deaf2b to bbcaa9a Compare February 18, 2022 08:45
@renovate renovate bot changed the title Update dependency vite to v2.8.3 Update dependency vite to v2.8.4 Feb 18, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from bbcaa9a to d0d2b13 Compare February 28, 2022 18:02
@renovate renovate bot changed the title Update dependency vite to v2.8.4 Update dependency vite to v2.8.5 Feb 28, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from d0d2b13 to b94a74f Compare March 7, 2022 15:03
@renovate renovate bot changed the title Update dependency vite to v2.8.5 Update dependency vite to v2.8.6 Mar 7, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from b94a74f to cb5e336 Compare April 25, 2022 00:40
@renovate renovate bot changed the title Update dependency vite to v2.8.6 Update dependency vite to v2.9.5 Apr 25, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from cb5e336 to 5911231 Compare May 15, 2022 18:32
@renovate renovate bot changed the title Update dependency vite to v2.9.5 Update dependency vite to v2.9.9 May 15, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from 5911231 to 0a373c6 Compare June 18, 2022 18:16
@renovate renovate bot changed the title Update dependency vite to v2.9.9 Update dependency vite to v2.9.12 Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants