Skip to content
This repository was archived by the owner on Dec 25, 2017. It is now read-only.

Commit 4cd6b9c

Browse files
committed
✨ release(patch): v2.1.6
1 parent fa99a91 commit 4cd6b9c

9 files changed

+32
-22
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="2.1.6"></a>
2+
## [2.1.6](https://github.com/vuejs/vue-validator/compare/v2.1.5...v2.1.6) (2016-08-19)
3+
4+
5+
### :bug: Bug Fixes
6+
7+
* **validate:** fix initial compilation error ([fa99a91](https://github.com/vuejs/vue-validator/commit/fa99a91)), closes [#288](https://github.com/vuejs/vue-validator/issues/288)
8+
9+
10+
111
<a name="2.1.5"></a>
212
## [2.1.5](https://github.com/vuejs/vue-validator/compare/v2.1.4...v2.1.5) (2016-07-25)
313

dist/vue-validator.common.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-validator v2.1.5
2+
* vue-validator v2.1.6
33
* (c) 2016 kazuya kawaguchi
44
* Released under the MIT License.
55
*/
@@ -424,14 +424,15 @@ function Override (Vue) {
424424
}
425425

426426
var VALIDATE_UPDATE = '__vue-validator-validate-update__';
427-
var PRIORITY_VALIDATE = 16;
427+
var PRIORITY_VALIDATE = 4096;
428428
var PRIORITY_VALIDATE_CLASS = 32;
429429
var REGEX_FILTER = /[^|]\|[^|]/;
430430
var REGEX_VALIDATE_DIRECTIVE = /^v-validate(?:$|:(.*)$)/;
431431
var REGEX_EVENT = /^v-on:|^@/;
432432

433433
var classId = 0; // ID for validation class
434434

435+
435436
function ValidateClass (Vue) {
436437
var vIf = Vue.directive('if');
437438
var FragmentFactory = Vue.FragmentFactory;
@@ -510,7 +511,6 @@ function ValidateClass (Vue) {
510511
}
511512

512513
function Validate (Vue) {
513-
var vIf = Vue.directive('if');
514514
var FragmentFactory = Vue.FragmentFactory;
515515
var parseDirective = Vue.parsers.directive.parseDirective;
516516
var _Vue$util = Vue.util;
@@ -543,7 +543,7 @@ function Validate (Vue) {
543543
Vue.directive('validate', {
544544
deep: true,
545545
terminal: true,
546-
priority: vIf.priority + PRIORITY_VALIDATE,
546+
priority: PRIORITY_VALIDATE,
547547
params: ['group', 'field', 'detect-blur', 'detect-change', 'initial', 'classes'],
548548

549549
paramWatchers: {
@@ -1261,7 +1261,7 @@ var BaseValidation = function () {
12611261
BaseValidation.prototype._invokeValidator = function _invokeValidator(vm, validator, val, arg, cb) {
12621262
var future = validator.call(this, val, arg);
12631263
if (typeof future === 'function') {
1264-
// function
1264+
// function
12651265
future(function () {
12661266
// resolve
12671267
cb(true);
@@ -1921,7 +1921,7 @@ var Validator$1 = function () {
19211921
var validation = this._getValidationFrom(field);
19221922
var validations = this._groupValidations[group];
19231923

1924-
validations && ! ~indexOf(validations, validation) && validations.push(validation);
1924+
validations && !~indexOf(validations, validation) && validations.push(validation);
19251925
};
19261926

19271927
Validator.prototype.removeGroupValidation = function removeGroupValidation(group, field) {
@@ -2604,7 +2604,7 @@ function plugin(Vue) {
26042604
Validate(Vue);
26052605
}
26062606

2607-
plugin.version = '2.1.5';
2607+
plugin.version = '2.1.6';
26082608

26092609
if (typeof window !== 'undefined' && window.Vue) {
26102610
window.Vue.use(plugin);

dist/vue-validator.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-validator v2.1.5
2+
* vue-validator v2.1.6
33
* (c) 2016 kazuya kawaguchi
44
* Released under the MIT License.
55
*/
@@ -428,14 +428,15 @@ var validators = Object.freeze({
428428
}
429429

430430
var VALIDATE_UPDATE = '__vue-validator-validate-update__';
431-
var PRIORITY_VALIDATE = 16;
431+
var PRIORITY_VALIDATE = 4096;
432432
var PRIORITY_VALIDATE_CLASS = 32;
433433
var REGEX_FILTER = /[^|]\|[^|]/;
434434
var REGEX_VALIDATE_DIRECTIVE = /^v-validate(?:$|:(.*)$)/;
435435
var REGEX_EVENT = /^v-on:|^@/;
436436

437437
var classId = 0; // ID for validation class
438438

439+
439440
function ValidateClass (Vue) {
440441
var vIf = Vue.directive('if');
441442
var FragmentFactory = Vue.FragmentFactory;
@@ -514,7 +515,6 @@ var validators = Object.freeze({
514515
}
515516

516517
function Validate (Vue) {
517-
var vIf = Vue.directive('if');
518518
var FragmentFactory = Vue.FragmentFactory;
519519
var parseDirective = Vue.parsers.directive.parseDirective;
520520
var _Vue$util = Vue.util;
@@ -547,7 +547,7 @@ var validators = Object.freeze({
547547
Vue.directive('validate', {
548548
deep: true,
549549
terminal: true,
550-
priority: vIf.priority + PRIORITY_VALIDATE,
550+
priority: PRIORITY_VALIDATE,
551551
params: ['group', 'field', 'detect-blur', 'detect-change', 'initial', 'classes'],
552552

553553
paramWatchers: {
@@ -1265,7 +1265,7 @@ var validators = Object.freeze({
12651265
BaseValidation.prototype._invokeValidator = function _invokeValidator(vm, validator, val, arg, cb) {
12661266
var future = validator.call(this, val, arg);
12671267
if (typeof future === 'function') {
1268-
// function
1268+
// function
12691269
future(function () {
12701270
// resolve
12711271
cb(true);
@@ -1925,7 +1925,7 @@ var validators = Object.freeze({
19251925
var validation = this._getValidationFrom(field);
19261926
var validations = this._groupValidations[group];
19271927

1928-
validations && ! ~indexOf(validations, validation) && validations.push(validation);
1928+
validations && !~indexOf(validations, validation) && validations.push(validation);
19291929
};
19301930

19311931
Validator.prototype.removeGroupValidation = function removeGroupValidation(group, field) {
@@ -2608,7 +2608,7 @@ var validators = Object.freeze({
26082608
Validate(Vue);
26092609
}
26102610

2611-
plugin.version = '2.1.5';
2611+
plugin.version = '2.1.6';
26122612

26132613
if (typeof window !== 'undefined' && window.Vue) {
26142614
window.Vue.use(plugin);

dist/vue-validator.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/en/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ See [dist folder](https://github.com/vuejs/vue-validator/tree/dev/dist). Note th
99
### jsdelivr
1010

1111
```html
12-
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.5/vue-validator.min.js"></script>
12+
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.6/vue-validator.min.js"></script>
1313
```
1414

1515
## NPM

docs/ja/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
### jsdelivr
1010

1111
```html
12-
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.5/vue-validator.min.js"></script>
12+
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.6/vue-validator.min.js"></script>
1313
```
1414

1515
## NPM

docs/zh-cn/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
### jsdelivr
1010

1111
```html
12-
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.5/vue-validator.min.js"></script>
12+
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.6/vue-validator.min.js"></script>
1313
```
1414

1515
## NPM

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-validator",
33
"description": "Validator component for Vue.js",
4-
"version": "2.1.5",
4+
"version": "2.1.6",
55
"author": {
66
"name": "kazuya kawaguchi",
77
"email": "[email protected]"

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function plugin (Vue, options = {}) {
3030
Validate(Vue)
3131
}
3232

33-
plugin.version = '2.1.5'
33+
plugin.version = '2.1.6'
3434

3535
export default plugin
3636

0 commit comments

Comments
 (0)