Skip to content

Bump @rvf/react-router from 7.0.4 to 7.1.2 #194

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 16, 2025

Bumps @rvf/react-router from 7.0.4 to 7.1.2.

Release notes

Sourced from @​rvf/react-router's releases.

v7.1.0 -- Standard Schema support

Overview

The main addition for this release is support for Standard Schema. 🎉 We've also stabalized the useNativeValidityForForm api.

Standard Schema

It's now possible to directly pass zod, valibot, or any other Standard Schema compliant schema into the useForm hook or ValidatedForm component. To do this, you need to use the new schema option.

useForm({
  schema: z.object({ /* etc */ }),
})

Some other new features around this are:

Default values are now required

When using a Standard Schema schema, the defaultValues option is required. It remains optional if you're still using a validator.

Type inference for default values

Standard Schema allows schemas to define an input type for the schema. This is used to infer the type of default values, but it's still possible to widen this type if you need.

useForm({
  schema: z.object({
    myNumber: z.number(),
    myOtherNumber: z.number(),
  }),
  defaultValues: {
    // This still works!
    myNumber: null as null | number,
    // But this fails
    myOtherNumber: null,
  }
})

Zod and Valibot adapters deprecated

Zod and Valibot both support Standard Schema, so they are automatically supported by the schema prop. Therefore, the withZod and withValibot adapters are now deprecated.

Future direction

I'm planning on eventually removing the validator prop in favor of schema. The official Yup adapter will eventually be reworked to wrap the Yup schema to make it Standard Schema compliant, rather than using a custom Validator object.

useNativeValidityForForm

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@rvf/react-router](https://github.com/airjp73/remix-validated-form) from 7.0.4 to 7.1.2.
- [Release notes](https://github.com/airjp73/remix-validated-form/releases)
- [Commits](https://github.com/airjp73/remix-validated-form/commits)

---
updated-dependencies:
- dependency-name: "@rvf/react-router"
  dependency-version: 7.1.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 16, 2025
@dependabot dependabot bot requested a review from a team as a code owner April 16, 2025 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants