You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
typescript-best-practices: schema example uses z.string().uuid(), deprecated in Zod 4 #1165
Zod 4 moved string formats to top-level functions such as z.uuid(). Its v4 changelog (https://zod.dev/v4/changelog) says: "The method forms (z.string().email()) still exist and work as before, but are now deprecated." Because this example is the skill's model for new code, agents copy the deprecated form into Zod 4 projects.
Possible fix. Use id: z.uuid(), or note that z.string().uuid() is the Zod 3 form.
The schema-first example in pstack/skills/typescript-best-practices/references/patterns.md uses z.string().uuid(), which the Zod 4 changelog lists as deprecated in favor of the top-level z.uuid().
I have a 2-line fix ready that updates the example and regenerates the harness/ copy with scripts/generate-pstack-harness-trees.mjs, and check-pstack-docs passes. Would you like a PR, or would you rather handle it yourself?
Activity
WeAreResilience commentedon Nov 4, 2026
The schema-first example in
pstack/skills/typescript-best-practices/references/patterns.mdusesz.string().uuid(), which the Zod 4 changelog lists as deprecated in favor of the top-levelz.uuid().I have a 2-line fix ready that updates the example and regenerates the
harness/copy withscripts/generate-pstack-harness-trees.mjs, andcheck-pstack-docspasses. Would you like a PR, or would you rather handle it yourself?