diff --git a/bower.json b/bower.json index cfd27420..dfca8188 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "1.1.1", + "version": "1.1.2", "description": "Validation for Aurelia applications", "keywords": [ "aurelia", diff --git a/dist/amd/implementation/validation-rules.d.ts b/dist/amd/implementation/validation-rules.d.ts index 490f9e69..1e3bc993 100644 --- a/dist/amd/implementation/validation-rules.d.ts +++ b/dist/amd/implementation/validation-rules.d.ts @@ -1,6 +1,5 @@ -import { Rule, RuleProperty } from './rule'; +import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule'; import { ValidationMessageParser } from './validation-message-parser'; -import { ValidationDisplayNameAccessor } from './rule'; import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser'; /** * Part of the fluent rule API. Enables customizing property rules. diff --git a/dist/amd/validation-controller.js b/dist/amd/validation-controller.js index c3fe45b0..54bc7cc7 100644 --- a/dist/amd/validation-controller.js +++ b/dist/amd/validation-controller.js @@ -391,7 +391,7 @@ define(["require", "exports", "./validator", "./validate-trigger", "./property-i if (rule.__manuallyAdded__) { continue; } - var rules = [rule]; + var rules = [[rule]]; this.validate({ object: object, propertyName: propertyName, rules: rules }); } }; diff --git a/dist/commonjs/implementation/validation-rules.d.ts b/dist/commonjs/implementation/validation-rules.d.ts index 490f9e69..1e3bc993 100644 --- a/dist/commonjs/implementation/validation-rules.d.ts +++ b/dist/commonjs/implementation/validation-rules.d.ts @@ -1,6 +1,5 @@ -import { Rule, RuleProperty } from './rule'; +import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule'; import { ValidationMessageParser } from './validation-message-parser'; -import { ValidationDisplayNameAccessor } from './rule'; import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser'; /** * Part of the fluent rule API. Enables customizing property rules. diff --git a/dist/commonjs/validation-controller.js b/dist/commonjs/validation-controller.js index 433fa19a..9c0cffaf 100644 --- a/dist/commonjs/validation-controller.js +++ b/dist/commonjs/validation-controller.js @@ -396,7 +396,7 @@ var ValidationController = (function () { if (rule.__manuallyAdded__) { continue; } - var rules = [rule]; + var rules = [[rule]]; this.validate({ object: object, propertyName: propertyName, rules: rules }); } }; diff --git a/dist/es2015/implementation/validation-rules.d.ts b/dist/es2015/implementation/validation-rules.d.ts index 490f9e69..1e3bc993 100644 --- a/dist/es2015/implementation/validation-rules.d.ts +++ b/dist/es2015/implementation/validation-rules.d.ts @@ -1,6 +1,5 @@ -import { Rule, RuleProperty } from './rule'; +import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule'; import { ValidationMessageParser } from './validation-message-parser'; -import { ValidationDisplayNameAccessor } from './rule'; import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser'; /** * Part of the fluent rule API. Enables customizing property rules. diff --git a/dist/es2015/validation-controller.js b/dist/es2015/validation-controller.js index b9e58234..2428a303 100644 --- a/dist/es2015/validation-controller.js +++ b/dist/es2015/validation-controller.js @@ -375,7 +375,7 @@ export class ValidationController { if (rule.__manuallyAdded__) { continue; } - const rules = [rule]; + const rules = [[rule]]; this.validate({ object, propertyName, rules }); } } diff --git a/dist/es2017/implementation/validation-rules.d.ts b/dist/es2017/implementation/validation-rules.d.ts index 490f9e69..1e3bc993 100644 --- a/dist/es2017/implementation/validation-rules.d.ts +++ b/dist/es2017/implementation/validation-rules.d.ts @@ -1,6 +1,5 @@ -import { Rule, RuleProperty } from './rule'; +import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule'; import { ValidationMessageParser } from './validation-message-parser'; -import { ValidationDisplayNameAccessor } from './rule'; import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser'; /** * Part of the fluent rule API. Enables customizing property rules. diff --git a/dist/es2017/validation-controller.js b/dist/es2017/validation-controller.js index b9e58234..2428a303 100644 --- a/dist/es2017/validation-controller.js +++ b/dist/es2017/validation-controller.js @@ -375,7 +375,7 @@ export class ValidationController { if (rule.__manuallyAdded__) { continue; } - const rules = [rule]; + const rules = [[rule]]; this.validate({ object, propertyName, rules }); } } diff --git a/dist/native-modules/implementation/validation-rules.d.ts b/dist/native-modules/implementation/validation-rules.d.ts index 490f9e69..1e3bc993 100644 --- a/dist/native-modules/implementation/validation-rules.d.ts +++ b/dist/native-modules/implementation/validation-rules.d.ts @@ -1,6 +1,5 @@ -import { Rule, RuleProperty } from './rule'; +import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule'; import { ValidationMessageParser } from './validation-message-parser'; -import { ValidationDisplayNameAccessor } from './rule'; import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser'; /** * Part of the fluent rule API. Enables customizing property rules. diff --git a/dist/native-modules/validation-controller.js b/dist/native-modules/validation-controller.js index 65012ac9..e69764a0 100644 --- a/dist/native-modules/validation-controller.js +++ b/dist/native-modules/validation-controller.js @@ -394,7 +394,7 @@ var ValidationController = (function () { if (rule.__manuallyAdded__) { continue; } - var rules = [rule]; + var rules = [[rule]]; this.validate({ object: object, propertyName: propertyName, rules: rules }); } }; diff --git a/dist/system/implementation/validation-rules.d.ts b/dist/system/implementation/validation-rules.d.ts index 490f9e69..1e3bc993 100644 --- a/dist/system/implementation/validation-rules.d.ts +++ b/dist/system/implementation/validation-rules.d.ts @@ -1,6 +1,5 @@ -import { Rule, RuleProperty } from './rule'; +import { Rule, RuleProperty, ValidationDisplayNameAccessor } from './rule'; import { ValidationMessageParser } from './validation-message-parser'; -import { ValidationDisplayNameAccessor } from './rule'; import { PropertyAccessorParser, PropertyAccessor } from '../property-accessor-parser'; /** * Part of the fluent rule API. Enables customizing property rules. diff --git a/dist/system/validation-controller.js b/dist/system/validation-controller.js index 0fc7d00a..f5503cab 100644 --- a/dist/system/validation-controller.js +++ b/dist/system/validation-controller.js @@ -409,7 +409,7 @@ System.register(["./validator", "./validate-trigger", "./property-info", "./vali if (rule.__manuallyAdded__) { continue; } - var rules = [rule]; + var rules = [[rule]]; this.validate({ object: object, propertyName: propertyName, rules: rules }); } }; diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 6cdd278e..63aee27f 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,13 @@ + +## [1.1.2](https://github.com/aurelia/validation/compare/1.1.1...v1.1.2) (2017-10-02) + + +### Bug Fixes + +* **validation-controller:** fix revalidateErrors method ([bcf8a46](https://github.com/aurelia/validation/commit/bcf8a46)), closes [#456](https://github.com/aurelia/validation/issues/456) + + + # [1.1.0](https://github.com/aurelia/validation/compare/1.0.0...v1.1.0) (2017-06-27) diff --git a/package.json b/package.json index 8f3e43dc..f116bff5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "1.1.1", + "version": "1.1.2", "description": "Validation for Aurelia applications", "keywords": [ "aurelia",