385.md (10252B)
1 # PR #385 Bump vite from 4.0.4 to 4.2.0 2 3 - **Status:** closed 4 - **Author:** @dependabot[bot] 5 - **Created:** 2023-03-17T09:09:59Z 6 - **Branch:** dependabot/npm_and_yarn/vite-4.2.0 → main 7 - **Closed:** 2023-03-21T09:12:58Z 8 - **Labels:** dependencies, javascript 9 - **Assignees:** @MTRNord 10 - **Reviewers:** @MTRNord 11 - **Diff:** [385.diff](./385.diff) 12 13 --- 14 15 Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.0.4 to 4.2.0. 16 <details> 17 <summary>Release notes</summary> 18 <p><em>Sourced from <a href="https://github.com/vitejs/vite/releases">vite's releases</a>.</em></p> 19 <blockquote> 20 <h2>create-vite@4.2.0</h2> 21 <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@4.2.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> 22 <h2>create-vite@4.2.0-beta.1</h2> 23 <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@4.2.0-beta.1/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> 24 <h2>create-vite@4.2.0-beta.0</h2> 25 <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@4.2.0-beta.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> 26 <h2>create-vite@4.1.0</h2> 27 <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@4.1.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> 28 <h2>create-vite@4.1.0-beta.0</h2> 29 <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@4.1.0-beta.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> 30 </blockquote> 31 </details> 32 <details> 33 <summary>Changelog</summary> 34 <p><em>Sourced from <a href="https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md">vite's changelog</a>.</em></p> 35 <blockquote> 36 <h2>4.2.0 (2023-03-16)</h2> 37 <p>Vite 4.2 is out!</p> 38 <h3>Support env variables replacement in HTML files</h3> 39 <p>Vite now supports <a href="https://vitejs.dev/guide/env-and-mode.html#html-env-replacement">replacing env variables in HTML files</a>. Any properties in <code>import.meta.env</code> can be used in HTML files with a special <code>%ENV_NAME%</code> syntax:</p> 40 <pre lang="html"><code><h1>Vite is running in %MODE%</h1> 41 <p>Using data from %VITE_API_URL%</p> 42 </code></pre> 43 <h3>Sourcemaps improvements</h3> 44 <p>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 <a href="https://twitter.com/bmeurer/status/1631286267823439881">improved experience</a> and tools for framework authors to <a href="https://twitter.com/bmeurer/status/1631531492462526467">hide 3rd party code and build artifacts from the user</a> from console log traces using <a href="https://vitejs.dev/config/server-options.html#server-sourcemapignorelist"><code>server.sourcemapIgnoreList</code></a> and <a href="https://rollupjs.org/configuration-options/#output-sourcemapignorelist"><code>build.rollupOptions.output.sourcemapIgnoreList</code></a>.</p> 45 <h3>ESM subpath imports</h3> 46 <p>Vite 4.2 now supports <a href="https://nodejs.org/api/packages.html#subpath-imports">subpath imports</a>, thanks to <a href="https://twitter.com/lukeed05"><code>@lukeed05</code></a>'s <a href="https://github.com/lukeed/resolve.exports">resolve.exports</a> library.</p> 47 <h3>TypeScript 5 support</h3> 48 <p>Vite 4.2 also supports TypeScript 5's <code>tsconfig</code> <code>extends</code> <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#supporting-multiple-configuration-files-in-extends">array format</a>, thanks to <a href="https://github.com/dominikg/tsconfck">tsconfck</a>.</p> 49 <h3>esbuild 0.17</h3> 50 <p>esbuild <a href="https://github.com/evanw/esbuild/releases/tag/v0.17.0">v0.17.0</a> improved the design of its incremental, watch, and serve APIs. Check out <a href="https://redirect.github.com/vitejs/vite/pull/11908">#11908</a> 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.</p> 51 <h3>Use Rollup types from the vite package</h3> 52 <p>Expose Rollup types as a namespace. This is helpful to avoid type conflicts because of different versions of Rollup types in environments like <a href="https://github.com/vitejs/vite-ecosystem-ci">vite-ecosystem-ci</a> (<a href="https://redirect.github.com/vitejs/vite/issues/12316">#12316</a>).</p> 53 <pre lang="ts"><code>import type { Rollup } from 'vite' 54 </code></pre> 55 <h3>Português Docs Translation</h3> 56 <p>The Vite documentation is now translated to Português at <a href="https://pt.vitejs.dev">pt.vitejs.dev</a> thanks to <a href="https://twitter.com/nazarepiedady">Nazaré Da Piedade</a> .</p> 57 <h3>Features</h3> 58 <ul> 59 <li>feat: add status message for 504 caused by optimizer (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12435">#12435</a>) (<a href="https://github.com/vitejs/vite/commit/5cdd3fa">5cdd3fa</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/12435">#12435</a></li> 60 <li>feat: update tsconfck to 2.1.0 to add support for typescript 5 config syntax (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12401">#12401</a>) (<a href="https://github.com/vitejs/vite/commit/3f1c379">3f1c379</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/12401">#12401</a></li> 61 <li>feat: default esbuild jsxDev based on config.isProduction (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12386">#12386</a>) (<a href="https://github.com/vitejs/vite/commit/f24c2b0">f24c2b0</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/12386">#12386</a></li> 62 </ul> 63 <!-- raw HTML omitted --> 64 </blockquote> 65 <p>... (truncated)</p> 66 </details> 67 <details> 68 <summary>Commits</summary> 69 <ul> 70 <li><a href="https://github.com/vitejs/vite/commit/9dbb7f7765fd7d255daf82ad44fe867d49f0befd"><code>9dbb7f7</code></a> release: v4.2.0</li> 71 <li><a href="https://github.com/vitejs/vite/commit/5cdd3fa97849442a98aa7aef63a0064220e4aef2"><code>5cdd3fa</code></a> feat: add status message for 504 caused by optimizer (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12435">#12435</a>)</li> 72 <li><a href="https://github.com/vitejs/vite/commit/e23f690dbf863cb197a28f0aad35234ae6dc7f6b"><code>e23f690</code></a> fix(optimizer): # symbol in deps id stripped by browser (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12415">#12415</a>)</li> 73 <li><a href="https://github.com/vitejs/vite/commit/2b37cdee429c2c18afa40447d4bfa0efe835898e"><code>2b37cde</code></a> docs: correct description for UserConfig.envDir when used with relative path ...</li> 74 <li><a href="https://github.com/vitejs/vite/commit/d23605d01449706988be2eb77f2654238778fca8"><code>d23605d</code></a> fix(server): should close server after create new server (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12379">#12379</a>)</li> 75 <li><a href="https://github.com/vitejs/vite/commit/96f36a9a5ed20abc17e47a559e3484f7639b8809"><code>96f36a9</code></a> fix: html env replacement plugin position (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12404">#12404</a>)</li> 76 <li><a href="https://github.com/vitejs/vite/commit/fe1d61a75ef8e9833f7dbead71b4eedd8e88813a"><code>fe1d61a</code></a> fix(resolve): rebase sub imports relative path (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12373">#12373</a>)</li> 77 <li><a href="https://github.com/vitejs/vite/commit/42e0d6af67743841bd38ed504cb8cbaaafb6313f"><code>42e0d6a</code></a> refactor(resolve): remove deep import syntax handling (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12381">#12381</a>)</li> 78 <li><a href="https://github.com/vitejs/vite/commit/d89de6c5da02541be3c56dbfe8b515d0c60aa52b"><code>d89de6c</code></a> release: v4.2.0-beta.2</li> 79 <li><a href="https://github.com/vitejs/vite/commit/3f1c379bceafc5b4e19dacb1589d57c38eaf8d30"><code>3f1c379</code></a> chore: update tsconfck to 2.1.0 to add support for typescript 5 config syntax...</li> 80 <li>Additional commits viewable in <a href="https://github.com/vitejs/vite/commits/create-vite@4.2.0/packages/vite">compare view</a></li> 81 </ul> 82 </details> 83 <br /> 84 85 86 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 87 88 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`. 89 90 [//]: # (dependabot-automerge-start) 91 [//]: # (dependabot-automerge-end) 92 93 --- 94 95 <details> 96 <summary>Dependabot commands and options</summary> 97 <br /> 98 99 You can trigger Dependabot actions by commenting on this PR: 100 - `@dependabot rebase` will rebase this PR 101 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it 102 - `@dependabot merge` will merge this PR after your CI passes on it 103 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it 104 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging 105 - `@dependabot reopen` will reopen this PR if it is closed 106 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually 107 - `@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) 108 - `@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) 109 - `@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) 110 111 112 </details> 113 114 <!-- Replace --> 115 ---- 116 ⌛ Deploy Preview - Build in Progress 117 <!-- Replace --> 118 119 120 121 ## Comments 122 123 ### @dependabot[bot] — 2023-03-21T09:12:57Z 124 125 Superseded by #395. 126