Repository navigation
fix(frontend): upgrade zod to 4.6.7, clearing the last npm audit finding (#132) - #135
Merged
Merged
Conversation
…ng (#132) zod below 4.6.6 can exhaust memory while validating oversized constrained collections. zod 4 needs a key schema for z.record, so the table rows schema now passes z.string(). A new contract test covers that schema; it fails if the cell schema is loosened. npm audit: 0 vulnerabilities. vitest 141 passed. tsc 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019YPoXzBSj89ZHgw7nfTmbB
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.
Refs #132. This clears the last
npm auditfinding: zod below 4.6.6 can exhaust memory while validating oversized constrained collections (high).Changes
zodgoes from^3.24.2to^4.6.7. TanStack Start and@hookform/resolversnow share that one copy, so the lock file no longer carries a separate zod 3.csv.functions.ts: zod 4 needs a key schema forz.record. The table rows schema becomesz.record(z.string(), previewRowValueSchema). This is the onlyz.recordin the code; the other schemas need no change.table-rows-contract.test.ts. That schema had no test before. The new test fails when the cell schema is loosened toz.any(): I checked, and it reported 1 failed, 1 passed.Verification (npm 10.9.9, Node 22.23.4)
npm cifrom scratchnpm audittsc --noEmitNITRO_PRESET=node-server)/redirects to/auth, which renders 3 inputs. Its console errors are the existing hydration errors in #133#132 stays open until this is merged and
npm auditonmainis clean.Generated by Claude Code