Skip to content

Conversation

@jorisre
Copy link
Member

@jorisre jorisre commented Feb 5, 2025

This PR ensures consistency across resolvers by automatically inferring values from the schema when applicable, as we already do for the Yup resolver.

Additionally, it adds a small comparison table in the README to highlight the supported features of each resolver.

Closes #653, closes #429, closes #447, closes #551

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2025

Size Change: -7 B (-0.02%)

Total Size: 33.5 kB

Filename Size Change
arktype/dist/arktype.js 365 B +2 B (+0.55%)
arktype/dist/arktype.umd.js 463 B +1 B (+0.22%)
class-validator/dist/class-validator.js 538 B +1 B (+0.19%)
class-validator/dist/class-validator.module.js 559 B -3 B (-0.53%)
class-validator/dist/class-validator.umd.js 637 B -5 B (-0.78%)
computed-types/dist/computed-types.module.js 400 B -1 B (-0.25%)
effect-ts/dist/effect-ts.module.js 554 B -2 B (-0.36%)
fluentvalidation-ts/dist/fluentvalidation-ts.js 487 B -1 B (-0.2%)
fluentvalidation-ts/dist/fluentvalidation-ts.module.js 505 B -3 B (-0.59%)
superstruct/dist/superstruct.module.js 353 B -3 B (-0.84%)
typanion/dist/typanion.module.js 345 B +1 B (+0.29%)
typebox/dist/typebox.module.js 517 B -1 B (-0.19%)
typebox/dist/typebox.umd.js 618 B +2 B (+0.32%)
valibot/dist/valibot.module.js 492 B -1 B (-0.2%)
vine/dist/vine.umd.js 650 B +2 B (+0.31%)
zod/dist/zod.umd.js 717 B +4 B (+0.56%)
ℹ️ View Unchanged
Filename Size
ajv/dist/ajv.js 692 B
ajv/dist/ajv.module.js 646 B
ajv/dist/ajv.umd.js 803 B
arktype/dist/arktype.module.js 379 B
computed-types/dist/computed-types.js 385 B
computed-types/dist/computed-types.umd.js 476 B
dist/resolvers.js 444 B
dist/resolvers.module.js 454 B
dist/resolvers.umd.js 538 B
effect-ts/dist/effect-ts.js 536 B
effect-ts/dist/effect-ts.umd.js 652 B
fluentvalidation-ts/dist/fluentvalidation-ts.umd.js 575 B
io-ts/dist/io-ts.js 1.27 kB
io-ts/dist/io-ts.module.js 1.15 kB
io-ts/dist/io-ts.umd.js 1.39 kB
joi/dist/joi.js 590 B
joi/dist/joi.module.js 606 B
joi/dist/joi.umd.js 694 B
nope/dist/nope.js 347 B
nope/dist/nope.module.js 366 B
nope/dist/nope.umd.js 435 B
standard-schema/dist/standard-schema.js 420 B
standard-schema/dist/standard-schema.module.js 433 B
standard-schema/dist/standard-schema.umd.js 510 B
superstruct/dist/superstruct.js 339 B
superstruct/dist/superstruct.umd.js 437 B
typanion/dist/typanion.js 329 B
typanion/dist/typanion.umd.js 425 B
typebox/dist/typebox.js 501 B
typeschema/dist/typeschema.js 479 B
typeschema/dist/typeschema.module.js 491 B
typeschema/dist/typeschema.umd.js 586 B
valibot/dist/valibot.js 477 B
valibot/dist/valibot.umd.js 586 B
vest/dist/vest.js 479 B
vest/dist/vest.module.js 443 B
vest/dist/vest.umd.js 568 B
vine/dist/vine.js 543 B
vine/dist/vine.module.js 553 B
yup/dist/yup.js 626 B
yup/dist/yup.module.js 641 B
yup/dist/yup.umd.js 730 B
zod/dist/zod.js 611 B
zod/dist/zod.module.js 629 B

compressed-size-action

@jorisre jorisre marked this pull request as ready for review February 6, 2025 16:23
@jorisre jorisre requested a review from bluebill1049 February 6, 2025 16:24
"react-hook-form": "^7.0.0"
},
"dependencies": {
"caniuse-lite": "^1.0.30001698"
Copy link
Member

Choose a reason for hiding this comment

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

we need this?

Copy link

Choose a reason for hiding this comment

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

Is this comment resolved? I couldn't find any reference to this package in the diff.

@jorisre jorisre merged commit caaff8d into master Feb 10, 2025
3 of 4 checks passed
@jorisre jorisre deleted the feat/infer-from-schema branch February 10, 2025 17:21
@github-actions
Copy link
Contributor

🎉 This PR is included in version 4.1.0 🎉

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

4 participants