Skip to content

Commit 508efb4

Browse files
committed
Bump version
1 parent 9ed8cca commit 508efb4

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,8 @@ All notable changes to this project will be documented in this file.
7676

7777
## [2.1.0]
7878
### Changed
79-
- `send-server-request` only takes two params. The first one is a map that must contain a `:name` key along with optional `:value`, `:evt`, `:debounce`, `:throttle` keys. The second one is the user provided fn for the server http request.
79+
- `send-server-request` only takes two params. The first one is a map that must contain a `:name` key along with optional `:value`, `:evt`, `:debounce`, `:throttle` keys. The the second one is the user provided fn for the server http request.
80+
81+
## [2.1.1]
82+
### Added
83+
- `keywordize-keys` config param. It casts all strings to keywords, allowing the developer to only deal with keywords across the form components and handlers.

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ As at this state you must be dying of curiosity, I will dive right into the impl
3333
#### In Deps
3434

3535
```clojure
36-
fork {:mvn/version "2.1.0"}
36+
fork {:mvn/version "2.1.1"}
3737
```
3838

3939
or
@@ -176,25 +176,25 @@ If some parts look a bit obscure, the will be explained thoroughly in the follow
176176

177177
#### Params
178178

179-
`:form-id` makes fork aware of your form elements. If it is not specified, a random id will be generated and will be provided through the same `:form-id` key.
179+
`:form-id` makes fork aware of your form elements. If it is not specified, a random id will be generated and will be provided through the same `:form-id` key. - Key
180180

181-
`:path` lets you choose where to store your form global events i.e. server related stuff. MANDATORY!
181+
`:path` lets you choose where to store your form global events i.e. server related stuff. MANDATORY! - Key
182182

183-
`:prevent-default?` does not automatically send your form to the server on submit.
183+
`:keywordize-keys` allows you to work with keywords instead of strings - Boolean
184184

185-
`:clean-on-unmount?` resets the state when your component is unmounted. (Useful when used with re-frame).
185+
`:prevent-default?` does not automatically send your form to the server on submit. - Boolean
186186

187-
`:validation` to pass a validation function that gives you the form values in a map as single param.
187+
`:clean-on-unmount?` resets the state when your component is unmounted. (Useful when used with re-frame). - Boolean
188188

189-
`:initial-values` to pre-populate the inputs.
189+
`:validation` to pass a validation function that gives you the form values in a map as single param. - Function
190190

191-
`:initial-touched` to pre-populate the inputs and set them as touched.
191+
`:initial-values` to pre-populate the inputs. - Map
192192

193-
`:on-submit` lets you write your own submit logic. It gives you a map with `:state :path :values :dirty :reset` keys.
193+
`:initial-touched` to pre-populate the inputs and set them as touched. - Map
194194

195-
`:on-submit-server-message` returns a string message coming from the server response body.
195+
`:on-submit` lets you write your own submit logic. It gives you a map with `:state :path :values :dirty :reset` keys. - Function
196196

197-
`:component-did-mount` to perform any logic after the component is mounted. It takes a function and provides one argument that consists of a map of handlers: `set-touched, set-untouched, set-values, disable, enable, disabled?, handle-change, handle-blur, send-server-request`
197+
`:component-did-mount` to perform any logic after the component is mounted. It takes a function and provides one argument that consists of a map of handlers: `set-touched, set-untouched, set-values, disable, enable, disabled?, handle-change, handle-blur, send-server-request` - Function
198198

199199
#### The Flow
200200

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject fork "2.1.0"
1+
(defproject fork "2.1.1"
22
:description "Reagent & Re-Frame form library"
33
:url "https://github.com/luciodale/fork"
44
:license {:name "MIT"}

0 commit comments

Comments
 (0)