Skip to content

Releases: brainfoolong/form-data-json

form-data-json.d.ts for better typescript autocompletion support

12 Apr 06:26
Compare
Choose a tag to compare
  • added form-data-json.d.ts for better typescript autocompletion support (thx to @kurybr - #36)

Fix for checkbox fromjson edge case

14 Aug 07:52
Compare
Choose a tag to compare

fixed set checkbox checked with array values on implicit names #35

Added ES6 module support

03 Aug 11:25
Compare
Choose a tag to compare
2.2.0

added es6 module support

2.1.4

02 Dec 12:10
Compare
Choose a tag to compare
  • fixed bug with option skipEmpty in select fields (#31)

2.1.3

09 Feb 13:14
Compare
Choose a tag to compare
  • fixed issue with callback is empty in case of file input

2.1.2

09 Feb 13:00
Compare
Choose a tag to compare
  • fixed issue with skipEmpty and nested input value #25

2.1.1

06 Dec 11:13
Compare
Choose a tag to compare
  • accept a $ instance also as html element in toJson/fromJson, which is used by many libraries that memic jquery behaviour - previously only explicitly jQuery was supported

v2 stable release

04 Oct 04:53
Compare
Choose a tag to compare
  • 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. Use flatList = true option in toJson. Note: Output still has changed significantly to v1.
  • changed method FormDataJson.setInputValue and is now considered internal only. 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 option resetOthers
  • added method clear
  • added method reset
  • added unminified compiled file
  • optimized compiled files

revert option uncheckedValue

28 Sep 04:42
Compare
Choose a tag to compare
Pre-release
  • reverted option uncheckedValue to default to undefined. #15

beta bugfix

27 Sep 19:05
Compare
Choose a tag to compare
beta bugfix Pre-release
Pre-release
  • fixed #16 in toJson() in combination with skipEmpty and flatList