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

Version 7 #163

Merged
merged 143 commits into from
Jun 13, 2024
Merged

Version 7 #163

merged 143 commits into from
Jun 13, 2024

Conversation

TheEdoRan
Copy link
Owner

No description provided.

TheEdoRan and others added 30 commits January 31, 2024 00:40
BREAKING CHANGE: `validationErrors` object now follows the same structure as Zod's
[`format()`](https://zod.dev/ERROR_HANDLING?id=formatting-errors) function.

re #51
…s server code function (#52)

In some cases it's very useful, if not essential, to set custom validation errors during action's server code execution. This commit adds a function called `returnValidationErrors` that allows you to set custom validation errors when defining actions. Big thanks to @theboxer for the implementation.
Update library version references from v6 to v7.
# Conflicts:
#	package-lock.json
#	packages/example-app/package.json
#	packages/example-app/src/app/page.tsx
#	website/docs/usage/client-components/integration-with-react-hook-form.md
This commit upgrades TypeSchema from v0.12 to v0.13. v0.13 is a major refactor of the library, which switched to a modular design. From now on, next-safe-action will use @typeschema/main to just include the common adapter logic without actually bundling adapters. This keeps the bundle size small, while allowing users to choose the specific validation libraries (and adapters) they want to use.
Copy link

🎉 This PR is included in version 7.0.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants