@hookform/resolvers 2.8.10 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -3
- package/ajv/dist/ajv.d.ts +2 -0
- package/ajv/dist/ajv.js +8 -0
- package/ajv/dist/ajv.js.map +1 -0
- package/ajv/dist/ajv.mjs +8 -0
- package/ajv/dist/ajv.modern.js +8 -0
- package/ajv/dist/ajv.modern.js.map +1 -0
- package/ajv/dist/ajv.module.js +8 -0
- package/ajv/dist/ajv.module.js.map +1 -0
- package/ajv/dist/ajv.umd.js +8 -0
- package/ajv/dist/ajv.umd.js.map +1 -0
- package/ajv/dist/index.d.ts +2 -0
- package/ajv/dist/types.d.ts +5 -0
- package/ajv/package.json +17 -0
- package/ajv/src/__tests__/Form-native-validation.tsx +98 -0
- package/ajv/src/__tests__/Form.tsx +67 -0
- package/ajv/src/__tests__/__fixtures__/data.ts +70 -0
- package/ajv/src/__tests__/__snapshots__/ajv.ts.snap +189 -0
- package/ajv/src/__tests__/ajv.ts +84 -0
- package/ajv/src/ajv.ts +84 -0
- package/ajv/src/index.ts +2 -0
- package/ajv/src/types.ts +17 -0
- package/package.json +16 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hookform/resolvers",
|
|
3
3
|
"amdName": "hookformResolvers",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.9.0",
|
|
5
5
|
"description": "React Hook Form validation resolvers: Yup, Joi, Superstruct, Zod, Vest, Class Validator, io-ts, Nope, computed-types and Typanion",
|
|
6
6
|
"main": "dist/resolvers.js",
|
|
7
7
|
"module": "dist/resolvers.module.js",
|
|
@@ -75,6 +75,12 @@
|
|
|
75
75
|
"import": "./typanion/dist/typanion.mjs",
|
|
76
76
|
"require": "./typanion/dist/typanion.js"
|
|
77
77
|
},
|
|
78
|
+
"./ajv": {
|
|
79
|
+
"browser": "./ajv/dist/ajv.module.js",
|
|
80
|
+
"umd": "./ajv/dist/ajv.umd.js",
|
|
81
|
+
"import": "./ajv/dist/ajv.mjs",
|
|
82
|
+
"require": "./ajv/dist/ajv.js"
|
|
83
|
+
},
|
|
78
84
|
"./package.json": "./package.json",
|
|
79
85
|
"./*": "./*"
|
|
80
86
|
},
|
|
@@ -109,7 +115,10 @@
|
|
|
109
115
|
"computed-types/dist",
|
|
110
116
|
"typanion/package.json",
|
|
111
117
|
"typanion/src",
|
|
112
|
-
"typanion/dist"
|
|
118
|
+
"typanion/dist",
|
|
119
|
+
"ajv/package.json",
|
|
120
|
+
"ajv/src",
|
|
121
|
+
"ajv/dist"
|
|
113
122
|
],
|
|
114
123
|
"publishConfig": {
|
|
115
124
|
"access": "public"
|
|
@@ -128,6 +137,7 @@
|
|
|
128
137
|
"build:nope": "microbundle --cwd nope --globals '@hookform/resolvers=hookformResolvers'",
|
|
129
138
|
"build:computed-types": "microbundle --cwd computed-types --globals '@hookform/resolvers=hookformResolvers'",
|
|
130
139
|
"build:typanion": "microbundle --cwd typanion --globals '@hookform/resolvers=hookformResolvers'",
|
|
140
|
+
"build:ajv": "microbundle --cwd ajv --globals '@hookform/resolvers=hookformResolvers'",
|
|
131
141
|
"postbuild": "node ./config/node-13-exports.js",
|
|
132
142
|
"lint": "eslint . --ext .ts,.js --ignore-path .gitignore",
|
|
133
143
|
"lint:types": "tsc",
|
|
@@ -151,7 +161,8 @@
|
|
|
151
161
|
"io-ts",
|
|
152
162
|
"nope",
|
|
153
163
|
"computed-types",
|
|
154
|
-
"typanion"
|
|
164
|
+
"typanion",
|
|
165
|
+
"ajv"
|
|
155
166
|
],
|
|
156
167
|
"repository": {
|
|
157
168
|
"type": "git",
|
|
@@ -171,6 +182,8 @@
|
|
|
171
182
|
"@types/react": "^17.0.38",
|
|
172
183
|
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
|
173
184
|
"@typescript-eslint/parser": "^5.10.0",
|
|
185
|
+
"ajv": "^8.11.0",
|
|
186
|
+
"ajv-errors": "^3.0.0",
|
|
174
187
|
"check-export-map": "^1.2.0",
|
|
175
188
|
"class-transformer": "^0.5.1",
|
|
176
189
|
"class-validator": "^0.13.2",
|