- Handles checkbox names containing spaces (#881)
- Detects name conflicts between validators and regular options
- Compatible with jQuery.noConflict() (#859)
- Optimize (#855)
- Support for validators with compound names by restoring ful case sensitivity to error messages. (#805)
- new event 'form:submit.parsley' fired before a form is submitted.
- remote cache now cleared after form submission (#813)
- event 'field:reset.parsley' now fired if a field is no longer validated (because it is excluded, or removed) (#841)
- jQuery events are now used instead of our pubsub code. The pubsub functions are now deprecated and will be removed in 3.0.0
- Error containers are created only the first time they are needed.
- The
value
option can now be a function - [BC Break]
isValid()
field method now returns just a boolean,[]
is no more returned when field is optional and empty.needsValidation()
appears now to indicate if a valid field needed a validation.
- support of html5
maxlength
andminlength
(#731) - various doc updates
- improved test suite
- various small code simplifications
- updated TLD range for URL validator (#829)
- removed buggy special char in remote.js plugin (#755)
- fixed bug where isValid returned old errors on field with no constraints anymore (#776)
- fix a lot of tests
- fixed AMD
- added ParsleyField context to asyncValidator callback functions (#702)
- fixed AMD loading of Validator.js (#691, #693)
- added extra/words.js validators (#700)
- added support of multiple groups (#706)
- fix not AMD loading for Wordpress case (#685)
- proper version number in
dist/
files
- fixed "attr.specified is deprecated." console warning (#608)
- fixed package.json config with main dep (#617)
- fixed
addValidator()
method - added support for
requirementsTransformer
for custom validators - updated jQuery needed version from README and doc
- fixed case when a multiple item were dynamically removed from DOM (#634)
- added proper
type="range"
support (#668)
- fixed remote re-entering already validated value (#576)
- added
stopImmediatePropagation()
unonSubmit()
method to avoid conflicts with other libraries (#561) - fixed parsleyFieldMultiple behavior that tried to bind non radio or checkbox fields as a multiple field (#589)
input[type=hidden]
are now excluded by default (#589)- fixed constraints unicity on fields belonging to same multiple group
- added
data-parsley-remote-validator
feature (#587) - now support custom messages placeholders (#602)
- fix exception when ParsleyField or ParsleyFieldMultiple value is null or undefined (#598)
- fixed
destroy()
method + added test (#555) - added requirejs AMD support for
dist/parsley.js
anddist/parsley.min.js
versions (#606) - fixed custom namespace -multiple that didn't re-evaluated correctly (#595)
- added
ParsleyUI.getErrorsMessages()
(Closes #607)
- totally reworked multiple fields (#542):
- created a new Class:
ParsleyFieldMultiple
- multiple fields returns now same
ParsleyFieldMultiple
instance
- created a new Class:
dist/parsley+remote.js
anddist/parsley+remote.min.js
have been renamed todist/parsley.remote.js
anddist/parsley.remote.min.js
- changed the way
asyncValidate
handle events - fix warning if parsley called on a page without elements to validate (#562)
- fixed
ParsleyUtils.attr()
attribute checking (#564) - updated
ParsleyUtils.get()
method. Do not support anymore placeholder feature sinceParsleyUtils.get() || placeholder
writing is more readable - select and select multiple elements both handle the
parsley-success
andparsley-error
classes directly and not their parent. - added pattern flags support (#566, #550)
- fixed ParsleyFieldMultiple optional fields if not explicitely required
- fixed ParsleyFieldMultiple trigger
- fixed select UI auto-bind change on error (#537)
- fixed
asyncIsValid()
andasyncValidate()
API to supportforce
option
- fixed js error if wrong data-parsley-errors-container is given
- fixed js error if
name=""
orid=""
for parlsey multiple fields (#533) - fixed dynamically added fields form inheritance (#532)
- fixed parsley-remote.js remote validator registration that overrided other extra validators.
- added multiple xhr queries aborting in parsley.remote to avoid unneeded server overload with keyup trigger
- fixed excluded fields option and added some doc for it (#546)
- fixed
range
validator with0
value (#543) - added
data-parsley-trim-value
option - updated validator.js
- added
this.submitEvent.preventDefault()
support for parsley.remote call twice form / field tests with parsley.remote for better support (#552) - fixed global leaks shown by test suite
- new $ Parsley API behavior:
- returns
undefined
if called on non existing DOM element- console warn (#548)
- returns an array of instances if called on selector with multiple elements (#547)
- returns
- fixed
min
,max
,range
validators (#556)
- fixed $ conflict (#525)
- added
force
validation forisValid()
andvalidate()
- added doc events example
- added doc Help section
- added
data-parsley-errors-messages-disabled
option
- added
data-parsley-validate-if-empty
field option (#489) - fixed select multiple bug (#522)
- allowed checkbox, radio and select multiple inputs to have either a
name
or anid
to be binded (instead of just a name)
- initial 2.x public release