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

Commit

Permalink
✨ release(patch): v2.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Aug 19, 2016
1 parent fa99a91 commit 4cd6b9c
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 22 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="2.1.6"></a>
## [2.1.6](https://github.com/vuejs/vue-validator/compare/v2.1.5...v2.1.6) (2016-08-19)


### :bug: Bug Fixes

* **validate:** fix initial compilation error ([fa99a91](https://github.com/vuejs/vue-validator/commit/fa99a91)), closes [#288](https://github.com/vuejs/vue-validator/issues/288)



<a name="2.1.5"></a>
## [2.1.5](https://github.com/vuejs/vue-validator/compare/v2.1.4...v2.1.5) (2016-07-25)

Expand Down
14 changes: 7 additions & 7 deletions dist/vue-validator.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-validator v2.1.5
* vue-validator v2.1.6
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -424,14 +424,15 @@ function Override (Vue) {
}

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

var classId = 0; // ID for validation class


function ValidateClass (Vue) {
var vIf = Vue.directive('if');
var FragmentFactory = Vue.FragmentFactory;
Expand Down Expand Up @@ -510,7 +511,6 @@ function ValidateClass (Vue) {
}

function Validate (Vue) {
var vIf = Vue.directive('if');
var FragmentFactory = Vue.FragmentFactory;
var parseDirective = Vue.parsers.directive.parseDirective;
var _Vue$util = Vue.util;
Expand Down Expand Up @@ -543,7 +543,7 @@ function Validate (Vue) {
Vue.directive('validate', {
deep: true,
terminal: true,
priority: vIf.priority + PRIORITY_VALIDATE,
priority: PRIORITY_VALIDATE,
params: ['group', 'field', 'detect-blur', 'detect-change', 'initial', 'classes'],

paramWatchers: {
Expand Down Expand Up @@ -1261,7 +1261,7 @@ var BaseValidation = function () {
BaseValidation.prototype._invokeValidator = function _invokeValidator(vm, validator, val, arg, cb) {
var future = validator.call(this, val, arg);
if (typeof future === 'function') {
// function
// function
future(function () {
// resolve
cb(true);
Expand Down Expand Up @@ -1921,7 +1921,7 @@ var Validator$1 = function () {
var validation = this._getValidationFrom(field);
var validations = this._groupValidations[group];

validations && ! ~indexOf(validations, validation) && validations.push(validation);
validations && !~indexOf(validations, validation) && validations.push(validation);
};

Validator.prototype.removeGroupValidation = function removeGroupValidation(group, field) {
Expand Down Expand Up @@ -2604,7 +2604,7 @@ function plugin(Vue) {
Validate(Vue);
}

plugin.version = '2.1.5';
plugin.version = '2.1.6';

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin);
Expand Down
14 changes: 7 additions & 7 deletions dist/vue-validator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-validator v2.1.5
* vue-validator v2.1.6
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -428,14 +428,15 @@ var validators = Object.freeze({
}

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

var classId = 0; // ID for validation class


function ValidateClass (Vue) {
var vIf = Vue.directive('if');
var FragmentFactory = Vue.FragmentFactory;
Expand Down Expand Up @@ -514,7 +515,6 @@ var validators = Object.freeze({
}

function Validate (Vue) {
var vIf = Vue.directive('if');
var FragmentFactory = Vue.FragmentFactory;
var parseDirective = Vue.parsers.directive.parseDirective;
var _Vue$util = Vue.util;
Expand Down Expand Up @@ -547,7 +547,7 @@ var validators = Object.freeze({
Vue.directive('validate', {
deep: true,
terminal: true,
priority: vIf.priority + PRIORITY_VALIDATE,
priority: PRIORITY_VALIDATE,
params: ['group', 'field', 'detect-blur', 'detect-change', 'initial', 'classes'],

paramWatchers: {
Expand Down Expand Up @@ -1265,7 +1265,7 @@ var validators = Object.freeze({
BaseValidation.prototype._invokeValidator = function _invokeValidator(vm, validator, val, arg, cb) {
var future = validator.call(this, val, arg);
if (typeof future === 'function') {
// function
// function
future(function () {
// resolve
cb(true);
Expand Down Expand Up @@ -1925,7 +1925,7 @@ var validators = Object.freeze({
var validation = this._getValidationFrom(field);
var validations = this._groupValidations[group];

validations && ! ~indexOf(validations, validation) && validations.push(validation);
validations && !~indexOf(validations, validation) && validations.push(validation);
};

Validator.prototype.removeGroupValidation = function removeGroupValidation(group, field) {
Expand Down Expand Up @@ -2608,7 +2608,7 @@ var validators = Object.freeze({
Validate(Vue);
}

plugin.version = '2.1.5';
plugin.version = '2.1.6';

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin);
Expand Down
6 changes: 3 additions & 3 deletions dist/vue-validator.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/en/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ See [dist folder](https://github.com/vuejs/vue-validator/tree/dev/dist). Note th
### jsdelivr

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

## NPM
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
### jsdelivr

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

## NPM
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
### jsdelivr

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

## NPM
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-validator",
"description": "Validator component for Vue.js",
"version": "2.1.5",
"version": "2.1.6",
"author": {
"name": "kazuya kawaguchi",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function plugin (Vue, options = {}) {
Validate(Vue)
}

plugin.version = '2.1.5'
plugin.version = '2.1.6'

export default plugin

Expand Down

0 comments on commit 4cd6b9c

Please sign in to comment.