Refactor action and route handlers to use async schema validation (#361)
- Removed the `zodParseFactory` utility and replaced it with direct async schema validation using `safeParseAsync` in both `enhanceAction` and `enhanceRouteHandler`. - Improved error handling to return meaningful messages for invalid request bodies. - Streamlined the codebase by deleting the now-unnecessary `utils/index.ts` file.
This commit is contained in:
committed by
GitHub
parent
2b8572baaa
commit
3c13b5ec1e
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "next-supabase-saas-kit-turbo",
|
||||
"version": "2.15.0",
|
||||
"version": "2.15.1",
|
||||
"private": true,
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
|
||||
Reference in New Issue
Block a user