# UPGRADE FROM 1.x to 2.0 ## General - default namespace is now `data-parsley-` for DOM-API (not anymore 1.2.x `parsley-` or 1.1.x `data-`) - there is only one global `ParsleyValidator` instance. Adding / removing validators is not made on `ParsleyForm` or `ParsleyField` instances anymore, but directly against `ParsleyValidator`. Same goes for errors messages. ## Options / Configuration - `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` into `validationTreshold` - `errors.classHandler` into `classHandler` - `errors.container` into `errorsContainer` - `errors.errorsWrapper` into `errorsWrapper` - `errors.errorEleme` into `errorTemplate` ## Validators - `required` validator now accepts `false` value and becomes inactive. - `rangelength` validator is now renamed as `length`. Same requirements. - `rangecheck` validator is now renamed as `check`. 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 in `extra/` ## UI/UX - `.parsley-validated` class is not added anymore on bound fields - `novalidate` attr is now automatically added to `