Repository navigation
fix: patched undici and zod, run compat, Windows, Node 24 and lint on PRs - #1210
Merged
Merged
Conversation
… PRs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Approving. This PR addresses security gaps by updating undici to ^8.12.2 (fixing published advisories) and aligning the zod range to allow ^4.6.6 (fixing GHSA-mrhx-c7xc-m3w5). CI improvements include running lint in the check job (previously a commit-only hook), expanding the test matrix to Node 24 and Windows, and making the compat job run on every PR (previously manual only) while building without declarations to avoid DTS worker OOM. Documentation and scaffold templates are updated to use zod@^4.6.6 for new projects. The studioFreshness check now uses forward slashes for Windows path compatibility.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Security
undiciis^8.12.2(lockfile 8.13.1); earlier 8.x releases have published advisories.ai7 projects usezod@^4.6.6(GHSA-mrhx-c7xc-m3w5). The README command could install vulnerable zod 3.25.76.^3.25.76 || ^4.6.6, so an install can use patched zod 4. The SDK's peer range is unchanged.CI
compat(full suite onai7 / zod 4) runs on every PR. Its last two runs failed because the DTS worker ran out of memory, so it now builds without declarations;tscandtest:typesstill cover types there.testruns on Ubuntu with Node 22.19 and 24, and on Windows.checkruns lint, which was only a commit hook.lousho deployprints Studio source paths with forward slashes (the one test failing on Windows).Verified locally (Windows)
tsc, lint, api:check, doc snippets, SDK suite 843/843, Studio server 202/202. Studio server 202/202 and UI 204/204 also pass on zod 4.
Not covered
The monorepo's dev install stays on zod 3 /
ai4, sonpm auditstill reports those dev dependencies.🤖 Generated with Claude Code