555.md (15966B)
1 # PR #555 Bump vitest from 0.27.3 to 0.34.1 2 3 - **Status:** closed 4 - **Author:** @dependabot[bot] 5 - **Created:** 2023-08-02T08:23:11Z 6 - **Branch:** dependabot/npm_and_yarn/vitest-0.34.1 → main 7 - **Closed:** 2023-08-18T08:39:47Z 8 - **Labels:** dependencies, javascript 9 - **Assignees:** @MTRNord 10 - **Reviewers:** @MTRNord 11 - **Diff:** [555.diff](./555.diff) 12 13 --- 14 15 Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 0.27.3 to 0.34.1. 16 <details> 17 <summary>Release notes</summary> 18 <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> 19 <blockquote> 20 <h2>v0.34.1</h2> 21 <h3> 🐞 Bug Fixes</h3> 22 <ul> 23 <li>Pass <code>--experimental-vm-worker-memory-limit</code> to <code>tinypool</code> - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3856">vitest-dev/vitest#3856</a> <a href="https://github.com/vitest-dev/vitest/commit/3c67a4cb"><!-- raw HTML omitted -->(3c67a)<!-- raw HTML omitted --></a></li> 24 </ul> 25 <h5> <a href="https://github.com/vitest-dev/vitest/compare/v0.34.0...v0.34.1">View changes on GitHub</a></h5> 26 <h2>v0.34.0</h2> 27 <h3> 🚨 Breaking Changes</h3> 28 <ul> 29 <li>Transform mode affects only test files, not regular files - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3491">vitest-dev/vitest#3491</a> <a href="https://github.com/vitest-dev/vitest/commit/9608bf72"><!-- raw HTML omitted -->(9608b)<!-- raw HTML omitted --></a> 30 <ul> 31 <li><code>transformMode</code> is now moved to <code>server.transformMode</code>. This option is highly discouraged to use. If you need to change the transform mode, use the new option <code>testTransformMode</code> instead to control the mode based on the running test, not the current file path. By default, tests with <code>jsdom</code> or <code>happy-dom</code> use <code>web</code> transform mode, and tests using <code>node</code> or <code>edge</code> environment use <code>ssr</code> mode. If you have a custom environment, it should provide <code>transformMode</code> property.</li> 32 </ul> 33 </li> 34 <li>Disable <code>coverage.reportOnFailure</code> by default - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3615">vitest-dev/vitest#3615</a> <a href="https://github.com/vitest-dev/vitest/commit/0c6f624f"><!-- raw HTML omitted -->(0c6f6)<!-- raw HTML omitted --></a></li> 35 <li>Remove <code>@vitest/coverage-c8</code> package - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3614">vitest-dev/vitest#3614</a> <a href="https://github.com/vitest-dev/vitest/commit/a90d64fe"><!-- raw HTML omitted -->(a90d6)<!-- raw HTML omitted --></a> 36 <ul> 37 <li><code>@vitest/coverage-c8</code> is no longer supported. Please, use <code>@vitest/coverage-v8</code> instead.</li> 38 </ul> 39 </li> 40 <li>Support running tests using VM context - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> and <a href="https://github.com/dammy001"><code>@dammy001</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3203">vitest-dev/vitest#3203</a> <a href="https://github.com/vitest-dev/vitest/commit/b0929852"><!-- raw HTML omitted -->(b0929)<!-- raw HTML omitted --></a> 41 <ul> 42 <li>To address speed issues in some applications, Vitest now provides <code>experimentalVmThreads</code> pool to run your tests using VM Sandboxes environment. Make sure you understand <a href="https://vitest.dev/config/#experimentalvmthreads">all pitfalls</a> of this pool before opening an issue.</li> 43 </ul> 44 </li> 45 <li>Introduce <code>server</code> option - by <a href="https://github.com/fenghan34"><code>@fenghan34</code></a> and <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3725">vitest-dev/vitest#3725</a> <a href="https://github.com/vitest-dev/vitest/commit/dc4faf64"><!-- raw HTML omitted -->(dc4fa)<!-- raw HTML omitted --></a> 46 <ul> 47 <li>Most of <code>deps.</code> options are now moved to <code>server.deps</code> with a deprecation warning. Please, consider using <code>deps.optimizer</code> instead of <code>deps.inline</code>/<code>deps.external</code>. Ideally, we would like to move away from using <code>server.deps.inline</code> altogether.</li> 48 </ul> 49 </li> 50 <li><strong>vite-node</strong>: Make CLI arguments parsing behavior consistent with node/tsx/ts-node - by <a href="https://github.com/rxliuli"><code>@rxliuli</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3574">vitest-dev/vitest#3574</a> <a href="https://github.com/vitest-dev/vitest/commit/1cd4eb0f"><!-- raw HTML omitted -->(1cd4e)<!-- raw HTML omitted --></a> 51 <ul> 52 <li>You now have to provide CLI arguments before the entry point. For example, instead of <code>vite-node index.ts --watch</code>, you now have to do <code>vite-node --watch index.ts</code>.</li> 53 </ul> 54 </li> 55 <li>Add preact example, remove optimizer experimental status, enable by default - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> and <a href="https://github.com/eryue0220"><code>@eryue0220</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3854">vitest-dev/vitest#3854</a> <a href="https://github.com/vitest-dev/vitest/commit/4b946ca9"><!-- raw HTML omitted -->(4b946)<!-- raw HTML omitted --></a> 56 <ul> 57 <li><code>deps.optimizer</code> is now enabled by default. This means that Vitest will bundle specified dependencies before running your tests. This field inherits options from <code>optimizeDeps</code> and <code>ssr.optimizeDeps</code> which are populated by other plugins (like, Svelte).</li> 58 </ul> 59 </li> 60 </ul> 61 <h3> 🚀 Features</h3> 62 <ul> 63 <li>Support <code>describe.sequential</code> - by <a href="https://github.com/fenghan34"><code>@fenghan34</code></a> and <a href="https://github.com/dammy001"><code>@dammy001</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3771">vitest-dev/vitest#3771</a> <a href="https://github.com/vitest-dev/vitest/commit/8693449b"><!-- raw HTML omitted -->(86934)<!-- raw HTML omitted --></a></li> 64 <li>Support config junit reporter className with env - by <a href="https://github.com/InfiniteXyy"><code>@InfiniteXyy</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3808">vitest-dev/vitest#3808</a> <a href="https://github.com/vitest-dev/vitest/commit/e8bc46b6"><!-- raw HTML omitted -->(e8bc4)<!-- raw HTML omitted --></a></li> 65 <li>Running vitest with <code>--related --watch</code> reruns non-affected tests if they were changed during a run - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3844">vitest-dev/vitest#3844</a> <a href="https://github.com/vitest-dev/vitest/commit/c9aeac4c"><!-- raw HTML omitted -->(c9aea)<!-- raw HTML omitted --></a></li> 66 </ul> 67 <h3> 🐞 Bug Fixes</h3> 68 <ul> 69 <li>Isolate workers between envs and workspaces - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> <a href="https://github.com/vitest-dev/vitest/commit/ed4e0424"><!-- raw HTML omitted -->(ed4e0)<!-- raw HTML omitted --></a></li> 70 <li>Modify condition - by <a href="https://github.com/btea"><code>@btea</code></a> <a href="https://github.com/vitest-dev/vitest/commit/a78e6bd0"><!-- raw HTML omitted -->(a78e6)<!-- raw HTML omitted --></a></li> 71 <li>Module Graph view is blocking the Console view - by <a href="https://github.com/g4rry420"><code>@g4rry420</code></a> <a href="https://github.com/vitest-dev/vitest/commit/3b5f96bc"><!-- raw HTML omitted -->(3b5f9)<!-- raw HTML omitted --></a></li> 72 <li>Port the latest <code>defineConfig</code> type from vite - by <a href="https://github.com/sodatea"><code>@sodatea</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3804">vitest-dev/vitest#3804</a> <a href="https://github.com/vitest-dev/vitest/commit/9c8e3083"><!-- raw HTML omitted -->(9c8e3)<!-- raw HTML omitted --></a></li> 73 <li>Don't overwrite Node.js URL global - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3828">vitest-dev/vitest#3828</a> <a href="https://github.com/vitest-dev/vitest/commit/cdab4651"><!-- raw HTML omitted -->(cdab4)<!-- raw HTML omitted --></a></li> 74 <li>ForceRerunTriggers correctly triggers a rerun - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3829">vitest-dev/vitest#3829</a> <a href="https://github.com/vitest-dev/vitest/commit/17988e51"><!-- raw HTML omitted -->(17988)<!-- raw HTML omitted --></a></li> 75 <li><strong>browser</strong>: 76 <ul> 77 <li>Don't inline magic-string and estree-walker - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3726">vitest-dev/vitest#3726</a> <a href="https://github.com/vitest-dev/vitest/commit/ee93762a"><!-- raw HTML omitted -->(ee937)<!-- raw HTML omitted --></a></li> 78 <li>Multi-suite coverage - by <a href="https://github.com/elby22"><code>@elby22</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3806">vitest-dev/vitest#3806</a> <a href="https://github.com/vitest-dev/vitest/commit/5de9af26"><!-- raw HTML omitted -->(5de9a)<!-- raw HTML omitted --></a></li> 79 </ul> 80 </li> 81 <li><strong>core</strong>: 82 <ul> 83 <li>DataView comparison does not work in <code>toStrictEqual</code> - by <a href="https://github.com/Dunqing"><code>@Dunqing</code></a> <a href="https://github.com/vitest-dev/vitest/commit/52aef92e"><!-- raw HTML omitted -->(52aef)<!-- raw HTML omitted --></a></li> 84 </ul> 85 </li> 86 <li><strong>coverage</strong>: 87 <ul> 88 <li>V8 provider to pick source maps without url query params - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3784">vitest-dev/vitest#3784</a> <a href="https://github.com/vitest-dev/vitest/commit/280e6745"><!-- raw HTML omitted -->(280e6)<!-- raw HTML omitted --></a></li> 89 <li>Update <code>istanbul-lib-instrument</code> to v6 to fix vulnerable dependency - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3814">vitest-dev/vitest#3814</a> <a href="https://github.com/vitest-dev/vitest/commit/f3bd9102"><!-- raw HTML omitted -->(f3bd9)<!-- raw HTML omitted --></a></li> 90 <li>Exclude vite virtual modules by default - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3794">vitest-dev/vitest#3794</a> <a href="https://github.com/vitest-dev/vitest/commit/3c851872"><!-- raw HTML omitted -->(3c851)<!-- raw HTML omitted --></a></li> 91 </ul> 92 </li> 93 <li><strong>node</strong>: 94 <ul> 95 <li>Guard error info - by <a href="https://github.com/btea"><code>@btea</code></a> <a href="https://github.com/vitest-dev/vitest/commit/88b39758"><!-- raw HTML omitted -->(88b39)<!-- raw HTML omitted --></a></li> 96 </ul> 97 </li> 98 <li><strong>vite-node</strong>:</li> 99 </ul> 100 <!-- raw HTML omitted --> 101 </blockquote> 102 <p>... (truncated)</p> 103 </details> 104 <details> 105 <summary>Commits</summary> 106 <ul> 107 <li><a href="https://github.com/vitest-dev/vitest/commit/119526827cbaf82b64ba428c9c13dcb1b08f5b64"><code>1195268</code></a> chore: release v0.34.1</li> 108 <li><a href="https://github.com/vitest-dev/vitest/commit/3c67a4cbf82d1348f359945c906ebbf59ad34906"><code>3c67a4c</code></a> fix: pass <code>--experimental-vm-worker-memory-limit</code> to <code>tinypool</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3856">#3856</a>)</li> 109 <li><a href="https://github.com/vitest-dev/vitest/commit/065a08e41eb5f35ee30da171ea8c027f0e517903"><code>065a08e</code></a> chore: release v0.34.0</li> 110 <li><a href="https://github.com/vitest-dev/vitest/commit/7f45bf2d3e94c1ee77884aade1548d3414111db4"><code>7f45bf2</code></a> perf: deprecate deps.registerNodeLoader</li> 111 <li><a href="https://github.com/vitest-dev/vitest/commit/b8dc99b16646daf13933e52db868c3bd438fe4f2"><code>b8dc99b</code></a> chore: cleanup ws dependencies</li> 112 <li><a href="https://github.com/vitest-dev/vitest/commit/4b946ca91ed98fdd6a8ac0850442c0c5605490f9"><code>4b946ca</code></a> feat: add preact example, remove optimizer experimental status, enable by def...</li> 113 <li><a href="https://github.com/vitest-dev/vitest/commit/b09298528b947ae10278c0c666ddc549b5a29eeb"><code>b092985</code></a> feat!: support running tests using VM context (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3203">#3203</a>)</li> 114 <li><a href="https://github.com/vitest-dev/vitest/commit/dc4faf64ee4c9ad6a57399d040744f22e0ca4a1e"><code>dc4faf6</code></a> feat: introduce <code>server</code> option (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3725">#3725</a>)</li> 115 <li><a href="https://github.com/vitest-dev/vitest/commit/8bd26b012778e91c8dc4a3311187dcbe1f9ab5ee"><code>8bd26b0</code></a> fix(watch): clear screen on all terminals (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3661">#3661</a>)</li> 116 <li><a href="https://github.com/vitest-dev/vitest/commit/c9aeac4cf2ac92f51d6cc246aefcb10bf6beef0a"><code>c9aeac4</code></a> feat: running vitest with <code>--related --watch</code> reruns non-affected tests if th...</li> 117 <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v0.34.1/packages/vitest">compare view</a></li> 118 </ul> 119 </details> 120 <br /> 121 122 123 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 124 125 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`. 126 127 [//]: # (dependabot-automerge-start) 128 [//]: # (dependabot-automerge-end) 129 130 --- 131 132 <details> 133 <summary>Dependabot commands and options</summary> 134 <br /> 135 136 You can trigger Dependabot actions by commenting on this PR: 137 - `@dependabot rebase` will rebase this PR 138 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it 139 - `@dependabot merge` will merge this PR after your CI passes on it 140 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it 141 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging 142 - `@dependabot reopen` will reopen this PR if it is closed 143 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually 144 - `@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) 145 - `@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) 146 - `@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) 147 148 149 </details> 150 151 152 ## Comments 153 154 ### @dependabot[bot] — 2023-08-18T08:39:46Z 155 156 Superseded by #577. 157