react-hook-form 6.9.2 → 6.9.5
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 +60 -42
- package/dist/index.cjs.development.js +171 -144
- package/dist/index.cjs.development.js.map +1 -1
- package/dist/index.cjs.production.min.js +1 -1
- package/dist/index.cjs.production.min.js.map +1 -1
- package/dist/index.esm.js +172 -146
- package/dist/index.esm.js.map +1 -1
- package/dist/index.ie11.development.js +199 -170
- package/dist/index.ie11.development.js.map +1 -1
- package/dist/index.ie11.production.min.js +1 -1
- package/dist/index.ie11.production.min.js.map +1 -1
- package/dist/index.umd.development.js +171 -144
- package/dist/index.umd.development.js.map +1 -1
- package/dist/index.umd.production.min.js +1 -1
- package/dist/index.umd.production.min.js.map +1 -1
- package/dist/logic/transformToNestObject.d.ts +1 -1
- package/dist/types/fieldArray.d.ts +9 -0
- package/dist/types/form.d.ts +3 -5
- package/dist/types/utils.d.ts +4 -4
- package/dist/useFieldArray.d.ts +2 -10
- package/dist/utils/cloneObject.d.ts +1 -0
- package/dist/utils/{filterBooleanArray.test.d.ts → cloneObject.test.d.ts} +0 -0
- package/dist/utils/{filterOutFalsy.d.ts → compact.d.ts} +0 -0
- package/dist/utils/{filterOutFalsy.test.d.ts → compact.test.d.ts} +0 -0
- package/dist/utils/{filterBooleanArray.d.ts → fillBooleanArray.d.ts} +0 -0
- package/dist/utils/{isArray.test.d.ts → fillBooleanArray.test.d.ts} +0 -0
- package/package.json +1 -1
- package/dist/utils/isArray.d.ts +0 -2
package/README.md
CHANGED
@@ -34,7 +34,7 @@ English | <a href="./docs/README.zh-TW.md">繁中</a> | <a href="./docs/README.z
|
|
34
34
|
- Simple integration with [UI libraries](https://codesandbox.io/s/react-hook-form-v6-controller-24gcl)
|
35
35
|
- [Tiny size](https://bundlephobia.com/result?p=react-hook-form@latest) without any dependency
|
36
36
|
- Follows HTML standard for [validation](https://react-hook-form.com/get-started#Applyvalidation)
|
37
|
-
- [Resolvers](https://github.com/react-hook-form/resolvers) support [Yup](https://github.com/jquense/yup), [Superstruct](https://github.com/ianstormtaylor/superstruct), [Joi](https://github.com/hapijs/joi) or custom
|
37
|
+
- [Resolvers](https://github.com/react-hook-form/resolvers) support [Yup](https://github.com/jquense/yup), [Zod](https://github.com/vriad/zod), [Superstruct](https://github.com/ianstormtaylor/superstruct), [Joi](https://github.com/hapijs/joi) or custom
|
38
38
|
- Build forms quickly with [Form Builder](https://react-hook-form.com/form-builder)
|
39
39
|
|
40
40
|
## Install
|
@@ -82,147 +82,165 @@ function App() {
|
|
82
82
|
Thanks go to these kind and lovely sponsors (company and individuals)!
|
83
83
|
|
84
84
|
<a href="https://underbelly.is/" target="_blank">
|
85
|
-
<img src="https://images.opencollective.com/underbelly/989a4a6/logo/256.png" width="
|
85
|
+
<img src="https://images.opencollective.com/underbelly/989a4a6/logo/256.png" width="84" height="84" />
|
86
86
|
</a>
|
87
87
|
|
88
88
|
<p>
|
89
89
|
<a href="https://github.com/sayav"
|
90
90
|
><img
|
91
91
|
src="https://avatars1.githubusercontent.com/u/42376060?s=60&v=4"
|
92
|
-
width="
|
93
|
-
height="
|
92
|
+
width="40"
|
93
|
+
height="40"
|
94
94
|
alt="@sayav"
|
95
95
|
/></a>
|
96
96
|
<a href="https://github.com/lemcii"
|
97
97
|
><img
|
98
98
|
src="https://avatars1.githubusercontent.com/u/35668113?s=60&v=4"
|
99
|
-
width="
|
100
|
-
height="
|
99
|
+
width="40"
|
100
|
+
height="40"
|
101
101
|
alt="@lemcii"
|
102
102
|
/></a>
|
103
103
|
<a href="https://github.com/washingtonsoares"
|
104
104
|
><img
|
105
105
|
src="https://avatars0.githubusercontent.com/u/5726140?s=460&u=b300a6fa08a24c59b9db6ebf246384cf8b16a140&v=4"
|
106
|
-
width="
|
107
|
-
height="
|
106
|
+
width="40"
|
107
|
+
height="40"
|
108
108
|
alt="@washingtonsoares"
|
109
109
|
/></a>
|
110
110
|
<a href="https://github.com/lixunn"
|
111
111
|
><img
|
112
112
|
src="https://avatars0.githubusercontent.com/u/4017964?s=460&u=3a3fdffeb97749d7509d9c5e9be2cafcb98e426f&v=4"
|
113
|
-
width="
|
114
|
-
height="
|
113
|
+
width="40"
|
114
|
+
height="40"
|
115
115
|
alt="@lixunn"
|
116
116
|
/></a>
|
117
117
|
<a href="https://github.com/SamSamskies"
|
118
118
|
><img
|
119
119
|
src="https://avatars2.githubusercontent.com/u/3655410?s=60&v=4"
|
120
|
-
width="
|
121
|
-
height="
|
120
|
+
width="40"
|
121
|
+
height="40"
|
122
122
|
alt="@SamSamskies"
|
123
123
|
/></a>
|
124
124
|
<a href="https://github.com/peaonunes"
|
125
125
|
><img
|
126
126
|
src="https://avatars2.githubusercontent.com/u/3356720?s=60&v=4"
|
127
|
-
width="
|
128
|
-
height="
|
127
|
+
width="40"
|
128
|
+
height="40"
|
129
129
|
alt="@peaonunes"
|
130
130
|
/></a>
|
131
131
|
<a href="https://github.com/wilhelmeek"
|
132
132
|
><img
|
133
133
|
src="https://avatars2.githubusercontent.com/u/609452?s=60&v=4"
|
134
|
-
width="
|
135
|
-
height="
|
134
|
+
width="40"
|
135
|
+
height="40"
|
136
136
|
alt="@wilhelmeek"
|
137
137
|
/></a>
|
138
138
|
<a href="https://github.com/iwarner"
|
139
139
|
><img
|
140
140
|
src="https://avatars2.githubusercontent.com/u/279251?s=60&v=4"
|
141
|
-
width="
|
142
|
-
height="
|
141
|
+
width="40"
|
142
|
+
height="40"
|
143
143
|
alt="@iwarner"
|
144
144
|
/></a>
|
145
145
|
<a href="https://github.com/joejknowles"
|
146
146
|
><img
|
147
147
|
src="https://avatars2.githubusercontent.com/u/10728145?s=60&v=4"
|
148
|
-
width="
|
149
|
-
height="
|
148
|
+
width="40"
|
149
|
+
height="40"
|
150
150
|
alt="@joejknowles"
|
151
151
|
/></a>
|
152
152
|
<a href="https://github.com/chris-gunawardena"
|
153
153
|
><img
|
154
154
|
src="https://avatars0.githubusercontent.com/u/5763108?s=60&v=4"
|
155
|
-
width="
|
156
|
-
height="
|
155
|
+
width="40"
|
156
|
+
height="40"
|
157
157
|
alt="@chris-gunawardena"
|
158
158
|
/></a>
|
159
159
|
<a href="https://github.com/Tymek"
|
160
160
|
><img
|
161
161
|
src="https://avatars1.githubusercontent.com/u/2625371?s=60&v=4"
|
162
|
-
width="
|
163
|
-
height="
|
162
|
+
width="40"
|
163
|
+
height="40"
|
164
164
|
alt="@Tymek"
|
165
165
|
/></a>
|
166
166
|
<a href="https://github.com/Luchanso"
|
167
167
|
><img
|
168
168
|
src="https://avatars0.githubusercontent.com/u/2098777?s=60&v=4"
|
169
|
-
width="
|
170
|
-
height="
|
169
|
+
width="40"
|
170
|
+
height="40"
|
171
171
|
alt="@Luchanso"
|
172
172
|
/></a>
|
173
173
|
<a href="https://github.com/vcarel"
|
174
174
|
><img
|
175
175
|
src="https://avatars1.githubusercontent.com/u/1541093?s=60&v=4"
|
176
|
-
width="
|
177
|
-
height="
|
176
|
+
width="40"
|
177
|
+
height="40"
|
178
178
|
alt="@vcarel"
|
179
179
|
/></a>
|
180
180
|
<a href="https://github.com/gragland"
|
181
181
|
><img
|
182
182
|
src="https://avatars0.githubusercontent.com/u/1481077?s=60&v=4"
|
183
|
-
width="
|
184
|
-
height="
|
183
|
+
width="40"
|
184
|
+
height="40"
|
185
185
|
alt="@gragland"
|
186
186
|
/></a>
|
187
187
|
<a href="https://github.com/tjshipe"
|
188
188
|
><img
|
189
189
|
src="https://avatars2.githubusercontent.com/u/1254942?s=60&v=4"
|
190
|
-
width="
|
191
|
-
height="
|
190
|
+
width="40"
|
191
|
+
height="40"
|
192
192
|
alt="@tjshipe"
|
193
193
|
/></a>
|
194
194
|
<a href="https://github.com/krnlde"
|
195
195
|
><img
|
196
196
|
src="https://avatars1.githubusercontent.com/u/1087002?s=60&v=4"
|
197
|
-
width="
|
198
|
-
height="
|
197
|
+
width="40"
|
198
|
+
height="40"
|
199
199
|
alt="@krnlde"
|
200
200
|
/></a>
|
201
201
|
<a href="https://github.com/msutkowski"
|
202
202
|
><img
|
203
203
|
src="https://avatars2.githubusercontent.com/u/784953?s=60&v=4"
|
204
|
-
width="
|
205
|
-
height="
|
204
|
+
width="40"
|
205
|
+
height="40"
|
206
206
|
alt="@msutkowski"
|
207
207
|
/></a>
|
208
208
|
<a href="https://github.com/mlukaszczyk"
|
209
209
|
><img
|
210
210
|
src="https://avatars3.githubusercontent.com/u/599247?s=60&v=4"
|
211
|
-
width="
|
212
|
-
height="
|
211
|
+
width="40"
|
212
|
+
height="40"
|
213
213
|
alt="@mlukaszczyk"
|
214
214
|
/></a>
|
215
215
|
<a href="https://github.com/susshma"
|
216
216
|
><img
|
217
217
|
src="https://avatars0.githubusercontent.com/u/2566818?s=460&u=754ee26b96e321ff28dbc4a2744132015f534fe0&v=4"
|
218
|
-
width="
|
219
|
-
height="
|
218
|
+
width="40"
|
219
|
+
height="40"
|
220
220
|
/></a>
|
221
221
|
<a href="https://github.com/MatiasCiccone"
|
222
222
|
><img
|
223
223
|
src="https://avatars3.githubusercontent.com/u/32602795?s=460&u=6a0c4dbe23c4f9a5628dc8867842b75989ecc4aa&v=4"
|
224
|
-
width="
|
225
|
-
height="
|
224
|
+
width="40"
|
225
|
+
height="40"
|
226
|
+
/></a>
|
227
|
+
<a href="https://github.com/ghostwriternr"
|
228
|
+
><img
|
229
|
+
src="https://avatars0.githubusercontent.com/u/10023615?s=460&u=3ec1e4ba991699762fd22a9d9ef47a0599f937dc&v=4"
|
230
|
+
width="40"
|
231
|
+
height="40"
|
232
|
+
/></a>
|
233
|
+
<a href="https://github.com/neighborhood999"
|
234
|
+
><img
|
235
|
+
src="https://avatars3.githubusercontent.com/u/10325111?s=400&u=f60c932f81d95a60f77f5c7f2eab4590e07c29af&v=4"
|
236
|
+
width="40"
|
237
|
+
height="40"
|
238
|
+
/></a>
|
239
|
+
<a href="https://github.com/yjp20"
|
240
|
+
><img
|
241
|
+
src="https://avatars3.githubusercontent.com/u/44457064?s=460&u=a55119c84e0167f6a3f830dbad3133b28f0c0a8f&v=4"
|
242
|
+
width="40"
|
243
|
+
height="40"
|
226
244
|
/></a>
|
227
245
|
</p>
|
228
246
|
|