dashboard
dashboard copied to clipboard
chore(deps): update dependency vite to v2.9.12
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| vite | 2.1.5 -> 2.9.12 |
Release Notes
vitejs/vite
v2.9.12
v2.9.11
- fix: respect server.headers in static middlewares (#8481) (ab7dc1c), closes #8481
- fix(dev): avoid FOUC when swapping out link tag (fix #7973) (#8495) (01fa807), closes #7973 #8495
v2.9.10
- feat: treat Astro file scripts as TS (#8151) (9fdd0a3), closes #8151
- feat: new hook
configurePreviewServer(#7658) (#8437) (7b972bc), closes #7658 #8437 - fix: remove empty chunk css imports when using esnext (#8345) (9fbc1a9), closes #8345
- fix: EPERM error on Windows when processing dependencies (#8235) (dfe4307), closes #8235
- fix(css): remove
?usedhack (fixes #6421, #8245) (#8278) (#8471) (8d7bac4), closes #6421 #8245 #8278 #8471 - chore(lint): sort for imports (#8113) (4bd1531), closes #8113
v2.9.9
- fix: add direct query to html-proxy css (fixes #8091) (#8094) (a24b5e3), closes #8091 #8094
- fix: graceful rename in windows (#8036) (84496f8), closes #8036
- fix: image-set with base64 images (fix #8028) (#8035) (992aee2), closes #8028 #8035
- fix: invalidate ssrError when HMR update occurs (#8052) (22fa882), closes #8052
- fix: use
strip-literalto strip string lterals (#8054) (b6fc3cd), closes #8054 - perf(lib): reduce backtrack when injecting esbuild helpers (#8110) (e5556ab), closes #8110
v2.9.8
- fix: inline js and css paths for virtual html (#7993) (d49e3fb), closes #7993
- fix: only handle merge ssr.noExternal (#8003) (642d65b), closes #8003
- fix: optimized processing folder renaming in win (fix #7939) (#8019) (e5fe1c6), closes #7939 #8019
- fix(css): do not clean id when passing to postcss (fix #7822) (#7827) (72f17f8), closes #7822 #7827
- fix(css): var in image-set (#7921) (e96b908), closes #7921
- fix(ssr): allow ssrTransform to parse hashbang (#8005) (6420ba0), closes #8005
- feat: import ts with .js in vue (#7998) (9974094), closes #7998
- chore: remove maybeVirtualHtmlSet (#8010) (e85164e), closes #8010
v2.9.7
- chore: update license (d58c030)
- chore(css): catch postcss config error (fix #2793) (#7934) (7f535ac), closes #2793 #7934
- chore(deps): update all non-major dependencies (#7949) (b877d30), closes #7949
- fix: inject esbuild helpers in IIFE and UMD wrappers (#7948) (f7d2d71), closes #7948
- fix: inline css hash (#7974) (f6ae60d), closes #7974
- fix: inline style hmr, transform style code inplace (#7869) (a30a548), closes #7869
- fix: use NODE_ENV in optimizer (#7673) (50672e4), closes #7673
- fix(css): clean comments before hoist at rules (#7924) (e48827f), closes #7924
- fix(css): dynamic import css in package fetches removed js (fixes #7955, #6823) (#7969) (025eebf), closes #7955 #6823 #7969
- fix(css): inline css module when ssr, minify issue (fix #5471) (#7807) (cf8a48a), closes #5471 #7807
- fix(css): sourcemap crash with postcss (#7982) (7f9f8f1), closes #7982
- fix(css): support postcss.config.ts (#7935) (274c10e), closes #7935
- fix(ssr): failed ssrLoadModule call throws same error (#7177) (891e7fc), closes #7177
- fix(worker): import.meta.* (#7706) (b092697), closes #7706
- docs:
server.originconfig trailing slash (fix #6622) (#7865) (5c1ee5a), closes #6622 #7865
v2.9.6
- fix:
applycondition skipped for nested plugins (#7741) (1f2ca53), closes #7741 - fix: clean string regexp (#7871) (ecc78bc), closes #7871
- fix: escape character in string regexp match (#7834) (1d468c8), closes #7834
- fix: HMR propagation of HTML changes (fix #7870) (#7895) (1f7855c), closes #7870 #7895
- fix: modulepreload polyfill only during build (fix #4786) (#7816) (709776f), closes #4786 #7816
- fix: new SharedWorker syntax (#7800) (474d5c2), closes #7800
- fix: node v18 support (#7812) (fc89057), closes #7812
- fix: preview jsdoc params (#7903) (e474381), closes #7903
- fix: replace import.meta.url correctly (#7792) (12d1194), closes #7792
- fix: set
isSelfAcceptingtofalsefor any asset not processed by importAnalysis (#7898) (0d2089c), closes #7898 - fix: spelling mistakes (#7883) (54728e3), closes #7883
- fix: ssr.noExternal with boolean values (#7813) (0b2d307), closes #7813
- fix: style use string instead of js import (#7786) (ba43c29), closes #7786
- fix: update sourcemap in importAnalysisBuild (#7825) (d7540c8), closes #7825
- fix(ssr): rewrite dynamic class method name (fix #7751) (#7757) (b89974a), closes #7751 #7757
- chore: code structure (#7790) (5f7fe00), closes #7790
- chore: fix worker sourcemap output style (#7805) (17f3be7), closes #7805
- chore(deps): update all non-major dependencies (#7780) (eba9d05), closes #7780
- chore(deps): update all non-major dependencies (#7847) (e29d1d9), closes #7847
- feat: enable optimizeDeps.esbuildOptions.loader (#6840) (af8ca60), closes #6840
v2.9.5
- fix: revert #7582, fix #7721 and #7736 (#7737) (fa86d69), closes #7721 #7736 #7737
- chore: format css minify esbuild error (#7731) (c445075), closes #7731
v2.9.4
v2.9.3
v2.9.2
- fix:
$ vite preview404 handling (#7665) (66b6dc5), closes #7665 - fix: build should also respect esbuild=false config (#7602) (2dc0e80), closes #7602
- fix: default value of assetsDir option (#7703) (83d32d9), closes #7703
- fix: detect env hmr (#7595) (212d454), closes #7595
- fix: EACCES permission denied due to resolve new paths default (#7612) (1dd019f), closes #7612
- fix: fix HMR propagation when imports not analyzed (#7561) (57e7914), closes #7561
- fix: nested comments and strings, new regexp utils (#7650) (93900f0), closes #7650
- fix: revert optimizeDeps false, keep optimizedDeps.disabled (#7715) (ba9a1ff), closes #7715
- fix: update watch mode (#7132) (9ed1672), closes #7132
- fix: update ws types (#7605) (b620587), closes #7605
- fix: use correct proxy config in preview (#7604) (cf59005), closes #7604
- fix(css): hoist charset (#7678) (29e622c), closes #7678
- fix(css): include inline css module in bundle (#7591) (45b9273), closes #7591
- fix(deps): update all non-major dependencies (#7668) (485263c), closes #7668
- fix(less): handles rewriting relative paths passed Less's
data-urifunction. (#7400) (08e39b7), closes #7400 - fix(resolver): skip known ESM entries when resolving a
requirecall (#7582) (5d6ea8e), closes #7582 - fix(ssr): properly transform export default with expressions (#7705) (d6830e3), closes #7705
- feat: clean string module lex string template (#7667) (dfce283), closes #7667
- feat: explicit the word boundary (#6876) (7ddbf96), closes #6876
- feat: optimizeDeps.disabled (#7646) (48e038c), closes #7646
- chore: fix term cases (#7553) (c296130), closes #7553
- chore: revert removed line in #7698 (7e6a2c8), closes #7698
- chore: type unknown env as any (#7702) (23fdef1), closes #7702
- chore(deps): update all non-major dependencies (#7603) (fc51a15), closes #7603
- perf(css): hoist at rules with regex (#7691) (8858180), closes #7691
- refactor: esbuild handles
targetanduseDefineForClassFields(#7698) (0c928aa), closes #7698 - docs: update release notes (#7563) (a74bd7b), closes #7563
v2.9.1
v2.9.0
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
- fix: build path error on Windows (#7383) (e3c7c7a), closes #7383
- fix: import url worker two times (#7468) (f05a813), closes #7468
- fix: import with query with exports/browser field (#7098) (9ce6732), closes #7098
- fix: make @fs URLs work with special characters (#7510) (2b7dad1), closes #7510
- fix: tailwind css sourcemap warning (#7480) (90df0bb), closes #7480
- fix: worker match only run in js (#7500) (9481c7d), closes #7500
- fix: Correctly process urls when they are rewritten to contain space (#7452) (9ee2cf6), closes #7452
- fix: custom event payload type (#7498) (28b0660), closes #7498
- fix: handle relative path glob raw import, fix #7307 (#7371) (7f8dc58), closes #7307 #7371
- fix: import.meta.url in worker (#7464) (8ac4b12), closes #7464
- fix: optimizeDeps.entries default ignore paths (#7469) (4c95e99), closes #7469
- fix: errors in worker handling (#7236) (77dc1a1), closes #7236
- fix: consider undefined port when checking port (#7318) (c7fc7c3), closes #7318
- fix: inline style css sourcemap (#7434) (47668b5), closes #7434
- fix: sourcemap missing source files warning with cached vue (#7442) (a2ce20d), closes #7442
- fix: update tsconfck to 1.2.1 (#7424) (a90b03b), closes #7424
- fix: virtual html sourcemap warning (#7440) (476786b), closes #7440
- fix(less): empty less file error (#7412) (0535c70), closes #7412
- fix(resolve): skip
modulefield when the importer is arequirecall (#7438) (fe4c1ed), closes #7438 - fix: avoid mangling code from incorrect magic-string usage (#7397) (68d76c9), closes #7397
- fix(config): server restart on config dependencies changed on windows (#7366) (c43467a), closes #7366
- fix(deps): update all non-major dependencies (#7392) (b63fc3b), closes #7392
- fix: add version to optimized chunks, fix #7323 (#7350) (1be1db6), closes #7323 #7350
- fix: browser cache of newly discovered deps (#7378) (392a0de), closes #7378
- fix: do not warn (about not being able to bundle non module scripts) when src is an external url (#7 (0646fe8), closes #7380
- fix: overwrite deps info browserHash only on commit (#7359) (1e9615d), closes #7359
- fix: delayed full page reload (#7347) (fa0820a), closes #7347
- fix: early discovery of missing deps, fix #7333 (#7346) (7d2f37c), closes #7333 #7346
- fix: unhandled exception on eager transformRequest (#7345) (c3260a4), closes #7345
- fix: update to esbuild 0.14.27, fix #6994 (#7320) (65aaeee), closes #6994 #7320
- fix:
ssrExternalshould not skip nested dependencies (#7154) (f8f934a), closes #7154 - fix: dep with dynamic import wrong error log (#7313) (769f535), closes #7313
- fix: avoid caching transform result of invalidated module (#7254) (2d7ba72), closes #7254
- fix: dont replace define in json (#7294) (fc5c937), closes #7294
- fix: main browserHash after stable optimization rerun (#7284) (98eefa8), closes #7284
- fix: needs es interop check for newly discovered deps (#7243) (ba3047d), closes #7243
- fix: pending requests after module invalidation (#7283) (a1044d7), closes #7283
- fix: use browserHash for imports from node_modules (#7278) (161f8ea), closes #7278
- fix: use hmr port if specified (#7282) (3ee04c0), closes #7282
- fix: use relative paths in _metadata.json (#7299) (8b945f5), closes #7299
- fix(asset): allow non-existent url (#7306) (6bc45a2), closes #7306
- fix(hmr): hmr style tag no support in html (#7262) (fae120a), closes #7262
- fix:
import.meta.urlshould not throw (#7219) (5de3a98), closes #7219 - fix: allow
localhostas a valid hostname (#7092) (4194cce), closes #7092 - fix: build optimize deps metada location (#7214) (dc46adf), closes #7214
- fix: define plugin not ignore file names (#6340) (7215a03), closes #6340
- fix: deprecate
{ assert: { type: raw }}in favor of{ as: raw }(fix #7017) (#7215) (87ecce5), closes #7017 #7215 - fix: execute classic worker in dev mode (#7099) (3c0a609), closes #7099
- fix: handle files with multiple comments (#7202) (3f5b645), closes #7202
- fix: honor the host param when creating a websocket server (#5617) (882c8a8), closes #5617
- fix: import css in less/scss (fix 3293) (#7147) (9b51a3a), closes #7147
- fix: optimizeDeps.include missing in known imports fallback (#7218) (6c08c86), closes #7218
- fix: prevent loading env outside of root (#6995) (e0a4d81), closes #6995
- fix: reoptimize deps on esbuild options change (#6855) (4517c2b), closes #6855
- fix: replacing compression with modern version (#6557) (5648d09), closes #6557
- fix: restart optimize (#7004) (47fbe29), closes #7004
- fix: reusing variable names in html module scripts (fix #6851) (#6818) (c46b56d), closes #6851 #6818
- fix: revert #6340, definePlugin tests, warning box (#7174) (6cb0647), closes #6340 #7174
- fix: update postcss-load-config to load PostCSS plugins based on their config file path (#6856) (f02f961), closes #6856
- fix(hmr): client pinging behind a proxy on websocket disconnect (fix #4501) (#5466) (96573db), closes #4501 #5466
- fix(html): build mode ignore html define transform (#6663) (79dd003), closes #6663
- fix(json): load json module error (#6352) (c8a7ea8), closes #6352
- fix(optimizer): add missing keys to hash (#7189) (b0c0efe), closes #7189
- fix(resolve): try .tsx extension for .js import from typescript module (#7005) (72b8cb6), closes #7005
- fix(server): base middleware redirect with search and hash (#6574) (a516e85), closes #6574
- fix(server): ensure consistency for url to file mapping in importAnalysis and static middleware (#65 (b214115), closes #6518
- fix(ssr): bypass missing resolve error in SSR (#7164) (a4927c5), closes #7164
Features
- feat(worker): Add sourcemap support for worker bundles (#5417) (465b6b9), closes #5417
- feat(type): support typing for custom events (#7476) (50a8765), closes #7476
- refactor(types): share hot context type (#7475) (64ddff0), closes #7475
- feat: support importing css with ?raw (#5796) (fedb106), closes #5796
- feat(css): css.devSourcemap option (#7471) (57f14cb), closes #7471
- feat(dev): expose APIs for client-server communication (#7437) (e29ea8e), closes #7437
- feat: hide optimized deps found during scan phase logs (#7419) (f4934e8), closes #7419
- feat: non-blocking scanning of dependencies (#7379) (676f545), closes #7379
- feat: css sourcemap support during dev (#7173) (38a655f), closes #7173
- feat: expose ssrRewriteStacktrace (#7091) (d4ae45d), closes #7091
- feat: add
importedCssandimportedAssetsto RenderedChunk type (#6629) (8d0fc90), closes #6629 - feat: non-blocking pre bundling of dependencies (#6758) (24bb3e4), closes #6758
- feat: optimize custom extensions (#6801) (c11af23), closes #6801
- feat: show all prebundle deps when debug (#6726) (e626055), closes #6726
- feat(glob): import.meta.glob support alias path (#6526) (86882ad), closes #6526
- feat(perf): tsconfck perf improvement (#7055) (993ea39), closes #7055
- feat(worker): bundle worker emit asset file (#6599) (0ade335), closes #6599
- refactor: avoid splitting vendor chunk by default (#6534) (849e845), closes #6534
Beta Changelogs
2.9.0-beta.11 (2022-03-29)
2.9.0-beta.10 (2022-03-28)
2.9.0-beta.9 (2022-03-26)
2.9.0-beta.8 (2022-03-24)
2.9.0-beta.7 (2022-03-23)
2.9.0-beta.6 (2022-03-22)
2.9.0-beta.5 (2022-03-22)
2.9.0-beta.4 (2022-03-19)
2.9.0-beta.3 (2022-03-16)
2.9.0-beta.2 (2022-03-14)
2.9.0-beta.1 (2022-03-14)
2.9.0-beta.0 (2022-03-09)
2.8.6 (2022-03-01)
Bug Fixes
- revert #7052, hmr style tag no support in html (#7136) (5c116ec)
- throw Error when can't preload CSS (#7108) (d9f8edb)
2.8.5 (2022-02-28)
Bug Fixes
- ?html-proxy with trailing = added by some servers (#7093) (5818ac9)
- allow optional trailing comma in asset
import.meta.url(#6983) (2debb9f) - cannot reassign process.env.NODE_ENV in ssr (#6989) (983feb2)
- config: Warn about terserOptions in more cases (#7101) (79428ad)
- don't override user config (#7034) (8fd8f6e)
- fileToBuiltUrl got undefined when file type is
.ico(#7106) (7a1a552) - glob: css imports injecting a ?used query to export the css string (#6949) (0b3f4ef)
- hmr: hmr style tag no support in html (#7052) (a9dfce3)
- image -> image/x-icon (#7120) (065ceca)
- import with query
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.