Skip to content

Commit af3f6b3

Browse files
authored
chore: deprecate adapters for zod and valibot (#1065)
standard schema libraries do not need an adapter anymore
1 parent c71544c commit af3f6b3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/valibot-form-adapter/src/validator.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ export function defaultFormTransformer(transformErrors: TransformFn) {
4343
})
4444
}
4545

46+
/**
47+
* @deprecated With valibot 1.0.0 the adapter is no longer needed and will be soon removed.
48+
* If you were passing some parameters you can use the `standardSchemaValidator` instead.
49+
*/
4650
export const valibotValidator =
4751
(
4852
params: Params = {},

packages/zod-form-adapter/src/validator.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export function defaultFormTransformer(transformErrors: TransformFn) {
4040
})
4141
}
4242

43+
/**
44+
* @deprecated With zod 3.24.0 the adapter is no longer needed and will be soon removed.
45+
* If you were passing some parameters you can use the `standardSchemaValidator` instead.
46+
*/
4347
export const zodValidator =
4448
(params: Params = {}): Validator<unknown, ZodType> =>
4549
() => {

0 commit comments

Comments
 (0)