Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove io-ts, use zod #9263

Merged
merged 2 commits into from
Aug 6, 2024
Merged

Remove io-ts, use zod #9263

merged 2 commits into from
Aug 6, 2024

Conversation

dcousens
Copy link
Member

@dcousens dcousens commented Aug 6, 2024

Alternative to #9261

This pull request replaces the use of io-ts with zod, something I am planning to use internally elsewhere in the project.

@dcousens
Copy link
Member Author

dcousens commented Aug 6, 2024

@kennedybaird thanks for your initiative on #9261, I will add you as credit for this pull request 💛

This comment was marked as resolved.

@kennedybaird
Copy link
Contributor

Great work, I was going to suggest moving to zod!

label: string | undefined
data: Record<string, any> | undefined
label?: string
data?: Record<string, any>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required as a result of zod assuming that | undefined is equivalent to ?:, which it isn't.

Reference colinhacks/zod#2464 and colinhacks/zod#2598

@dcousens dcousens merged commit a111cb6 into main Aug 6, 2024
41 of 43 checks passed
@dcousens dcousens deleted the fix-fp-ts branch August 6, 2024 04:13
dcousens added a commit that referenced this pull request Aug 6, 2024
dcousens added a commit that referenced this pull request Aug 6, 2024
dcousens added a commit that referenced this pull request Aug 7, 2024
dcousens added a commit that referenced this pull request Aug 9, 2024
dcousens added a commit that referenced this pull request Aug 9, 2024
@dcousens dcousens mentioned this pull request Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants