Releases: brainfoolong/form-data-json
Releases · brainfoolong/form-data-json
form-data-json.d.ts for better typescript autocompletion support
Fix for checkbox fromjson edge case
fixed set checkbox checked with array values on implicit names #35
Added ES6 module support
2.2.0 added es6 module support
2.1.4
2.1.3
- fixed issue with callback is empty in case of file input
2.1.2
2.1.1
- accept a
$
instance also as html element intoJson/fromJson
, which is used by many libraries that memic jquery behaviour - previously only explicitlyjQuery
was supported
v2 stable release
- complete refactoring - thx to https://github.com/KES777 for extensive testing
- fixed many edge case issues from v1
- removed class
FormDataJsonOptions
. Use bare{}
objects now as options - removed method
FormDataJson.flattenJsonFormValues
. UseflatList = true
option intoJson
. Note: Output still has changed significantly to v1. - changed method
FormDataJson.setInputValue
and is now considered internal only. 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 option
resetOthers
- added method
clear
- added method
reset
- added unminified compiled file
- optimized compiled files
revert option uncheckedValue
- reverted option
uncheckedValue
to default toundefined
. #15
beta bugfix
- fixed #16 in
toJson()
in combination withskipEmpty
andflatList