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

v6 #46

Merged
merged 28 commits into from
Jan 2, 2024
Merged

v6 #46

merged 28 commits into from
Jan 2, 2024

Conversation

TheEdoRan
Copy link
Owner

No description provided.

BREAKING CHANGE: `validationError` is now called `validationErrors` with two nested keys: `form` and
`fields` (matching Zod's `formErrors` and `fieldErrors`).
BREAKING CHANGE: Hooks must be imported from /hooks instead of /hook from now on.
BREAKING CHANGE: You must import types from /types instead of / and /hook paths
… string

BREAKING CHANGE: Return type of optional `handleReturnedServerError` function is now `string`,
instead of `{ serverError: string }`.
Thanks to TypeSchema library, we can now support multiple validators, so next-safe-action is no
longer limited to just Zod validation. More information here: https://typeschema.com/#coverage
Copy link

vercel bot commented Jan 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
next-safe-action-example-app ✅ Ready (Inspect) Visit Preview Jan 2, 2024 5:11pm
next-safe-action-website ✅ Ready (Inspect) Visit Preview Jan 2, 2024 5:11pm

@TheEdoRan TheEdoRan merged commit b7c8985 into main Jan 2, 2024
7 checks passed
Copy link

github-actions bot commented Jan 2, 2024

🎉 This PR is included in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@TheEdoRan TheEdoRan deleted the alpha branch January 2, 2024 20:46
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.

1 participant