- default namespace is now
data-parsley-
for DOM-API (not anymore 1.2.xparsley-
or 1.1.xdata-
) - there is only one global
ParsleyValidator
instance. Adding / removing validators is not made onParsleyForm
orParsleyField
instances anymore, but directly againstParsleyValidator
. Same goes for errors messages.
options
is now a flat 1 dim depth object.- These options have been removed:
listeners
validators
useHtml5Constraints
messages
validateIfUnchanged
- These options have been renamed:
validationMinlength
intovalidationTreshold
errors.classHandler
intoclassHandler
errors.container
intoerrorsContainer
errors.errorsWrapper
intoerrorsWrapper
errors.errorEleme
intoerrorTemplate
required
validator now acceptsfalse
value and becomes inactive.rangelength
validator is now renamed aslength
. Same requirements.rangecheck
validator is now renamed ascheck
. Same requirements.notnull
,type="urlstrict"
,type="tel"
have disappeared from built-in validators.- types
phone
,urlstrict
,dateIso
have been removed. They could be crafted and submitted by someone inextra/
.parsley-validated
class is not added anymore on bound fieldsnovalidate
attr is now automatically added to<form>
.parsley-error-list
is now.parsley-errors-list
- to customize
type
validator error message, you do not need to add the precise type anymore. eg:parsley-type-email-message="msg"
becomesdata-parsley-type-message="msg"
.parsley('method')
API is deprecated. Use .parsley().method() now eg:$('#form').parsley('validate')
is now$('#form').parsley().validate()
- can now be global with
$.listen()
and listen for every Parsley instance firing it (the wayParsleyUI
works) - can be Field / Form specific by using
.subscribe()
and.unsubscribe()
on a Parsley instance.
- parsley
remote
validator is shipped now in parsley.remote.js - parsley.extend is no more. Instead, extra validators are now placed in a dir and can be built with a script into a single file.