mobx-form 13.3.1 → 13.3.2

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/mobx-form.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  declare module 'mobx-form' {
2
+
3
+ export type Ret = boolean | { error: string } | void;
2
4
  export interface IValidatorFn<FieldType, ModelType> {
3
- (field: IField<FieldType, ModelType>, fields: { [P in keyof ModelType]: IField<ModelType[P], ModelType> }, formModel: IFormModel<ModelType>): Promise<void>;
5
+ (field: IField<FieldType, ModelType>, fields: { [P in keyof ModelType]: IField<ModelType[P], ModelType> }, formModel: IFormModel<ModelType>): Promise<Ret> | Ret;
4
6
  }
5
7
 
6
8
  export interface IHasValueFn<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobx-form",
3
- "version": "13.3.1",
3
+ "version": "13.3.2",
4
4
  "description": "A simple form helper for mobx",
5
5
  "main": "dist/mobx-form.cjs.js",
6
6
  "_browser": "dist/mobx-form.umd.js",
package/changelog.md DELETED
@@ -1,307 +0,0 @@
1
-
2
- # mobx-form - Changelog
3
- ## v13.3.1
4
- - **Features**
5
- - add dirty flag and commit method to form - [ebcc44a]( https://github.com/royriojas/mobx-form/commit/ebcc44a ), [Roy Riojas](https://github.com/Roy Riojas), 31/05/2023 17:37:50
6
-
7
-
8
- ## v13.3.0
9
- - **Features**
10
- - add validatedOnce flag - [64cfa58]( https://github.com/royriojas/mobx-form/commit/64cfa58 ), [Roy Riojas](https://github.com/Roy Riojas), 03/02/2023 12:27:36
11
-
12
-
13
- ## v13.2.1
14
- - **Other changes**
15
- - improved typings - [c9fa38e]( https://github.com/royriojas/mobx-form/commit/c9fa38e ), [Roy Riojas](https://github.com/Roy Riojas), 01/02/2023 01:42:51
16
-
17
-
18
- ## v13.2.0
19
- - **Other changes**
20
- - add option to store raw error - [e516ca0]( https://github.com/royriojas/mobx-form/commit/e516ca0 ), [Roy Riojas](https://github.com/Roy Riojas), 26/09/2021 07:49:51
21
-
22
-
23
- ## v13.1.1
24
- - **Bug Fixes**
25
- - fix typings - [973031f]( https://github.com/royriojas/mobx-form/commit/973031f ), [Roy Riojas](https://github.com/Roy Riojas), 14/09/2021 18:38:35
26
-
27
-
28
- ## v13.1.0
29
- - **Bug Fixes**
30
- - add method to mark as interacted - [0b56ae4]( https://github.com/royriojas/mobx-form/commit/0b56ae4 ), [Roy Riojas](https://github.com/Roy Riojas), 14/09/2021 18:35:37
31
-
32
-
33
- ## v13.0.0
34
- - **Bug Fixes**
35
- - include runtime to fix federated issue - [6a6d243]( https://github.com/royriojas/mobx-form/commit/6a6d243 ), [Roy Riojas](https://github.com/Roy Riojas), 13/09/2021 03:13:33
36
-
37
-
38
- ## v12.0.4
39
- - **Bug Fixes**
40
- - update types for updateFrom method - [8187fbc]( https://github.com/royriojas/mobx-form/commit/8187fbc ), [Roy Riojas](https://github.com/Roy Riojas), 29/08/2021 02:04:19
41
-
42
-
43
- ## v12.0.3
44
- - **Features**
45
- - add option to clear the error on value change - [bf370dc]( https://github.com/royriojas/mobx-form/commit/bf370dc ), [Roy Riojas](https://github.com/Roy Riojas), 08/06/2021 01:22:11
46
-
47
-
48
- ## v12.0.2
49
- - **Features**
50
- - Add custom debounce threshold for validator and ignoring of stale validations - [387d4b0]( https://github.com/royriojas/mobx-form/commit/387d4b0 ), [Roy Riojas](https://github.com/Roy Riojas), 08/06/2021 01:10:16
51
-
52
-
53
- ## v12.0.1
54
- - **Features**
55
- - Add better types for validator functions - [9170451]( https://github.com/royriojas/mobx-form/commit/9170451 ), [Roy Riojas](https://github.com/Roy Riojas), 04/06/2021 18:07:55
56
-
57
-
58
- ## v12.0.0
59
- - **Features**
60
- - Add isValidating prop to fields - [6240db6]( https://github.com/royriojas/mobx-form/commit/6240db6 ), [Roy Riojas](https://github.com/Roy Riojas), 26/03/2021 05:21:23
61
-
62
-
63
- ## v11.0.1
64
- - **Refactoring**
65
- - use types instead of typings - [d53d463]( https://github.com/royriojas/mobx-form/commit/d53d463 ), [Roy Riojas](https://github.com/Roy Riojas), 07/02/2021 01:52:43
66
-
67
-
68
- ## v11.0.0
69
- - **Bug Fixes**
70
- - fields with boolean values should be considered empty only if no value is set - [98112c6]( https://github.com/royriojas/mobx-form/commit/98112c6 ), [Roy Riojas](https://github.com/Roy Riojas), 21/01/2021 03:58:25
71
-
72
-
73
- ## v10.1.2
74
- - **Bug Fixes**
75
- - fix TS types - [6c9c250]( https://github.com/royriojas/mobx-form/commit/6c9c250 ), [Roy Riojas](https://github.com/Roy Riojas), 13/01/2021 21:42:54
76
-
77
-
78
- ## v10.1.1
79
- - **Refactoring**
80
- - upgrade deps to latest versions - [d4d2256]( https://github.com/royriojas/mobx-form/commit/d4d2256 ), [Roy Riojas](https://github.com/Roy Riojas), 13/01/2021 18:49:59
81
-
82
-
83
- ## v10.1.0
84
- - **Refactoring**
85
- - add option to not to throw if field is missing - [b51a63c]( https://github.com/royriojas/mobx-form/commit/b51a63c ), [Roy Riojas](https://github.com/Roy Riojas), 13/01/2021 18:28:20
86
-
87
-
88
- ## v10.0.5
89
- - **Refactoring**
90
- - Upgrade typescript types - [e37000c]( https://github.com/royriojas/mobx-form/commit/e37000c ), [Roy Riojas](https://github.com/Roy Riojas), 16/10/2020 01:58:23
91
-
92
-
93
- ## v10.0.4
94
- - **Refactoring**
95
- - Upgrade typescript types - [64610cf]( https://github.com/royriojas/mobx-form/commit/64610cf ), [Roy Riojas](https://github.com/Roy Riojas), 16/10/2020 01:52:30
96
-
97
-
98
- ## v10.0.3
99
- - **Refactoring**
100
- - Upgrade typescript types - [6edfe0f]( https://github.com/royriojas/mobx-form/commit/6edfe0f ), [Roy Riojas](https://github.com/Roy Riojas), 16/10/2020 00:50:18
101
-
102
-
103
- ## v10.0.2
104
- - **Refactoring**
105
- - Upgrade typescript types - [be233df]( https://github.com/royriojas/mobx-form/commit/be233df ), [Roy Riojas](https://github.com/Roy Riojas), 16/10/2020 00:47:04
106
-
107
-
108
- ## v10.0.1
109
- - **Refactoring**
110
- - Upgrade babel runtime dep - [0f6dc9c]( https://github.com/royriojas/mobx-form/commit/0f6dc9c ), [Roy Riojas](https://github.com/Roy Riojas), 15/10/2020 23:23:40
111
-
112
-
113
- ## v10.0.0
114
- - **Bug Fixes**
115
- - fix lint issues - [0bc9c13]( https://github.com/royriojas/mobx-form/commit/0bc9c13 ), [Roy Riojas](https://github.com/Roy Riojas), 15/10/2020 23:19:25
116
-
117
-
118
- - **Refactoring**
119
- - Migrate to Mobx@6 - [0c6a711]( https://github.com/royriojas/mobx-form/commit/0c6a711 ), [Roy Riojas](https://github.com/Roy Riojas), 15/10/2020 23:17:17
120
-
121
-
122
- ## v9.0.7
123
- - **Refactoring**
124
- - Add license file to mobx-form - [e25d4b3]( https://github.com/royriojas/mobx-form/commit/e25d4b3 ), [Roy Riojas](https://github.com/Roy Riojas), 04/09/2020 12:52:16
125
-
126
-
127
- ## v9.0.6
128
- - **Refactoring**
129
- - force validation marks the field as blurred - [e520d0c]( https://github.com/royriojas/mobx-form/commit/e520d0c ), [Roy Riojas](https://github.com/Roy Riojas), 14/05/2020 21:59:39
130
-
131
-
132
- ## v9.0.5
133
- - **Refactoring**
134
- - Update tests and typings - [5df9baa]( https://github.com/royriojas/mobx-form/commit/5df9baa ), [Roy Riojas](https://github.com/Roy Riojas), 14/05/2020 21:46:02
135
-
136
-
137
- ## v9.0.4
138
- - **Refactoring**
139
- - Update typings - [994336d]( https://github.com/royriojas/mobx-form/commit/994336d ), [Roy Riojas](https://github.com/Roy Riojas), 14/05/2020 20:16:51
140
-
141
-
142
- ## v9.0.3
143
- - **Refactoring**
144
- - Make the required prop also a string - [8b6995e]( https://github.com/royriojas/mobx-form/commit/8b6995e ), [Roy Riojas](https://github.com/Roy Riojas), 14/05/2020 20:03:02
145
-
146
-
147
- ## v9.0.1-beta.1
148
- - **Refactoring**
149
- - Add typings for mobx-form - [bceb65f]( https://github.com/royriojas/mobx-form/commit/bceb65f ), [Roy Riojas](https://github.com/Roy Riojas), 14/05/2020 19:46:10
150
-
151
-
152
- ## v9.0.0
153
- - **Refactoring**
154
- - Add a minor version change - [e6a016c]( https://github.com/royriojas/mobx-form/commit/e6a016c ), [Roy Riojas](https://github.com/Roy Riojas), 14/05/2020 01:06:33
155
-
156
-
157
- ## v8.0.0-beta.4
158
- - **Refactoring**
159
- - Upgrade beta version - [f467f2e]( https://github.com/royriojas/mobx-form/commit/f467f2e ), [Roy Riojas](https://github.com/Roy Riojas), 13/05/2020 23:27:03
160
-
161
-
162
- - publish beta-2 version - [9eb8f21]( https://github.com/royriojas/mobx-form/commit/9eb8f21 ), [Roy Riojas](https://github.com/Roy Riojas), 13/05/2020 23:16:39
163
-
164
-
165
- - bump beta version - [4ad0319]( https://github.com/royriojas/mobx-form/commit/4ad0319 ), [Roy Riojas](https://github.com/Roy Riojas), 13/05/2020 23:05:12
166
-
167
-
168
- - Upgrade modules - [b88b0d0]( https://github.com/royriojas/mobx-form/commit/b88b0d0 ), [Roy Riojas](https://github.com/Roy Riojas), 13/05/2020 23:03:38
169
-
170
-
171
- - Add blurredOnce getter - [b9b1309]( https://github.com/royriojas/mobx-form/commit/b9b1309 ), [Roy Riojas](https://github.com/Roy Riojas), 13/05/2020 21:25:42
172
-
173
-
174
- - Update babel pacakge version - [6a85d4d]( https://github.com/royriojas/mobx-form/commit/6a85d4d ), [Roy Riojas](https://github.com/Roy Riojas), 28/04/2020 01:34:54
175
-
176
-
177
- - Make use of latest rollup and babel plugins - [6bb8cbd]( https://github.com/royriojas/mobx-form/commit/6bb8cbd ), [Roy Riojas](https://github.com/Roy Riojas), 28/04/2020 01:34:22
178
-
179
-
180
- ## v8.0.0
181
- - **Refactoring**
182
- - Fix lint - [11eb2d6]( https://github.com/royriojas/mobx-form/commit/11eb2d6 ), [royriojas](https://github.com/royriojas), 10/09/2019 09:19:36
183
-
184
-
185
- - Major refactor on mobx-form and adding tests - [d9b0da0]( https://github.com/royriojas/mobx-form/commit/d9b0da0 ), [royriojas](https://github.com/royriojas), 10/09/2019 09:18:28
186
-
187
-
188
- ## v7.0.1
189
- - **Refactoring**
190
- - remove Observable arrays from serialization of fields - [741487e]( https://github.com/royriojas/mobx-form/commit/741487e ), [royriojas](https://github.com/royriojas), 19/08/2019 18:13:49
191
-
192
-
193
- ## v7.0.0-alpha.3
194
- - **Refactoring**
195
- - Attempt to change browser field to something webpack likes - take 2 - [95783ad]( https://github.com/royriojas/mobx-form/commit/95783ad ), [royriojas](https://github.com/royriojas), 04/08/2019 22:54:02
196
-
197
-
198
- ## v7.0.0-alpha.2
199
- - **Refactoring**
200
- - Attempt to change browser field to something webpack likes - [a7d9d65]( https://github.com/royriojas/mobx-form/commit/a7d9d65 ), [royriojas](https://github.com/royriojas), 04/08/2019 22:50:34
201
-
202
-
203
- ## v7.0.0-alpha.1
204
- - **Bug Fixes**
205
- - Fix lint issues - [b0a850d]( https://github.com/royriojas/mobx-form/commit/b0a850d ), [royriojas](https://github.com/royriojas), 04/08/2019 22:13:30
206
-
207
-
208
- ## v7.0.0-alpha.0
209
- - **Refactoring**
210
- - Simplify and improve mobx-form api - [8f48e28]( https://github.com/royriojas/mobx-form/commit/8f48e28 ), [royriojas](https://github.com/royriojas), 04/08/2019 22:10:29
211
-
212
-
213
- ## v5.2.2
214
- - **Refactoring**
215
- - Upgrade node_modules and use latest babel - [b795e13]( https://github.com/royriojas/mobx-form/commit/b795e13 ), [Roy Riojas](https://github.com/Roy Riojas), 07/05/2019 22:11:58
216
-
217
- Breaking change as now we transpile 2 versions of the module one for evergreen browsers and one for IE11
218
-
219
- ## v5.2.1
220
- - **Refactoring**
221
- - Add rest spread support - [48ae905]( https://github.com/royriojas/mobx-form/commit/48ae905 ), [Roy Riojas](https://github.com/Roy Riojas), 13/01/2019 18:58:53
222
-
223
-
224
- ## v5.2.0
225
- - **Features**
226
- - Add support to create a form from an array or an object descriptor - [19072dc]( https://github.com/royriojas/mobx-form/commit/19072dc ), [Roy Riojas](https://github.com/Roy Riojas), 13/01/2019 17:51:12
227
-
228
-
229
- ## v5.0.3
230
- - **Features**
231
- - pass the model instance to the validators - [f4045c1]( https://github.com/royriojas/mobx-form/commit/f4045c1 ), [Roy Riojas](https://github.com/Roy Riojas), 20/12/2018 01:50:08
232
-
233
-
234
- ## v5.0.2
235
- - **Refactoring**
236
- - Be compatible with enforceActions option of mobx - [d419fba]( https://github.com/royriojas/mobx-form/commit/d419fba ), [Roy Riojas](https://github.com/Roy Riojas), 17/08/2018 04:10:08
237
-
238
-
239
- ## v5.0.1
240
- - **Bug Fixes**
241
- - wrong entry point for UMD target - [de06c9d]( https://github.com/royriojas/mobx-form/commit/de06c9d ), [Roy Riojas](https://github.com/Roy Riojas), 09/08/2018 20:28:53
242
-
243
-
244
- ## v5.0.0
245
- - **Refactoring**
246
- - remove dependency on regenerator - [e8bdbc9]( https://github.com/royriojas/mobx-form/commit/e8bdbc9 ), [Roy Riojas](https://github.com/Roy Riojas), 09/08/2018 20:27:41
247
-
248
-
249
- ## v4.0.0
250
- - **Refactoring**
251
- - Create a smaller umd bundle - [81d81e3]( https://github.com/royriojas/mobx-form/commit/81d81e3 ), [Roy Riojas](https://github.com/Roy Riojas), 09/08/2018 20:07:12
252
-
253
-
254
- - **Other changes**
255
- - Update FormModel.test.js - [bff561e]( https://github.com/royriojas/mobx-form/commit/bff561e ), [Roy Riojas](https://github.com/Roy Riojas), 09/08/2018 19:24:08
256
-
257
-
258
- ## v3.0.2
259
- - **Refactoring**
260
- - Add prepublish script - [f0dde93]( https://github.com/royriojas/mobx-form/commit/f0dde93 ), [Roy Riojas](https://github.com/Roy Riojas), 08/08/2018 19:32:01
261
-
262
-
263
- ## v3.0.1
264
- - **Refactoring**
265
- - rename the bundle output - [49d010d]( https://github.com/royriojas/mobx-form/commit/49d010d ), [Roy Riojas](https://github.com/Roy Riojas), 08/08/2018 19:24:28
266
-
267
-
268
- ## v3.0.0
269
- - **Refactoring**
270
- - Use rollup to create umd/esm/cjs bundles - [697d75c]( https://github.com/royriojas/mobx-form/commit/697d75c ), [Roy Riojas](https://github.com/Roy Riojas), 08/08/2018 12:38:47
271
-
272
-
273
- ## v2.1.1
274
- - **Documentation**
275
- - Fix missing peer dependency - [9feae5e]( https://github.com/royriojas/mobx-form/commit/9feae5e ), [Roy Riojas](https://github.com/Roy Riojas), 08/08/2018 10:57:06
276
-
277
-
278
- ## v2.1.0
279
- - **Documentation**
280
- - update documenation - [7718d79]( https://github.com/royriojas/mobx-form/commit/7718d79 ), [Roy Riojas](https://github.com/Roy Riojas), 08/08/2018 10:16:28
281
-
282
-
283
- ## v2.0.0
284
- - **Refactoring**
285
- - Update FormModel to add new features and tests - [4e449d9]( https://github.com/royriojas/mobx-form/commit/4e449d9 ), [Roy Riojas](https://github.com/Roy Riojas), 08/08/2018 08:28:41
286
-
287
-
288
- ## v1.0.1
289
- - **Build Scripts Changes**
290
- - Add build tasks - [2b36cf5]( https://github.com/royriojas/mobx-form/commit/2b36cf5 ), [Roy Riojas](https://github.com/Roy Riojas), 23/06/2016 18:26:51
291
-
292
-
293
- - **Refactoring**
294
- - Add a helper to improve how fields are set - [c208bc7]( https://github.com/royriojas/mobx-form/commit/c208bc7 ), [Roy Riojas](https://github.com/Roy Riojas), 23/06/2016 18:22:35
295
-
296
-
297
- - **Documentation**
298
- - add more documentation - [443d90d]( https://github.com/royriojas/mobx-form/commit/443d90d ), [Roy Riojas](https://github.com/Roy Riojas), 15/06/2016 11:02:55
299
-
300
-
301
- - add missed import - [3da648e]( https://github.com/royriojas/mobx-form/commit/3da648e ), [Roy Riojas](https://github.com/Roy Riojas), 15/06/2016 10:53:32
302
-
303
-
304
- - **Features**
305
- - initial version - [02003a4]( https://github.com/royriojas/mobx-form/commit/02003a4 ), [Roy Riojas](https://github.com/Roy Riojas), 15/06/2016 10:49:00
306
-
307
-