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

Commit d7f6baa

Browse files
committed
Merge tag '0.11.1'
0.11.1
2 parents 0492435 + 047f315 commit d7f6baa

File tree

9 files changed

+42
-15
lines changed

9 files changed

+42
-15
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "validate",
33
"description": "Declarative validations for JavaScript",
44
"main": "validate.js",
5-
"version": "0.11.0",
5+
"version": "0.11.1",
66
"moduleType": [
77
"amd",
88
"globals",

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"repo" : "ansman/validate.js",
66
"main" : "validate.js",
77
"scripts" : ["validate.js"],
8-
"version" : "0.11.0",
8+
"version" : "0.11.1",
99
"license" : "MIT"
1010
}
1111

docs/validate.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1>validate.js</h1>
3131
</div>
3232

3333
<div class="content"><div class='highlight'><pre><span class="hljs-comment">/*!
34-
* validate.js 0.11.0
34+
* validate.js 0.11.1
3535
*
3636
* (c) 2013-2016 Nicklas Ansman, 2013 Wrapp
3737
* Validate.js may be freely distributed under the MIT license.
@@ -129,7 +129,7 @@ <h1>validate.js</h1>
129129
<div class="content"><div class='highlight'><pre> version: {
130130
major: <span class="hljs-number">0</span>,
131131
minor: <span class="hljs-number">11</span>,
132-
patch: <span class="hljs-number">0</span>,
132+
patch: <span class="hljs-number">1</span>,
133133
metadata: <span class="hljs-literal">null</span>,
134134
toString: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
135135
<span class="hljs-keyword">var</span> version = v.format(<span class="hljs-string">"%{major}.%{minor}.%{patch}"</span>, v.version);
@@ -2086,6 +2086,16 @@ <h1>validate.js</h1>
20862086
errors[attr] = v.flattenErrorsToArray(errors[attr]);
20872087
}
20882088
<span class="hljs-keyword">return</span> errors;
2089+
},
2090+
constraint: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">errors</span>) </span>{
2091+
<span class="hljs-keyword">var</span> attr;
2092+
errors = v.groupErrorsByAttribute(errors);
2093+
<span class="hljs-keyword">for</span> (attr <span class="hljs-keyword">in</span> errors) {
2094+
errors[attr] = errors[attr].map(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">result</span>) </span>{
2095+
<span class="hljs-keyword">return</span> result.validator;
2096+
}).sort();
2097+
}
2098+
<span class="hljs-keyword">return</span> errors;
20892099
}
20902100
};
20912101

index.html

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@
404404
<li>
405405
<a href="#changelog">Changelog</a>
406406
<ul>
407+
<li><a href="#changelog-0-11-1">0.11.1</a></li>
407408
<li><a href="#changelog-0-11-0">0.11.0</a></li>
408409
<li><a href="#changelog-0-10-0">0.10.0</a></li>
409410
<li><a href="#changelog-0-9-0">0.9.0</a></li>
@@ -462,13 +463,13 @@
462463
</p>
463464
<h2 id="downloads">Downloads</h2>
464465
<div class="download">
465-
<a class="btn btn-default" download href="validate.js">Development version (0.11.0)</a>
466+
<a class="btn btn-default" download href="validate.js">Development version (0.11.1)</a>
466467
<div class="info">
467468
<span class="details">33KB, uncompressed and plenty of comments</span>
468469
</div>
469470
</div>
470471
<div class="download">
471-
<a class="btn btn-primary" download href="validate.min.js">Production version (0.11.0)</a>
472+
<a class="btn btn-primary" download href="validate.min.js">Production version (0.11.1)</a>
472473
<div class="info">
473474
<span class="details">4.56KB, minified and gzipped</span><br>
474475
<a download href="validate.min.map">(Source map)</a>
@@ -489,7 +490,7 @@ <h2 id="downloads">Downloads</h2>
489490
<div id="installing">
490491
<h2>Installing</h2>
491492
<b>Browser/CDN</b>
492-
<pre><code class="html">&lt;script src="//cdnjs.cloudflare.com/ajax/libs/validate.js/0.11.0/validate.min.js"&gt;&lt;/script&gt;</code></pre>
493+
<pre><code class="html">&lt;script src="//cdnjs.cloudflare.com/ajax/libs/validate.js/0.11.1/validate.min.js"&gt;&lt;/script&gt;</code></pre>
493494
<b>Require.js/AMD</b>
494495
<pre><code class="javascript">require(["validate.js"], function(validate) {
495496
// ...
@@ -2350,7 +2351,23 @@ <h2>Utilities</h2>
23502351
</div>
23512352
<div id="changelog">
23522353
<h2>Changelog</h2>
2353-
<div id="changelog-0-11-0">
2354+
<div id="changelog-0-11-1">
2355+
<h3>
2356+
<b class="version">0.11.1</b>
2357+
-
2358+
<span class="date">Nov 6, 2016</span>
2359+
-
2360+
<a href="http://htmlpreview.github.com/?https://raw.github.com/ansman/validate.js/0.11.1/index.html">Docs</a>
2361+
-
2362+
<a href="https://github.com/ansman/validate.js/compare/0.11.0...0.11.1">Diff</a>
2363+
</h3>
2364+
<ul>
2365+
<li>
2366+
Fix an error with the typscript bindings.
2367+
Thank <a href="https://github.com/ansman/validate.js/issues/168" target="_blank">Jeff Barnes</a> for reporting and fixing this.
2368+
</li>
2369+
</ul>
2370+
</div><div id="changelog-0-11-0">
23542371
<h3>
23552372
<b class="version">0.11.0</b>
23562373
-

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "validate.js",
3-
"version": "0.11.0",
3+
"version": "0.11.1",
44
"author": "Nicklas Ansman <[email protected]>",
55
"description": "Declarative validations for JavaScript",
66
"main": "validate.js",

validate.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export declare interface ValidateJS {
22
(attributes: any, constraints: any, options?: any): any;
3-
async(attributes, constraints, options?: any): Promise<any>;
3+
async(attributes: any, constraints: any, options?: any): Promise<any>;
44
single(value: any, constraints: any, options?: any): any;
55
}
66

validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* validate.js 0.11.0
2+
* validate.js 0.11.1
33
*
44
* (c) 2013-2016 Nicklas Ansman, 2013 Wrapp
55
* Validate.js may be freely distributed under the MIT license.
@@ -57,7 +57,7 @@
5757
version: {
5858
major: 0,
5959
minor: 11,
60-
patch: 0,
60+
patch: 1,
6161
metadata: "development",
6262
toString: function() {
6363
var version = v.format("%{major}.%{minor}.%{patch}", v.version);

validate.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

validate.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)