jquery-validation v1.2.1 Release Notes
-
- ๐ Bundled delegate plugin with validate plugin - its always required anyway
- ๐ Improved remote validation to include parts from the ajaxQueue plugin for proper synchronization (no additional plugin necessary)
- ๐ Fixed stopRequest to prevent pendingRequest < 0
- โ Added jQuery.validator.autoCreateRanges property, defaults to false, enable to convert min/max to range and minlength/maxlength to rangelength; this basically fixes the issue introduced by automatically creating ranges in 1.2
- ๐ Fixed optional-methods to not highlight anything at all if the field is blank, that is, don't trigger success
- ๐ Allow false/null for highlight/unhighlight options instead of forcing a do-nothing-callback even when nothing needs to be highlighted
- ๐ Fixed validate() call with no elements selected, returning undefined instead of throwing an error
- ๐ Improved demo, replacing metadata with classes/attributes for specifying rules
- ๐ Fixed error when no custom message is used for remote validation
- Modified email and url validation to require domain label and top label
- ๐ Fixed url and email validation to require TLD (actually to require domain label); 1.2 version (TLD is optional) is moved to additions as url2 and email2
- ๐ Fixed dynamic-totals demo in IE6/7 and improved templating, using textarea to store multiline template and string interpolation
- โ Added login form example with "Email password" link that makes the password field optional
- โจ Enhanced dynamic-totals demo with an example of a single message for two fields
1.2
- โ Added AJAX-captcha validation example (based on http://psyrens.com/captcha/)
- โ Added remember-the-milk-demo (thanks RTM team for the permission!)
- โ Added marketo-demo (thanks Glen Lipka!)
- โ Added support for ajax-validation, see method "remote"; serverside returns JSON, true for valid elements, false or a String for invalid, String is used as message
- โ Added highlight and unhighlight options, by default toggles errorClass on element, allows custom highlighting
- โ Added valid() plugin method for easy programmatic checking of forms and fields without the need to use the validator API
- โ Added rules() plugin method to read and write rules for an element (currently read only)
- โ Replaced regex for email method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/email_address_validation/
- ๐ Restructured event architecture to rely solely on delegation, both improving performance, and ease-of-use for the developer (requires jquery.delegate.js)
- ๐ Moved documentation from inline to http://docs.jquery.com/Plugins/Validation - including interactive examples for all methods
- โ Removed validator.refresh(), validation is now completely dynamic
- ๐ Renamed minValue to min, maxValue to max and rangeValue to range, deprecating the previous names (to be removed in 1.3)
- ๐ Renamed minLength to minlength, maxLength to maxlength and rangeLength to rangelength, deprecating the previous names (to be removed in 1.3)
- โ Added feature to merge min + max into and range and minlength + maxlength into rangelength
- โ Added support for dynamic rule parameters, allowing to specify a function as a parameter eg. for minlength, called when validating the element
- ๐ Allow to specify null or an empty string as a message to display nothing (see marketo demo)
- ๐ Rules overhaul: Now supports combination of rules-option, metadata, classes (new) and attributes (new), see rules() for details
1.1.2
- ๐ Replaced regex for URL method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/iri/
- ๐ Improved email method to better handle unicode characters
- ๐ Fixed error container to hide when all elements are valid, not only on form submit
- ๐ Fixed String.format to jQuery.format (moving into jQuery namespace)
- ๐ Fixed accept method to accept both upper and lowercase extensions
- ๐ Fixed validate() plugin method to create only one validator instance for a given form and always return that one instance (avoids binding events multiple times)
- ๐ Changed debug-mode console log from "error" to "warn" level