395.md (10427B)
1 # PR #395 Bump vite from 4.0.4 to 4.2.1 2 3 - **Status:** closed 4 - **Author:** @dependabot[bot] 5 - **Created:** 2023-03-21T09:12:51Z 6 - **Branch:** dependabot/npm_and_yarn/vite-4.2.1 → main 7 - **Closed:** 2023-04-19T09:05:25Z 8 - **Labels:** dependencies, javascript 9 - **Assignees:** @MTRNord 10 - **Reviewers:** @MTRNord 11 - **Diff:** [395.diff](./395.diff) 12 13 --- 14 15 Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.0.4 to 4.2.1. 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><!-- raw HTML omitted -->4.2.1 (2023-03-20)<!-- raw HTML omitted --></h2> 37 <ul> 38 <li>fix: add <code>virtual:</code> to virtual module source map ignore (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12444">#12444</a>) (<a href="https://github.com/vitejs/vite/commit/c4aa28f">c4aa28f</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/12444">#12444</a></li> 39 <li>fix(css): inject source content conditionally (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12449">#12449</a>) (<a href="https://github.com/vitejs/vite/commit/3e665f6">3e665f6</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/12449">#12449</a></li> 40 <li>fix(worker): using data URLs for inline shared worker (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12014">#12014</a>) (<a href="https://github.com/vitejs/vite/commit/79a5007">79a5007</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/12014">#12014</a></li> 41 <li>chore: changelog edits for 4.2 (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12438">#12438</a>) (<a href="https://github.com/vitejs/vite/commit/ce047e3">ce047e3</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/12438">#12438</a></li> 42 </ul> 43 <h2>4.2.0 (2023-03-16)</h2> 44 <p>Vite 4.2 is out!</p> 45 <h3>Support env variables replacement in HTML files</h3> 46 <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> 47 <pre lang="html"><code><h1>Vite is running in %MODE%</h1> 48 <p>Using data from %VITE_API_URL%</p> 49 </code></pre> 50 <h3>Sourcemaps improvements</h3> 51 <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> 52 <h3>ESM subpath imports</h3> 53 <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> 54 <h3>TypeScript 5 support</h3> 55 <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> 56 <h3>esbuild 0.17</h3> 57 <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> 58 <h3>Use Rollup types from the vite package</h3> 59 <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> 60 <pre lang="ts"><code>import type { Rollup } from 'vite' 61 </code></pre> 62 <h3>Português Docs Translation</h3> 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/a53feb5299582e0c178b7f6b1023bdc3f0925f4e"><code>a53feb5</code></a> release: v4.2.1</li> 71 <li><a href="https://github.com/vitejs/vite/commit/79a500726f61b305fcc4b6a436f37c6dc803580c"><code>79a5007</code></a> fix(worker): using data URLs for inline shared worker (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12014">#12014</a>)</li> 72 <li><a href="https://github.com/vitejs/vite/commit/3e665f6cba8473acc9e13ed6a91614bd92856275"><code>3e665f6</code></a> fix(css): inject source content conditionally (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12449">#12449</a>)</li> 73 <li><a href="https://github.com/vitejs/vite/commit/c4aa28fbcc479b2f18879a3f09a37a5d5f3a6c13"><code>c4aa28f</code></a> fix: add <code>virtual:</code> to virtual module source map ignore (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12444">#12444</a>)</li> 74 <li><a href="https://github.com/vitejs/vite/commit/ce047e3a009a631969d0d05da9d48596c29babcc"><code>ce047e3</code></a> chore: changelog edits for 4.2 (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/12438">#12438</a>)</li> 75 <li><a href="https://github.com/vitejs/vite/commit/9dbb7f7765fd7d255daf82ad44fe867d49f0befd"><code>9dbb7f7</code></a> release: v4.2.0</li> 76 <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> 77 <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> 78 <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> 79 <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> 80 <li>Additional commits viewable in <a href="https://github.com/vitejs/vite/commits/v4.2.1/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-04-19T09:05:24Z 124 125 Superseded by #438. 126