Skip to content

Latest commit

 

History

History
135 lines (104 loc) · 3.63 KB

CHANGELOG.md

File metadata and controls

135 lines (104 loc) · 3.63 KB

Changelog

All notable changes to this project will be documented in this file.

[2.4.3]

Changed

  • swap order when merging user provided fork state with the internal one. This allows the :values and :touched keys to remain unchanged when the code hot reloads

[2.4.2]

Fix

  • store initial-values and initial-touched in state so they can be modified after first mount

[2.4.1]

Added

  • set-handle-change takes a vector of maps vs one map

[2.4.0]

Added

  • Add support for fieldarray drag and drop (only top level fieldarrays)

[2.3.0]

Added

  • Add support for nested field arrays
  • Add :fieldarray/touched handler

[2.2.8]

Fix

  • Fixed a bug involving touched fn introduced in 2.2.7

[2.2.7]

Changed

  • Remove keywordization logic on init values

[2.2.5]

Added

  • state to main props to allow users to pass their own ratoms

[2.2.3]

Added

  • dirty to main props

[2.2.2]

Added

  • fork/field-array, set-handle-change, set-handle-blur

[2.1.8]

Changed

  • path option takes a vector of keys or a single key identifier for backward compatibility

[2.1.5]

Changed

  • path option now takes a vector of keys

[2.1.4]

Added

  • normalize-name prop to support namespaced keywords

[2.1.3]

Added

  • successful-submissions value to props.

Changed

  • submit-count into attempted-submissions.

[2.1.1]

Added

  • keywordize-keys config param. It casts all strings to keywords, allowing the developer to only deal with keywords across the form components and handlers.

[2.1.0]

Changed

  • 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.

[2.0.4]

Added

  • errors, dirty, and touched arguments to the send-server-request user provided function.

[2.0.0]

Changed

  • to use Fork now you need to require either fork.re-frame or fork.reagent. For the bulma UI kit require fork.bulma
  • :on-submit-response map has been removed. It's better to delegate the server for the error messages
  • :on-submit-response-message has changed into :on-submit-server-message
  • :set-status-code has changed into :set-server-message
  • :set-waiting, :set-submitting, and :set-server-message are now globally accessible from your fork.re-frame or fork.reagent namespaces.
  • the re-frame interceptors :on-submit and :clean have been removed. Therefore, now you need to set submitting? to true yourself (through the global helper).

[1.2.6]

Changed

  • dirty? submit handler into dirty. Now, the variable returns either nil or a map of changed values.

[1.2.5]

Added

  • reset handler to props

[1.2.4]

Added

  • :throttle option to on-submit-response

[1.2.2]

Added

  • on-submit-response handler
  • set-status-code re-frame handler

Removed

  • set-external-errors

[1.2.0]

Added

  • component-did-mount handler
  • initial-touched handler

Changed

  • set-touched args should not be wrapped in a sequence.

Removed

  • enable disable re-frame handlers

[1.1.0]

Added

  • send-server-request handler

[1.0.0]

Added

  • Support for any side effect free validation
  • :external-errors key to differenciate from input :errors
  • :form-id to let fork know about the inputs

Changed

  • :initial-values not required
  • Safe calls to (values "input") or (touched "input") when no value is set

Removed

  • Built-in validation
  • Array input support

[0.1.1]

Added

  • Dynamic array input and more built-in inputs