You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ability to actively not initialize value if initialData's value is set to `null`
12
+
13
+
- ability to actively not initialize value if initialData's value is set to `null`
9
14
10
15
#### 3.1.1
11
-
* removed `_initial` fields from all passed data and state props
12
-
* fixed a bug that rendered initial forms with empty data
16
+
17
+
- removed `_initial` fields from all passed data and state props
18
+
- fixed a bug that rendered initial forms with empty data
13
19
14
20
#### 3.1.0
15
-
* refactored underlying structures in order to support re-initialisation and more stable form resets.
16
-
* fixed React setState errors.
21
+
22
+
- refactored underlying structures in order to support re-initialisation and more stable form resets.
23
+
- fixed React setState errors.
17
24
18
25
### 3.0
19
26
20
27
#### 3.0.1
21
-
* Form's initial render is now skipped by default as it is not populated with data yet. It will automatically rerender once.
28
+
29
+
- Form's initial render is now skipped by default as it is not populated with data yet. It will automatically rerender once.
22
30
23
31
#### 3.0.0
32
+
24
33
This major release removes all old APIs (including HoCs) and reduces the whole API to just two simple components Field and Form.
25
34
26
35
Check the [Migration Guide](docs/introduction/Migration.md) for more information on how to migrate older versions.
@@ -30,65 +39,81 @@ Check the [Migration Guide](docs/introduction/Migration.md) for more information
30
39
### 2.0
31
40
32
41
#### 2.0.0
42
+
33
43
This new major release was an accidently released major version introducing the new render-props APIs. It did modify the existing Form component a bit, but was still backwards-compatible.<br>
34
44
35
45
## 1.0
36
46
37
47
### 1.2
38
48
39
49
### 1.2.5
40
-
* do not pass `initialState` to the underlaying `<form>`-element
41
-
50
+
51
+
- do not pass `initialState` to the underlaying `<form>`-element
52
+
42
53
#### 1.2.4
43
-
* pass the enhanced `onSubmit` rather than the pure `onSubmit` to the form
54
+
55
+
- pass the enhanced `onSubmit` rather than the pure `onSubmit` to the form
44
56
45
57
#### 1.2.3
46
-
* do not pass `initialFields` to the underlaying `<form>`-element
58
+
59
+
- do not pass `initialFields` to the underlaying `<form>`-element
47
60
48
61
#### 1.2.0
62
+
49
63
##### API
50
-
* introducing `asUpdate` to inject `updateField` and `updateState` into any React component
51
64
52
-
-------
65
+
- introducing `asUpdate` to inject `updateField` and `updateState` into any React component
66
+
67
+
---
53
68
54
69
### 1.1
55
70
56
71
#### 1.1.7
57
-
* do not call `onChange` during form initialization
72
+
73
+
- do not call `onChange` during form initialization
58
74
59
75
#### 1.1.6
60
-
* fixed a bug where `isTouched` was not updated correctly
76
+
77
+
- fixed a bug where `isTouched` was not updated correctly
61
78
62
79
#### 1.1.5
63
-
* added some simple helper
80
+
81
+
- added some simple helper
64
82
65
83
#### 1.1.4
66
-
* preserve initial data and state on `resetForm`
84
+
85
+
- preserve initial data and state on `resetForm`
67
86
68
87
#### 1.1.3
69
-
* fixed `resetForm` actions in Form's onSubmit and `asReset`
88
+
89
+
- fixed `resetForm` actions in Form's onSubmit and `asReset`
70
90
71
91
#### 1.1.2
72
-
* fixed an resolving issue in Form
73
-
* improved action dispatcher
92
+
93
+
- fixed an resolving issue in Form
94
+
- improved action dispatcher
74
95
75
96
#### 1.1.1
76
-
*`asField`'s second parameter `defaultField` now also accepts a function of props that returns the default field data as an object
97
+
98
+
-`asField`'s second parameter `defaultField` now also accepts a function of props that returns the default field data as an object
77
99
78
100
#### 1.1.0
79
101
80
102
##### Form State
81
-
* added the `withState`-HOC to provide form state to components
82
-
* now passing `state` and `updateState` to both Form's `onChange` and `onSubmit`
83
-
* passing `state` and `updateState` to the `asField`-HOC
103
+
104
+
- added the `withState`-HOC to provide form state to components
105
+
- now passing `state` and `updateState` to both Form's `onChange` and `onSubmit`
106
+
- passing `state` and `updateState` to the `asField`-HOC
84
107
85
108
##### Improvements
86
-
* added the `ownProps` (second) parameter to `withData`- and `withState`-HOC
87
-
* added the `defaultData` (second) parameter to the `asField`-HOC
88
-
* passing `previousData` to Form's `onChange`
89
-
* Ability to disable auto-execution of `event.preventDefault` on submit
90
109
91
-
-------
110
+
- added the `ownProps` (second) parameter to `withData`- and `withState`-HOC
111
+
- added the `defaultData` (second) parameter to the `asField`-HOC
112
+
- passing `previousData` to Form's `onChange`
113
+
- Ability to disable auto-execution of `event.preventDefault` on submit
0 commit comments