Skip to content

Commit d8f1162

Browse files
committed
remove all docs for now
1 parent 517175e commit d8f1162

30 files changed

+257
-1020
lines changed

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

Changelog.md

Lines changed: 53 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
# Changelog
22

3+
## 4.0
4+
5+
Complete refactor in order to use React Hooks.
6+
37
## 3.0
48

59
### 3.1
610

711
#### 3.1.3
8-
* 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`
914

1015
#### 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
1319

1420
#### 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.
1724

1825
### 3.0
1926

2027
#### 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.
2230

2331
#### 3.0.0
32+
2433
This major release removes all old APIs (including HoCs) and reduces the whole API to just two simple components Field and Form.
2534

2635
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
3039
### 2.0
3140

3241
#### 2.0.0
42+
3343
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>
3444

3545
## 1.0
3646

3747
### 1.2
3848

3949
### 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+
4253
#### 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
4456

4557
#### 1.2.3
46-
* do not pass `initialFields` to the underlaying `<form>`-element
58+
59+
- do not pass `initialFields` to the underlaying `<form>`-element
4760

4861
#### 1.2.0
62+
4963
##### API
50-
* introducing `asUpdate` to inject `updateField` and `updateState` into any React component
5164

52-
-------
65+
- introducing `asUpdate` to inject `updateField` and `updateState` into any React component
66+
67+
---
5368

5469
### 1.1
5570

5671
#### 1.1.7
57-
* do not call `onChange` during form initialization
72+
73+
- do not call `onChange` during form initialization
5874

5975
#### 1.1.6
60-
* fixed a bug where `isTouched` was not updated correctly
76+
77+
- fixed a bug where `isTouched` was not updated correctly
6178

6279
#### 1.1.5
63-
* added some simple helper
80+
81+
- added some simple helper
6482

6583
#### 1.1.4
66-
* preserve initial data and state on `resetForm`
84+
85+
- preserve initial data and state on `resetForm`
6786

6887
#### 1.1.3
69-
* fixed `resetForm` actions in Form's onSubmit and `asReset`
88+
89+
- fixed `resetForm` actions in Form's onSubmit and `asReset`
7090

7191
#### 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
7495

7596
#### 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
7799

78100
#### 1.1.0
79101

80102
##### 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
84107

85108
##### 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
90109

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
114+
115+
---
92116

93117
#### 1.0.0
118+
94119
Initial Release

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Robin Frischmann
3+
Copyright (c) 2020 Robin Weser
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)