Skip to content

Validate arguments with zod instead of ow #1024

Description

@vdusek

Replace ow with zod for runtime argument validation. ow is effectively unmaintained, and zod is already the validation library used across our packages.

Breaking: invalid arguments throw a new ArgumentValidationError instead of ow's ArgumentError, and a few values that ow let through (Infinity, invalid Date, arrays where an object is expected) are now rejected.

✍️ Drafted by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

adhocAd-hoc unplanned task added during the sprint.t-toolingIssues with this label are in the ownership of the tooling team.tech enhancementEnhancement of our tech stack.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions