Skip to content

Commit b00fbee

Browse files
committed
Knockout Validation 2.0.2
1 parent 0448934 commit b00fbee

File tree

8 files changed

+747
-381
lines changed

8 files changed

+747
-381
lines changed
16.3 KB
Binary file not shown.
-12.1 KB
Binary file not shown.
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<article style="max-height: 20em; overflow: auto;">
2+
<h1>2.0.2 (2015-02-02)</h1>
3+
4+
<h3>Bug Fixes</h3>
5+
6+
<ul class="task-list">
7+
<li>use <code>peerDependencies</code> for npm package dependencies #528</li>
8+
<li>
9+
<code>validationElement</code> and <code>validationMessage</code> bindings throw if observable is not validatable #519</li>
10+
<li>validation cannot be removed from attached observable #526</li>
11+
<li>localization may not work in node.js; some files were still not working with RequireJS #509</li>
12+
<li>Nuget package will contain the same file names as for Bower or NPM</li>
13+
</ul>
14+
15+
<h1>2.0.1 (2015-01-26)</h1>
16+
17+
<p>This release enables <a href="https://cdnjs.com/libraries/knockout-validation">cdnjs</a> npm auto-update and fixes localization loading issue with RequireJS.</p>
18+
19+
<h3>Bug Fixes</h3>
20+
21+
<ul class="task-list">
22+
<li>Localization loading randomly breaks when using requirejs #509</li>
23+
</ul>
24+
25+
<h3>Localization</h3>
26+
27+
<ul class="task-list">
28+
<li>add localization file for Chinese - Taiwan (zh-TW) #513</li>
29+
</ul>
30+
31+
<h1>2.0.0 (2015-01-20)</h1>
32+
33+
<h3>Features</h3>
34+
35+
<ul class="task-list">
36+
<li>new localization files: Hebrew, Italian, Persian, Hungarian, Croatian, Brazilian, Japanese, Swedish, Norwegian, Chinese, German, Catalan, Danish, Korean, Latvian, Romanian, Bulgarian, Portuguese, Czech, Turkish #165, #177, #196, #201, #203, #204, #212, #221, #261, #270, #322, #327, #329, #340, #378, #411, #415, #416, #430, #467</li>
37+
<li>add config option <code>errorsAsTitle</code> to disable setting element 'title' with error description. Default is <code>true</code> #168</li>
38+
<li>add config option <code>grouping.live</code> to react to changes to observableArrays #223</li>
39+
<li>add config option <code>decorateElementOnModified</code> #320</li>
40+
<li>add config option <code>allowHtmlMessages</code> for allowing HTML in validation messages #364</li>
41+
<li>add config option <code>validate.throttle</code> to implement throttling for validation #344</li>
42+
<li>add support for HTML5 date, email and number input types #130</li>
43+
<li>decorate radio buttons using checked binding #193</li>
44+
<li>Number validator - Allow numbers starting with point. #236</li>
45+
<li>step rule supports value <code>any</code> #271</li>
46+
<li>remove dependency on jQuery #318</li>
47+
<li>update knockout dependency to v3.0.0 #358</li>
48+
<li>add <code>setRules</code> method #337</li>
49+
<li>min and max validation use type attribute to determine behavior #355</li>
50+
<li>make library available through npm #357</li>
51+
<li>support observable params for validators #363</li>
52+
<li>min and max rules work with Date observables #459</li>
53+
<li>allow grouping options to be specified to <code>validatedObservable</code> #461</li>
54+
<li>add version in banner #428</li>
55+
<li>add support for <code>textInput</code> binding #451</li>
56+
<li>add support for <code>selectedOptions</code> binding #426</li>
57+
<li>add basic collection methods to errors, exposing raw validatables. #449</li>
58+
<li>ko.validation.group does not resolve deferred computed values unless they have rules defined on them. #163</li>
59+
<li>make localization files AMD and CommonJS/Node compatible #492</li>
60+
<li>enable loading of multiple locales and add possibility to switch between them #492</li>
61+
</ul>
62+
63+
<h3>Bug Fixes</h3>
64+
65+
<ul class="task-list">
66+
<li>unwrap parameters before using them in <code>formatMessage</code> #235</li>
67+
<li>make attached error property to be observable #247, #173</li>
68+
<li>grouping options does not overwrite global configuration options #248</li>
69+
<li>titles are not reset when data becomes valid #170</li>
70+
<li>reorder <code>phoneUS</code> validation checks to preserve optional properties if observable is not initialized or null. #234</li>
71+
<li>fix memory leaks in <code>addAnonymousRule</code> rules #346</li>
72+
<li>handle rule <code>params</code> which may be undefined #334</li>
73+
<li>
74+
<code>unique</code> rule can behave incorrectly for external values #365</li>
75+
<li>use update binding handler instead of utility method setTextContent #368</li>
76+
<li>
77+
<code>onlyIf</code> doesn’t affect anonymous validation rule #374</li>
78+
<li>fix group returns observables in errors array, not the value of each error #383</li>
79+
<li>fix initial value for isValid of <code>validatedObservable</code> #387</li>
80+
<li>fix check for knockout library #447</li>
81+
<li>make <code>formatMessage</code> aware if min and max rules were created from Javascript #385</li>
82+
<li>
83+
<code>writeInputAttributes</code> fails when anonymous rules are used #400</li>
84+
<li>
85+
<code>maxLength</code> rule fails if the value (of the observable) is a number #457</li>
86+
<li>
87+
<code>applyBindingsWithValidation</code> fails when called with viewModel and options #137</li>
88+
<li>
89+
<code>applyBindingsWithValidation</code> should extend provided config #472</li>
90+
<li>
91+
<code>dateISO</code> rule accepts months or days outside the valid range #265</li>
92+
<li>
93+
<code>writeInputValidationAttributes</code> does not support write HTML5 attributes correctly when <code>params</code> is observable #481</li>
94+
<li>prevent <code>ko.validation.group</code> to notify with intermediary validation state #99</li>
95+
<li>grouping over validatedObservable objects is not possible #494</li>
96+
<li>
97+
<code>showAllMessages</code> throws when accessing <code>isModified</code> when grouping over validatedObservable instances #269</li>
98+
<li>
99+
<code>validatedObservable</code> does not react when its value changes #442</li>
100+
<li>updating a validatedObservable will not reset initial validation result #209</li>
101+
<li>
102+
<code>parseInputAttributes</code> option may duplicate rules when enabled #277</li>
103+
</ul>
104+
105+
<h3>Breaking Changes</h3>
106+
107+
<ul class="task-list">
108+
<li>remove <code>ko.validation.configure</code> method, <code>ko.validation.init</code> must be used instead #496</li>
109+
<li>rename <code>decorateElement</code> to <code>decorateInputElement</code> #361</li>
110+
<li>do not change original data by <code>group</code> method #465, #225</li>
111+
<li>loading localization files using <code>script</code> tags or with and <code>AMD loader</code> no longer changes the language automatically. A call to <code>ko.validation.locale</code> is required #506</li>
112+
<li>rename some localization files due to invalid identifiers, no-NB.js ? nb-NO.js, ca-CA.js ? ca-ES.js c2d0ec19bc0abea073a4bbabc933e7299aa6af5b</li>
113+
<li>change project structure #511 - directories are now lowercase</li>
114+
</ul>
115+
</article>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Knockout Validation is licensed under the <a href="https://github.com/Knockout-Contrib/Knockout-Validation/blob/2.0.2/README.md">MIT License</a>.</p>
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
<dotnetnuke type="Package" version="5.0">
2-
<packages>
3-
<package name="knockout.validation" type="JavaScript_Library" version="2.0.0">
4-
<friendlyName>Knockout Validation</friendlyName>
5-
<description>A Validation Library plugin for KnockoutJS. An extensible and pluggable framework for performing model-based Form and UI validation.</description>
6-
<owner>
7-
<name>Engage Software</name>
8-
<organization>Engage Software</organization>
9-
<url>http://www.engagesoftware.com</url>
10-
<email>[email protected]</email>
11-
</owner>
12-
<license src="LICENSE.htm" />
13-
<releaseNotes src="CHANGES.htm" />
14-
<azureCompatible>true</azureCompatible>
15-
<dependencies>
16-
<dependency type="managedPackage" version="3.0.0">Knockout</dependency>
17-
</dependencies>
18-
<components>
19-
<component type="JavaScript_Library">
20-
<javaScriptLibrary>
21-
<libraryName>knockout.validation</libraryName>
22-
<fileName>knockout.validation.js</fileName>
23-
<objectName>ko.validation</objectName>
24-
<cdnUrl>https://cdn.jsdelivr.net/knockout.validation/2.0.0-pre.3/knockout.validation.min.js</cdnUrl>
25-
<preferredScriptLocation>BodyBottom</preferredScriptLocation>
26-
</javaScriptLibrary>
27-
</component>
28-
<component type="JavaScriptFile">
29-
<jsfiles>
30-
<libraryFolderName>knockout.validation</libraryFolderName>
31-
<jsfile>
32-
<name>knockout.validation.js</name>
33-
</jsfile>
34-
</jsfiles>
35-
</component>
36-
</components>
37-
</package>
38-
</packages>
39-
</dotnetnuke>
1+
<dotnetnuke type="Package" version="5.0">
2+
<packages>
3+
<package name="knockout.validation" type="JavaScript_Library" version="2.0.2">
4+
<friendlyName>Knockout Validation</friendlyName>
5+
<description><![CDATA[A KnockoutJS Plugin for model and property validation]]></description>
6+
<owner>
7+
<name>Engage Software</name>
8+
<organization>Engage Software</organization>
9+
<url>http://www.engagesoftware.com</url>
10+
<email>[email protected]</email>
11+
</owner>
12+
<license src="LICENSE.htm" />
13+
<releaseNotes src="CHANGES.htm" />
14+
<azureCompatible>true</azureCompatible>
15+
<dependencies>
16+
<dependency type="managedPackage" version="2.3.0">Knockout</dependency>
17+
</dependencies>
18+
<components>
19+
<component type="JavaScript_Library">
20+
<javaScriptLibrary>
21+
<libraryName>knockout.validation</libraryName>
22+
<fileName>knockout.validation.js</fileName>
23+
<preferredScriptLocation>BodyBottom</preferredScriptLocation>
24+
<CDNPath>https://cdn.jsdelivr.net/knockout.validation/2.0.2/knockout.validation.min.js</CDNPath>
25+
<objectName>ko.validation</objectName>
26+
</javaScriptLibrary>
27+
</component>
28+
<component type="JavaScriptFile">
29+
<jsfiles>
30+
<libraryFolderName>knockout.validation</libraryFolderName>
31+
<jsfile>
32+
<name>knockout.validation.js</name>
33+
</jsfile>
34+
</jsfiles>
35+
</component>
36+
</components>
37+
</package>
38+
</packages>
39+
</dotnetnuke>

0 commit comments

Comments
 (0)