Update all non-major dependencies
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
@sveltejs/kit (source) | ^1.11.0 -> ^1.12.0 |
||||
prettier-plugin-tailwindcss | ^0.2.4 -> ^0.2.5 |
||||
vite (source) | ^4.1.4 -> ^4.2.0 |
Release Notes
sveltejs/kit
v1.12.0
Minor Changes
-
feat: expose submitter in use:enhance SubmitFunction (#9425)
-
feat: add data-sveltekit-keepfocus and data-sveltekit-replacestate options to links (requires Svelte version 3.56 for type-checking with
svelte-check
) (#9019)
Patch Changes
tailwindlabs/prettier-plugin-tailwindcss
v0.2.5
Fixed
- Fix class sorting in
capture
liquid tag (#131)
vitejs/vite
v4.2.0
Vite 4.2 is out!
Support env variables replacement in HTML files
Vite now supports replacing env variables in HTML files. Any properties in import.meta.env
can be used in HTML files with a special %ENV_NAME%
syntax:
<h1>Vite is running in %MODE%</h1>
<p>Using data from %VITE_API_URL%</p>
Sourcemaps improvements
The Chrome Dev Tools team has been working to improve the DX of Vite and Vite-powered frameworks in the dev tools. Vite 4.2 brings an improved experience and tools for framework authors to hide 3rd party code and build artifacts from the user from console log traces using server.sourcemapIgnoreList
and build.rollupOptions.output.sourcemapIgnoreList
.
ESM subpath imports
Vite 4.2 now supports subpath imports, thanks to @lukeed05's resolve.exports library.
TypeScript 5 support
Vite 4.2 also supports TypeScript 5's tsconfig
extends
array format, thanks to tsconfck.
esbuild 0.17
esbuild v0.17.0 improved the design of its incremental, watch, and serve APIs. Check out #11908 for the rationale of why we didn't consider the backward-incompatible changes breaking for our use cases. The updated esbuild design now allows Vite to properly cancel in-fly builds and improve server restarts.
Use Rollup types from the vite package
Expose Rollup types as a namespace. This is helpful to avoid type conflicts because of different versions of Rollup types in environments like vite-ecosystem-ci (#12316).
import type { Rollup } from 'vite'
Português Docs Translation
The Vite documentation is now translated to Português at pt.vitejs.dev thanks to Nazaré Da Piedade .
Features
- feat: add status message for 504 caused by optimizer (#12435) (5cdd3fa), closes #12435
- feat: update tsconfck to 2.1.0 to add support for typescript 5 config syntax (#12401) (3f1c379), closes #12401
- feat: default esbuild jsxDev based on config.isProduction (#12386) (f24c2b0), closes #12386
- feat(css): add
build.cssMinify
(#12207) (90431f2), closes #12207 - feat(types): export Rollup namespace (#12316) (6e49e52), closes #12316
- feat: add
sourcemapIgnoreList
configuration option (#12174) (f875580), closes #12174 - feat: cancellable scan during optimization (#12225) (1e1cd3b), closes #12225
- feat: don't override
build.target
if terser is 5.16.0+ (#12197) (9885f6f), closes #12197 - feat: support ESM subpath imports (#7770) (cc92da9), closes #7770
- feat(css): add preprocessor option to define stylus vars & funcs (#7227) (5968bec), closes #7227
- feat(css): support resolving stylesheets from exports map (#7817) (108aadf), closes #7817
- feat(html): support env replacement (#12202) (4f2c49f), closes #12202
- refactor: customize ErrorOverlay (part 2) (#11830) (4159e6f), closes #11830
- refactor: remove constructed sheet type style injection (#11818) (1a6a0c2), closes #11818
- refactor(importAnalysis): cache injected env string (#12154) (2aad552), closes #12154
- feat: esbuild 0.17 (#11908) (9d42f06), closes #11908
- feat: ignore list client injected sources (#12170) (8a98aef), closes #12170
- feat: support rollup plugin
this.load
in plugin container context (#11469) (abfa804), closes #11469 - feat(cli): allow to specify sourcemap mode via --sourcemap build's option (#11505) (ee3b90a), closes #11505
- feat(reporter): report built time (#12100) (f2ad222), closes #12100
Bug Fixes
- fix: html env replacement plugin position (#12404) (96f36a9), closes #12404
- fix(optimizer): # symbol in deps id stripped by browser (#12415) (e23f690), closes #12415
- fix(resolve): rebase sub imports relative path (#12373) (fe1d61a), closes #12373
- fix(server): should close server after create new server (#12379) (d23605d), closes #12379
- fix(resolve): remove deep import syntax handling (#12381) (42e0d6a), closes #12381
- fix: print urls when dns order change (#12261) (e57cacf), closes #12261
- fix: throw ssr import error directly (fix #12322) (#12324) (21ffc6a), closes #12322 #12324
- fix(config): watch config even outside of root (#12321) (7e2fff7), closes #12321
- fix(config): watch envDir even outside of root (#12349) (131f3ee), closes #12349
- fix(define): correctly replace SSR in dev (#12204) (0f6de4d), closes #12204
- fix(optimizer): suppress esbuild cancel error (#12358) (86a24e4), closes #12358
- fix(optimizer): transform css require to import directly (#12343) (716286e), closes #12343
- fix(reporter): build.assetsDir should not impact output when in lib mode (#12108) (b12f457), closes #12108
- fix(types): avoid resolve.exports types for bundling (#12346) (6b40f03), closes #12346
- fix(worker): force rollup to build worker module under watch mode (#11919) (d464679), closes #11919
- fix: resolve browser mapping using bare imports (fix #11208) (#11219) (22de84f), closes #11208 #11219
- fix: avoid null sourcePath in
server.sourcemapIgnoreList
(#12251) (209c3bd), closes #12251 - fix: configure proxy before subscribing to error events (#12263) (c35e100), closes #12263
- fix: enforce absolute path for server.sourcemapIgnoreList (#12309) (ab6ae07), closes #12309
- fix: handle error without line and column in loc (#12312) (ce18eba), closes #12312
- fix: properly clean up optimization temp folder (#12237) (fbbf8fe), closes #12237
- fix: unique dep optimizer temp folders (#12252) (38ce81c), closes #12252
- fix(build-import-analysis): should not append ?used when css request has ?url or ?raw (#11910) (e3f725f), closes #11910
- fix(optimizer): don not call context.rebuild after cancel (#12264) (520d84e), closes #12264
- fix(resolve): update
resolve.exports
to2.0.1
to fix*
resolution issue (#12314) (523d6f7), closes #12314 - fix: use relative paths in
sources
for transformed source maps (#12079) (bcbc582), closes #12079 - fix(cli): after setting server.open, the default open is inconsistent… (#11974) (33a38db), closes #11974
- fix(client-inject): replace globalThis.process.env.NODE_ENV (fix #12185) (#12194) (2063648), closes #12185 #12194
- fix(css): should not rebase http url for less (fix: #12155) (#12195) (9cca30d), closes #12155 #12195
- fix(deps): update all non-major dependencies (#12036) (48150f2), closes #12036
- fix(import-analysis): improve error for jsx to not be preserve in tsconfig (#12018) (91fac1c), closes #12018
- fix(optimizer): log esbuild error when scanning deps (#11977) (20e6060), closes #11977
- fix(optimizer): log unoptimizable entries (#12138) (2c93e0b), closes #12138
- fix(server): watch env files creating and deleting (fix #12127) (#12129) (cc3724f), closes #12127 #12129
- build: correct d.ts output dir in development (#12212) (b90bc1f), closes #12212
Previous Changelogs
4.2.0-beta.2 (2023-03-13)
4.2.0-beta.1 (2023-03-07)
4.2.0-beta.0 (2023-02-27)
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.