Parsley.js v2.2.0-rc1 Release Notes
-
๐จ Major validators refactor:
- Compatible with promises from the ground up. Previous API (e.g.
isValid
) remains, but promise-aware API is now recommended (e.g.whenValid
). - New API to define custom validators (old API is still there but deprecated).
- Shorter code, removed dependency on
validators
lib. - The
remote
validator is much smaller now, will probably be merged in the future.
- Compatible with promises from the ground up. Previous API (e.g.
๐ Deprecated
data-parsley-trim-value
in favour of newwhitespace
APIโ Added
whitespace
API with two options:trim
andsquish