Skip to content

Releases: SimplySayHi/formJS

v5.4.0

29 Dec 17:31
Compare
Choose a tag to compare
  • Add "modified" and "touched" to "cssClasses" for "fieldOptions" ( full version only )
  • Add "error" and "pending" to "cssClasses" for "formOptions" ( full version only )
  • Add "nestedMultipartDataToJSON" to "formOptions" to allow transformation of nested objects for FormData ( full version only )
  • Add "eslint" to dev dependencies
  • Add internal method to fix issue on sub-class initialization where "initialValues" was returned as empty object ( full version only )
  • Fix bug on multipart form management ( full version only )
  • Fix on form submit: css class for "submit" is now added after form validation and before submit instead of before form validation ( full version only )
  • Minor improvements

v5.3.2

18 Oct 20:23
Compare
Choose a tag to compare
  • Fix bug on "destroy" method: custom event listener for group validation was not removed ( full version only )

v5.3.1

26 Jul 21:10
Compare
Choose a tag to compare
  • Removed "dist/additionals" from .gitignore to allow import additionals

v5.3.0

26 Jul 20:36
Compare
Choose a tag to compare
  • Added "exports" to package.json in order to export also lite version and extra features
  • Add "utils" to exported items
  • Added option "groups" in "formOptions" to enable validation steps/groups ( full version only )
  • Added instance prop "currentGroup" ( full version only )
  • Added method "validateFieldsGroup" ( full version only )
  • Added event "fjs.group:validation" ( full version only )
  • Fixed bug on method "validateForm" to fire event "fjs.field:validation" for each filed after validation ( Lite version only )
  • Minor internal improvements
  • DEPRECATED features ( will be dropped in v6 ):
    • Support for IE and old browsers
    • SystemJS version

v5.2.0

04 Jan 17:26
6ed2c75
Compare
Choose a tag to compare
  • Added method "validateFilledFields" ( full version only )
  • Update "getFormData" to support object notation in fields name in returned js object ( full version only )
  • Added support for custom events for Lite version
  • Minor improvements

v5.1.0

06 Mar 16:39
Compare
Choose a tag to compare
  • Added "trimValue" in "fieldOptions" ( full version only )
  • Added argument "trimValues" for method "getFormData" ( full version only )
  • Added HTML attribute "data-field-options" to enable specific field options for single fields
  • Added "fieldOptions" to data passed to "beforeValidation" callback(s)
  • Re-introduced "maxFileSize" in "fieldOptions"
  • Re-introduced "fieldOptions" argument passed to validation rules
  • Fixed bug where css class(es) for "pending" were not removed when enabling "onValidationCheckAll" ( full version only )
  • DEPRECATED features:
    • HTML attribute "data-max-file-size" in favor of "maxFileSize" in "fieldOptions" and/or HTML attribute "data-field-options"

v4.4.0

06 Mar 16:30
Compare
Choose a tag to compare
  • Added "trimValue" in "fieldOptions" ( full version only )
  • Added argument "trimValues" for method "getFormData" ( full version only )
  • Added HTML attribute "data-field-options" to enable specific field options for single fields
  • Added "fieldOptions" to data passed to "beforeValidation" callback(s)
  • Fixed bug where "fieldOptions" argument was not declared in validation method for input type "file"
  • Fixed bug where css class(es) for "pending" were not removed when enabling fieldOptions.onValidationCheckAll ( full version only )
  • DEPRECATED features:
    • HTML attribute "data-max-file-size" in favor of "maxFileSize" in "fieldOptions" and/or HTML attribute "data-field-options"

v5.0.2

11 Feb 19:51
Compare
Choose a tag to compare
  • Enabled validation for "change" event only ( full version only )

v4.3.4

11 Feb 19:38
Compare
Choose a tag to compare
  • Enabled validation for "change" event only ( full version only )

v5.0.1

14 Jan 13:52
Compare
Choose a tag to compare
  • Exported main versions as UMD instead of IIFE for better environments compatibility