Skip to content

Commit 6ddaebf

Browse files
authored
Merge branch 'master' into fix/zod-v4-peer-deps
2 parents 6ff8289 + f040039 commit 6ddaebf

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

ajv/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"react-hook-form": "^7.55.0",
1515
"@hookform/resolvers": "^2.0.0",
1616
"ajv": "^8.12.0",
17-
"ajv-errors": "^3.0.0"
17+
"ajv-errors": "^3.0.0",
18+
"ajv-formats": "^2.1.1"
1819
}
1920
}

ajv/src/ajv.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { toNestErrors, validateFieldsNatively } from '@hookform/resolvers';
22
import Ajv, { DefinedError } from 'ajv';
33
import ajvErrors from 'ajv-errors';
4+
import addFormats from 'ajv-formats';
45
import { FieldError, appendErrors } from 'react-hook-form';
56
import { AjvError, Resolver } from './types';
67

@@ -93,6 +94,7 @@ export const ajvResolver: Resolver =
9394
);
9495

9596
ajvErrors(ajv);
97+
addFormats(ajv);
9698

9799
const validate = ajv.compile(
98100
Object.assign(

bun.lock

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"build:fluentvalidation-ts": "microbundle --cwd fluentvalidation-ts --globals @hookform/resolvers=hookformResolvers,react-hook-form=ReactHookForm",
223223
"build:standard-schema": "microbundle --cwd standard-schema --globals @hookform/resolvers=hookformResolvers,react-hook-form=ReactHookForm,@standard-schema/spec=standardSchema",
224224
"postbuild": "node ./config/node-13-exports.js && check-export-map",
225-
"lint": "bunx @biomejs/biome check --write --vcs-use-ignore-file=true .",
225+
"lint": "biome check --write --vcs-use-ignore-file=true .",
226226
"lint:types": "tsc",
227227
"test": "vitest run",
228228
"test:watch": "vitest watch",
@@ -267,6 +267,7 @@
267267
},
268268
"homepage": "https://react-hook-form.com",
269269
"devDependencies": {
270+
"@biomejs/biome": "^1.8.3",
270271
"@sinclair/typebox": "^0.34.30",
271272
"@standard-schema/spec": "^1.0.0",
272273
"@testing-library/dom": "^10.4.0",
@@ -282,6 +283,7 @@
282283
"@vitejs/plugin-react": "^4.3.4",
283284
"ajv": "^8.17.1",
284285
"ajv-errors": "^3.0.0",
286+
"ajv-formats": "^2.1.1",
285287
"arktype": "2.0.4",
286288
"check-export-map": "^1.3.1",
287289
"class-transformer": "^0.5.1",

0 commit comments

Comments
 (0)