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): update dependency vite to v2.9.9 #22

Merged
merged 1 commit into from
May 31, 2022
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 29, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vite 2.8.6 -> 2.9.9 age adoption passing confidence

Release Notes

vitejs/vite

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
Features

2.8.4 (2022-02-18)

Bug Fixes

Configuration

📅 Schedule: 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.

@vercel
Copy link

vercel bot commented Apr 29, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
vue3-marquee ✅ Ready (Inspect) Visit Preview May 31, 2022 at 10:21AM (UTC)

@renovate renovate bot force-pushed the renovate/vite-2.x branch from c0811e6 to 4784a8c Compare May 2, 2022 17:15
@renovate renovate bot changed the title Update dependency vite to v2.9.6 Update dependency vite to v2.9.7 May 2, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from 4784a8c to b1bfac4 Compare May 4, 2022 18:04
@renovate renovate bot changed the title Update dependency vite to v2.9.7 Update dependency vite to v2.9.8 May 4, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from b1bfac4 to 8192375 Compare May 11, 2022 12:12
@renovate renovate bot changed the title Update dependency vite to v2.9.8 Update dependency vite to v2.9.9 May 11, 2022
@renovate renovate bot changed the title Update dependency vite to v2.9.9 chore(deps): update dependency vite to v2.9.9 May 31, 2022
@renovate renovate bot force-pushed the renovate/vite-2.x branch from 8192375 to c1ac450 Compare May 31, 2022 09:32
@renovate renovate bot force-pushed the renovate/vite-2.x branch from c1ac450 to af8ad6f Compare May 31, 2022 10:19
@renovate renovate bot force-pushed the renovate/vite-2.x branch from af8ad6f to b6bfdca Compare May 31, 2022 10:21
@renovate renovate bot force-pushed the renovate/vite-2.x branch from b6bfdca to 444d1d4 Compare May 31, 2022 10:56
@vercel
Copy link

vercel bot commented May 31, 2022

Deployment failed with the following error:

Resource is limited - try again in 3 hours (more than 100, code: "api-deployments-free-per-day").

@renovate renovate bot force-pushed the renovate/vite-2.x branch from 444d1d4 to 3510ca3 Compare May 31, 2022 17:10
@vercel
Copy link

vercel bot commented May 31, 2022

Deployment failed with the following error:

Resource is limited - try again in 21 minutes (more than 100, code: "api-deployments-free-per-day").

@renovate renovate bot force-pushed the renovate/vite-2.x branch from 3510ca3 to 1705f71 Compare May 31, 2022 17:11
@megasanjay megasanjay merged commit 47d68fa into main May 31, 2022
@renovate renovate bot deleted the renovate/vite-2.x branch May 31, 2022 23:29
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.

2 participants