Bump Vite & Vitest
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @vitejs/plugin-react (source) | ^4.3.2 -> ^4.3.3 |
||||
| @vitest/ui (source) | 2.1.2 -> 2.1.3 |
||||
| vitest (source) | 2.1.2 -> 2.1.3 |
Release Notes
vitejs/vite-plugin-react (@vitejs/plugin-react)
v4.3.3
React Compiler runtimeModule option removed
React Compiler was updated to accept a target option and runtimeModule was removed. vite-plugin-react will still detect runtimeModule for backwards compatibility.
When using a custom runtimeModule or target !== '19', the plugin will not try to pre-optimize react/compiler-runtime dependency.
The react-compiler-runtime is now available on npm can be used instead of the local shim for people using the compiler with React < 19.
Here is the configuration to use the compiler with React 18 and correct source maps in development:
npm install babel-plugin-react-compiler react-compiler-runtime @​babel/plugin-transform-react-jsx-development
export default defineConfig(({ command }) => {
const babelPlugins = [['babel-plugin-react-compiler', { target: '18' }]]
if (command === 'serve') {
babelPlugins.push(['@​babel/plugin-transform-react-jsx-development', {}])
}
return {
plugins: [react({ babel: { plugins: babelPlugins } })],
}
})
vitest-dev/vitest (@vitest/ui)
v2.1.3
🐞 Bug Fixes
- Fix error diff of
toBeNaN, toBeUndefined, toBeNull, toBeTruthy, toBeFalsy- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6697 (e0027) -
browser:
- Provide aria role intellisense - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6629 (f36ea)
- Not.toBeInTheDocument works with locators API - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6634 (8bef5)
- Use
/mockServiceWorker.jsinstead of/__vitest_msw__- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6687 (4b2ce) - Don't override the esbuild option in the browser mode - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6692 (d131f)
-
expect:
- Preserve prototype in
toMatchObjectdiff - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6620 (d289e)
- Preserve prototype in
-
mocker:
- Specify correct spy dependency - by @sheremet-va (7e958)
-
runner:
- Ensure sequential suite overrides sequence.concurrent - by @dsyddall and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6653 (5e6de)
-
vitest:
- Deprecate UserConfig in favor of ViteUserConfig - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6626 (496bd)
- Don't hang with maxConcurrency 0 - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6627 (946d8)
- Deprecate old task types and node-reliant types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6632 (00045)
- Fix
<empty line>logs when interleavingconsole.log/error- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6644 (9ece3) - Show rollup error details as test error - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6686 (47dde)
- Always inline setup files - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6689 (19d64)
- Use
fast-globinstead oftinyglobbyin Vitest - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6688 (70baa)
-
web-worker:
- Share mocker with main executor - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6623 (fe7b8)
🏎 Performance
- Reuse full name in reported tasks, update generator types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6666 (7a0de)
View changes on GitHub
Configuration
📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
Deploy preview: https://deploy-preview-15030--material-ui-x.netlify.app/
Generated by :no_entry_sign: dangerJS against 45cc7e7bf35120f6b5eb1775bc283891e4b18aa6
This pull request has conflicts, please resolve those before we can evaluate the pull request.