Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: lokalise/zod-extras
Length of output: 137
🏁 Script executed:
cat -n package.json | head -70Repository: lokalise/zod-extras
Length of output: 2203
🏁 Script executed:
Repository: lokalise/zod-extras
Length of output: 364
🌐 Web query:
vitest v4 breaking changes from v1 migration guide💡 Result:
Vitest 4.0, released in October 2025, introduced several breaking changes and mandatory environment upgrades [1][2]. Before migrating from v1, you must ensure your environment meets the minimum requirements: Vitest 4.0 requires Vite 6.0.0 or higher and Node.js 20.0.0 or higher [3]. Key breaking changes in Vitest 4.0 include: Environment and Configuration - Minimum Version Requirements: Upgraded to Vite >= 6.0 and Node.js >= 20.0 [3]. - Workspace Renamed: The configuration option
workspacewas replaced byprojects[1][4]. - Vite Integration: Support for Vite 5 was removed [1]. Coverage - Removal of coverage.all: This option was removed; Vitest now defaults to including only covered files, which helps prevent performance issues with large file sets [3]. - Simplified exclude: Vitest now only excludes tests from node_modules and.git folders by default, rather than the previous broader set of exclusions [3]. - Coverage Option Cleanup: Removedcoverage.ignoreEmptyLinesandcoverage.experimentalAstAwareRemapping(the latter is now enabled by default) [3]. Browser and Pool - Browser Mode: The experimental tag was removed [2]. Browser providers (like Playwright or WebdriverIO) must now be installed as separate packages (e.g.,@vitest/browser-playwright) [2]. The browser provider configuration now accepts an object instead of a string [3]. - Pool Rework: TheTinypooldependency was removed and the pool implementation was rewritten [4]. Reporters and APIs - Reporter Changes: Thebasicreporter was removed; users are encouraged to use thedefaultreporter withsummary: false[2]. - Module Runner: Replacedvite-nodewith the new Module Runner [1][4]. - Deprecated APIs: Various deprecated types, environmentMatchGlobs, poolMatchGlobs, and other legacy APIs were removed [1]. Migration Recommendation For a successful migration from v1, it is strongly recommended to review the official Vitest Migration Guide [3] and the v4.0.0 release notes [1], as they provide detailed instructions on handling the transition of your specific test configuration and infrastructure. Top Results: [3], [1], [2], [4]Citations:
🏁 Script executed:
Repository: lokalise/zod-extras
Length of output: 760
🏁 Script executed:
Repository: lokalise/zod-extras
Length of output: 969
Critical incompatibilities with vitest v4.1.9 upgrade—multiple fixes required before merge.
Updating vitest to ^4.1.9 introduces breaking changes that affect three separate areas:
Vite incompatibility: Current vite ^5.2.10 does not satisfy vitest 4.0+ requirement of vite ≥ 6.0. Bump vite to ^6.x.
@vitest/coverage-v8version mismatch: Current ^1.5.3 is incompatible with vitest ^4.1.9. Update to ^4.1.9 to match.Deprecated config option: vitest.config.mts uses
coverage.all: true(line 15), which was removed in vitest 4.0. Remove this line.Without these changes, the test suite will fail.
🤖 Prompt for AI Agents