482.json (16845B)
1 { 2 "number": 482, 3 "title": "Bump vitest from 0.27.3 to 0.32.2", 4 "state": "closed", 5 "diff_file": "482.diff", 6 "author": "dependabot[bot]", 7 "created_at": "2023-06-19T09:09:15Z", 8 "closed_at": "2023-07-03T08:37:58Z", 9 "merged_at": null, 10 "base_ref": "main", 11 "head_ref": "dependabot/npm_and_yarn/vitest-0.32.2", 12 "labels": [ 13 "dependencies", 14 "javascript" 15 ], 16 "assignees": [ 17 "MTRNord" 18 ], 19 "requested_reviewers": [ 20 "MTRNord" 21 ], 22 "body": "Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 0.27.3 to 0.32.2.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/vitest-dev/vitest/releases\">vitest's releases</a>.</em></p>\n<blockquote>\n<h2>v0.32.2</h2>\n<h3>\u00a0\u00a0\u00a0\ud83d\udc1e Bug Fixes</h3>\n<ul>\n<li><strong>browser</strong>: Don't fail on importing diff-sequences \u00a0-\u00a0 by <a href=\"https://github.com/sheremet-va\"><code>@\u200bsheremet-va</code></a> <a href=\"https://github.com/vitest-dev/vitest/commit/00b0e6a3\"><!-- raw HTML omitted -->(00b0e)<!-- raw HTML omitted --></a></li>\n</ul>\n<h5>\u00a0\u00a0\u00a0\u00a0<a href=\"https://github.com/vitest-dev/vitest/compare/v0.32.1...v0.32.2\">View changes on GitHub</a></h5>\n<h2>v0.32.1</h2>\n<h3>\u00a0\u00a0\u00a0\ud83d\ude80 Features</h3>\n<ul>\n<li>Export <code>registerConsoleShortcuts</code> from <code>vitest/node</code> \u00a0-\u00a0 by <a href=\"https://github.com/deot\"><code>@\u200bdeot</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3563\">vitest-dev/vitest#3563</a> <a href=\"https://github.com/vitest-dev/vitest/commit/bc49bac7\"><!-- raw HTML omitted -->(bc49b)<!-- raw HTML omitted --></a></li>\n<li><strong>expect</strong>: Support <code>expect.unreachable</code> \u00a0-\u00a0 by <a href=\"https://github.com/fenghan34\"><code>@\u200bfenghan34</code></a> and <a href=\"https://github.com/sheremet-va\"><code>@\u200bsheremet-va</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3556\">vitest-dev/vitest#3556</a> <a href=\"https://github.com/vitest-dev/vitest/commit/8e385bb0\"><!-- raw HTML omitted -->(8e385)<!-- raw HTML omitted --></a></li>\n<li><strong>runner</strong>: <code>describe</code>/<code>test</code> name support anonymous function \u00a0-\u00a0 by <a href=\"https://github.com/btea\"><code>@\u200bbtea</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3562\">vitest-dev/vitest#3562</a> <a href=\"https://github.com/vitest-dev/vitest/commit/3d43638c\"><!-- raw HTML omitted -->(3d436)<!-- raw HTML omitted --></a></li>\n</ul>\n<h3>\u00a0\u00a0\u00a0\ud83d\udc1e Bug Fixes</h3>\n<ul>\n<li>Avoid call stack recursion with large error (fix: <a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3060\">#3060</a>) \u00a0-\u00a0 by <a href=\"https://github.com/nathanmmiller\"><code>@\u200bnathanmmiller</code></a> and <a href=\"https://github.com/sheremet-va\"><code>@\u200bsheremet-va</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3078\">vitest-dev/vitest#3078</a> and <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3060\">vitest-dev/vitest#3060</a> <a href=\"https://github.com/vitest-dev/vitest/commit/02196f9d\"><!-- raw HTML omitted -->(02196)<!-- raw HTML omitted --></a></li>\n<li>Automatically remove define related configuration \u00a0-\u00a0 by <a href=\"https://github.com/btea\"><code>@\u200bbtea</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3552\">vitest-dev/vitest#3552</a> <a href=\"https://github.com/vitest-dev/vitest/commit/368b8259\"><!-- raw HTML omitted -->(368b8)<!-- raw HTML omitted --></a></li>\n<li>Import <code>performance</code> from <code>perf_hooks</code> \u00a0-\u00a0 by <a href=\"https://github.com/Max10240\"><code>@\u200bMax10240</code></a> and <strong>wangbaolong.wbl</strong> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3578\">vitest-dev/vitest#3578</a> and <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3579\">vitest-dev/vitest#3579</a> <a href=\"https://github.com/vitest-dev/vitest/commit/24ec85a8\"><!-- raw HTML omitted -->(24ec8)<!-- raw HTML omitted --></a></li>\n<li>Revert concordance diff, use jest's diff output \u00a0-\u00a0 by <a href=\"https://github.com/sheremet-va\"><code>@\u200bsheremet-va</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3582\">vitest-dev/vitest#3582</a> <a href=\"https://github.com/vitest-dev/vitest/commit/9c7ea382\"><!-- raw HTML omitted -->(9c7ea)<!-- raw HTML omitted --></a></li>\n<li>Typo in config suggestion \u00a0-\u00a0 by <a href=\"https://github.com/Krisell\"><code>@\u200bKrisell</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3583\">vitest-dev/vitest#3583</a> <a href=\"https://github.com/vitest-dev/vitest/commit/689855bb\"><!-- raw HTML omitted -->(68985)<!-- raw HTML omitted --></a></li>\n<li><strong>browser</strong>:\n<ul>\n<li>Change optimized deps to use <code>vitest</code> \u00a0-\u00a0 by <a href=\"https://github.com/userquin\"><code>@\u200buserquin</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3580\">vitest-dev/vitest#3580</a> <a href=\"https://github.com/vitest-dev/vitest/commit/b4ac88e9\"><!-- raw HTML omitted -->(b4ac8)<!-- raw HTML omitted --></a></li>\n<li>Access <strong>vi_inject</strong> only if it was injected \u00a0-\u00a0 by <a href=\"https://github.com/sheremet-va\"><code>@\u200bsheremet-va</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3587\">vitest-dev/vitest#3587</a> <a href=\"https://github.com/vitest-dev/vitest/commit/d9e1419a\"><!-- raw HTML omitted -->(d9e14)<!-- raw HTML omitted --></a></li>\n</ul>\n</li>\n<li><strong>mocker</strong>:\n<ul>\n<li>Respect namespace import when hoisting vi.mock \u00a0-\u00a0 by <a href=\"https://github.com/sheremet-va\"><code>@\u200bsheremet-va</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3547\">vitest-dev/vitest#3547</a> <a href=\"https://github.com/vitest-dev/vitest/commit/158c4bb0\"><!-- raw HTML omitted -->(158c4)<!-- raw HTML omitted --></a></li>\n</ul>\n</li>\n<li><strong>ui</strong>:\n<ul>\n<li>Navigate to dashboard when re-running tests from coverage page \u00a0-\u00a0 by <a href=\"https://github.com/userquin\"><code>@\u200buserquin</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3529\">vitest-dev/vitest#3529</a> <a href=\"https://github.com/vitest-dev/vitest/commit/bc283ae3\"><!-- raw HTML omitted -->(bc283)<!-- raw HTML omitted --></a></li>\n</ul>\n</li>\n<li><strong>vite-node</strong>:\n<ul>\n<li>Correctly resolve virtual modules \u00a0-\u00a0 by <a href=\"https://github.com/sheremet-va\"><code>@\u200bsheremet-va</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3544\">vitest-dev/vitest#3544</a> <a href=\"https://github.com/vitest-dev/vitest/commit/0cbb07b4\"><!-- raw HTML omitted -->(0cbb0)<!-- raw HTML omitted --></a></li>\n<li>Fix errors caused by commonjs export circular references \u00a0-\u00a0 by <a href=\"https://github.com/rxliuli\"><code>@\u200brxliuli</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3570\">vitest-dev/vitest#3570</a> <a href=\"https://github.com/vitest-dev/vitest/commit/b097cef8\"><!-- raw HTML omitted -->(b097c)<!-- raw HTML omitted --></a></li>\n</ul>\n</li>\n</ul>\n<h5>\u00a0\u00a0\u00a0\u00a0<a href=\"https://github.com/vitest-dev/vitest/compare/v0.32.0...v0.32.1\">View changes on GitHub</a></h5>\n<h2>v0.32.0</h2>\n<h3>\u00a0\u00a0\u00a0\ud83d\udea8 Breaking Changes</h3>\n<ul>\n<li>Throw an error, if the module cannot be resolved \u00a0-\u00a0 by <a href=\"https://github.com/sheremet-va\"><code>@\u200bsheremet-va</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3307\">vitest-dev/vitest#3307</a> <a href=\"https://github.com/vitest-dev/vitest/commit/1ad63b0c\"><!-- raw HTML omitted -->(1ad63)<!-- raw HTML omitted --></a>\n<ul>\n<li>Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction.</li>\n</ul>\n</li>\n<li>Improve globs \u00a0-\u00a0 by <a href=\"https://github.com/nickmccurdy\"><code>@\u200bnickmccurdy</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3392\">vitest-dev/vitest#3392</a> <a href=\"https://github.com/vitest-dev/vitest/commit/19ecc6c7\"><!-- raw HTML omitted -->(19ecc)<!-- raw HTML omitted --></a>\n<ul>\n<li>Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers <code>test.js</code> to be a test file. Also any file in <code>__tests__</code> is now considered to be a test, not just files with <code>test</code> or <code>spec</code> suffix.</li>\n</ul>\n</li>\n<li>Add <code>@vitest/coverage-v8</code> package \u00a0-\u00a0 by <a href=\"https://github.com/AriPerkkio\"><code>@\u200bAriPerkkio</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3339\">vitest-dev/vitest#3339</a> <a href=\"https://github.com/vitest-dev/vitest/commit/821126f1\"><!-- raw HTML omitted -->(82112)<!-- raw HTML omitted --></a>\n<ul>\n<li>Vitest now uses v8 code coverage directly for better performance. <code>@vitest/coverage-c8</code> is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has <code>c8</code> as their coverage provider. Please, install the new <code>@vitest/coverage-v8</code> package if you previously used <code>@vitest/coverage-c8</code>.</li>\n</ul>\n</li>\n<li><strong>mocker</strong>: Don't restore mock to the original if the module is automocked \u00a0-\u00a0 by <a href=\"https://github.com/sheremet-va\"><code>@\u200bsheremet-va</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3518\">vitest-dev/vitest#3518</a> <a href=\"https://github.com/vitest-dev/vitest/commit/c1004e14\"><!-- raw HTML omitted -->(c1004)<!-- raw HTML omitted --></a>\n<ul>\n<li><code>spy.mockRestore</code> on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does.</li>\n</ul>\n</li>\n</ul>\n<h3>\u00a0\u00a0\u00a0\ud83d\ude80 Features</h3>\n<ul>\n<li>Support ssr optimizer \u00a0-\u00a0 by <a href=\"https://github.com/sheremet-va\"><code>@\u200bsheremet-va</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3490\">vitest-dev/vitest#3490</a> <a href=\"https://github.com/vitest-dev/vitest/commit/898422b0\"><!-- raw HTML omitted -->(89842)<!-- raw HTML omitted --></a></li>\n<li>Image type add apng \u00a0-\u00a0 by <a href=\"https://github.com/btea\"><code>@\u200bbtea</code></a> in <a href=\"https://redirect.github.com/vitest-dev/vitest/issues/3498\">vitest-dev/vitest#3498</a> <a href=\"https://github.com/vitest-dev/vitest/commit/a53c2151\"><!-- raw HTML omitted -->(a53c2)<!-- raw HTML omitted --></a></li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/vitest-dev/vitest/commit/1e8760ab2b4ae02288ebaf0ab27f9ed314d41980\"><code>1e8760a</code></a> chore: release v0.32.2</li>\n<li><a href=\"https://github.com/vitest-dev/vitest/commit/02bed364acf6dc4bcf95c75de4b926d486646930\"><code>02bed36</code></a> chore: release v0.32.1</li>\n<li><a href=\"https://github.com/vitest-dev/vitest/commit/8e385bb09eb1585a8410bf08c8e54596b08cc119\"><code>8e385bb</code></a> feat(expect): support <code>expect.unreachable</code> (<a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3556\">#3556</a>)</li>\n<li><a href=\"https://github.com/vitest-dev/vitest/commit/689855bbd5a3c7c2c9550c781dea872fbdb122d3\"><code>689855b</code></a> fix: typo in config suggestion (<a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3583\">#3583</a>)</li>\n<li><a href=\"https://github.com/vitest-dev/vitest/commit/9c7ea3820f6d1609d926764af124b15271671ae0\"><code>9c7ea38</code></a> fix: revert concordance diff, use jest's diff output (<a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3582\">#3582</a>)</li>\n<li><a href=\"https://github.com/vitest-dev/vitest/commit/24ec85a81e39c2f3ca4d1f1941fe63feeb9b42e8\"><code>24ec85a</code></a> fix: import <code>performance</code> from <code>perf_hooks</code> (fix <a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3578\">#3578</a>) (<a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3579\">#3579</a>)</li>\n<li><a href=\"https://github.com/vitest-dev/vitest/commit/368b82599e163548ab8cb370a5fd35155799a47c\"><code>368b825</code></a> fix: automatically remove define related configuration (<a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3552\">#3552</a>)</li>\n<li><a href=\"https://github.com/vitest-dev/vitest/commit/02196f9d95b080dcd5d006ed918f9af3726f446e\"><code>02196f9</code></a> fix: avoid call stack recursion with large error (fix: <a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3060\">#3060</a>) (<a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3078\">#3078</a>)</li>\n<li><a href=\"https://github.com/vitest-dev/vitest/commit/bc49bac7e3222c1f9be274ef8f995f9149dc61da\"><code>bc49bac</code></a> feat: export <code>registerConsoleShortcuts</code> from <code>vitest/node</code> (<a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3563\">#3563</a>)</li>\n<li><a href=\"https://github.com/vitest-dev/vitest/commit/158c4bb056417828833088508b43e6917d65d23f\"><code>158c4bb</code></a> fix(mocker): respect namespace import when hoisting vi.mock (<a href=\"https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3547\">#3547</a>)</li>\n<li>Additional commits viewable in <a href=\"https://github.com/vitest-dev/vitest/commits/v0.32.2/packages/vitest\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot 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`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@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)\n- `@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)\n- `@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)\n\n\n</details>\n\n<!-- Replace -->\n----\n\u231b Deploy Preview - Build in Progress\n<!-- Replace -->\n", 23 "comments": [ 24 { 25 "author": "dependabot[bot]", 26 "created_at": "2023-07-03T08:37:57Z", 27 "body": "Superseded by #503." 28 } 29 ], 30 "review_comments": [] 31 }