Releases: brainfoolong/form-data-json
Releases · brainfoolong/form-data-json
beta bugfix and changes
- fixed #13 in
toJson()
- changed option
uncheckedValue
is now false by default, instead of undefined - added option
resetOthers
forfromJson()
- changed output of option
flatList
, it now contains an array list with same values like nativeFormData()
beta bugfix
- incorrectly compiled files
beta bugfix
fixed glitch in toJson()
doesn't respect all filter options correctly
2.0.0beta - Completely refactored
This a pre-release / beta. A lot has changed.
- complete refactoring
- removed class
FormDataJsonOptions
. Use bare{}
objects now as options - removed method
FormDataJson.flattenJsonFormValues
. UseflatList = true
option intoJson
- removed method
FormDataJson.setInputValue
. No direct replacement. UsefromJson
if you need to set any input value - removed 3rd parameter
formToJson/toJson
callback function. It is now set into optionfilesCallback
- renamed method
formToJson
totoJson
- renamed method
fillFormFromJsonValues
tofromJson
- renamed option
unsetAllInputsOnFill
toclearOthers
- renamed option
includeUncheckedAsNull
touncheckedValue
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
1.3.1 fixed bug that `setInputValue` will not work for `selects` when passe…
added a new feature inputFilter to FormDataOptions
1.2.2
1.2.1
- fixed a bug that delete null values out of the result, even when they should be included
- added FormDataJson.flattenJsonFormValues
1.1.5
added FormDataJsonOptions.defaults
1.1.3
- fixed setInputValue for file input fields, to not create an error
- updated src documentation