Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 544 Bytes

UPGRADE-2.1.md

File metadata and controls

21 lines (15 loc) · 544 Bytes

UPGRADE FROM 2.0.x to 2.1.0

General

2.1.0 version introduced some minor BC Breaks. Here is the list:

isValid() field methods returns boolean. If you had a test case like this:

if ('object' === typeof $('#field').parsley().isValid() && !$('#field').parsley().isValid().length) {
    // field is optional and empty, nor valid, nor invalid
}

becomes

if ($('#field').parsley().isValid() && !$('#field').parsley().needsValidation()) {
    // field is optional and empty, nor valid, nor invalid
}