Skip to content

Releases: brainfoolong/form-data-json

beta bugfix and changes

27 Sep 16:16
Compare
Choose a tag to compare
Pre-release
  • fixed #13 in toJson()
  • changed option uncheckedValue is now false by default, instead of undefined
  • added option resetOthers for fromJson()
  • changed output of option flatList, it now contains an array list with same values like native FormData()

beta bugfix

27 Sep 09:20
Compare
Choose a tag to compare
beta bugfix Pre-release
Pre-release
  • incorrectly compiled files

beta bugfix

27 Sep 09:12
Compare
Choose a tag to compare
beta bugfix Pre-release
Pre-release

fixed glitch in toJson() doesn't respect all filter options correctly

2.0.0beta - Completely refactored

26 Sep 18:30
Compare
Choose a tag to compare
Pre-release

This a pre-release / beta. A lot has changed.

  • complete refactoring
  • removed class FormDataJsonOptions. Use bare {} objects now as options
  • removed method FormDataJson.flattenJsonFormValues. Use flatList = true option in toJson
  • removed method FormDataJson.setInputValue. No direct replacement. Use fromJson if you need to set any input value
  • removed 3rd parameter formToJson/toJson callback function. It is now set into option filesCallback
  • renamed method formToJson to toJson
  • renamed method fillFormFromJsonValues to fromJson
  • renamed option unsetAllInputsOnFill to clearOthers
  • renamed option includeUncheckedAsNull to uncheckedValue and now represent the value that unchecked inputs should have in output
  • added option skipEmpty
  • added option fileReaderFunction
  • added option triggerChangeEvent
  • added unminified compiled file
  • optimized compiled files

fixed bug that setInputValue will not work for selects when passed a non-string value

27 Jul 08:27
Compare
Choose a tag to compare
1.3.1

fixed bug that `setInputValue` will not work for `selects` when passe…

added a new feature inputFilter to FormDataOptions

01 Apr 17:30
Compare
Choose a tag to compare
  • added a new feature inputFilter to FormDataOptions - Thanks to @alcalyn for the idea and initial coding in #8

1.2.2

09 Dec 06:03
Compare
Choose a tag to compare
  • fixed node module usage #7

1.2.1

02 Dec 05:29
Compare
Choose a tag to compare
  • fixed a bug that delete null values out of the result, even when they should be included
  • added FormDataJson.flattenJsonFormValues

1.1.5

14 Apr 09:13
Compare
Choose a tag to compare

added FormDataJsonOptions.defaults

1.1.3

08 Apr 07:38
Compare
Choose a tag to compare
  • fixed setInputValue for file input fields, to not create an error
  • updated src documentation