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

fix(zodResolver): improve unionErrors parsing #168

Merged
merged 2 commits into from
May 16, 2021
Merged

Conversation

jorisre
Copy link
Member

@jorisre jorisre commented May 15, 2021

Related to #167

@jorisre jorisre requested a review from bluebill1049 May 15, 2021 20:07
@github-actions
Copy link
Contributor

github-actions bot commented May 15, 2021

Size Change: +107 B (+1%)

Total Size: 19.8 kB

Filename Size Change
zod/dist/zod.js 528 B +27 B (+5%) 🔍
zod/dist/zod.modern.js 469 B +28 B (+6%) 🔍
zod/dist/zod.module.js 541 B +26 B (+5%) 🔍
zod/dist/zod.umd.js 636 B +26 B (+4%)
ℹ️ View Unchanged
Filename Size Change
class-validator/dist/class-validator.js 478 B 0 B
class-validator/dist/class-validator.modern.js 437 B 0 B
class-validator/dist/class-validator.module.js 499 B 0 B
class-validator/dist/class-validator.umd.js 583 B 0 B
computed-types/dist/computed-types.js 374 B 0 B
computed-types/dist/computed-types.modern.js 304 B 0 B
computed-types/dist/computed-types.module.js 386 B 0 B
computed-types/dist/computed-types.umd.js 469 B 0 B
dist/resolvers.js 190 B 0 B
dist/resolvers.modern.js 195 B 0 B
dist/resolvers.module.js 197 B 0 B
dist/resolvers.umd.js 292 B 0 B
io-ts/dist/io-ts.js 1.05 kB 0 B
io-ts/dist/io-ts.modern.js 1.08 kB 0 B
io-ts/dist/io-ts.module.js 1.12 kB 0 B
io-ts/dist/io-ts.umd.js 1.19 kB 0 B
joi/dist/joi.js 553 B 0 B
joi/dist/joi.modern.js 447 B 0 B
joi/dist/joi.module.js 567 B 0 B
joi/dist/joi.umd.js 659 B 0 B
nope/dist/nope.js 316 B 0 B
nope/dist/nope.modern.js 296 B 0 B
nope/dist/nope.module.js 327 B 0 B
nope/dist/nope.umd.js 403 B 0 B
superstruct/dist/superstruct.js 269 B 0 B
superstruct/dist/superstruct.modern.js 274 B 0 B
superstruct/dist/superstruct.module.js 282 B 0 B
superstruct/dist/superstruct.umd.js 367 B 0 B
vest/dist/vest.js 419 B 0 B
vest/dist/vest.modern.js 335 B 0 B
vest/dist/vest.module.js 389 B 0 B
vest/dist/vest.umd.js 508 B 0 B
yup/dist/yup.js 568 B 0 B
yup/dist/yup.modern.js 503 B 0 B
yup/dist/yup.module.js 582 B 0 B
yup/dist/yup.umd.js 669 B 0 B

compressed-size-action

Copy link
Member

@bluebill1049 bluebill1049 left a comment

Choose a reason for hiding this comment

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

Thanks @jorisre LGTM

@@ -367,7 +367,7 @@ TypeScript-first schema validation with static type inference
```tsx
import React from 'react';
import { useForm } from 'react-hook-form';
import { computedTypesResolver } from '@hookform/resolvers/zod';
import { computedTypesResolver } from '@hookform/resolvers/computed-types';
Copy link
Member

Choose a reason for hiding this comment

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

oops my bad didn't pick this up.

@jorisre jorisre merged commit f67a10f into master May 16, 2021
@jorisre jorisre deleted the zod-union-errors branch May 16, 2021 17:07
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants