Skip to content

Commit 8686273

Browse files
New version of Winterfell. 1.0.7. Update CHANGELOG, new build.
1 parent 85b258a commit 8686273

File tree

9 files changed

+24
-10
lines changed

9 files changed

+24
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
# [1.0.7](https://github.com/andrewhathaway/Winterfell/releases/tag/1.0.7) (2016-07-23)
4+
5+
**Fixed bugs:**
6+
7+
- CheckboxInputOptions stores values from all checkbox questions. [Commit](https://github.com/andrewhathaway/Winterfell/commit/f5854356c65ef0fc008cb71a4d53573ce4234d4c) [Issue](https://github.com/andrewhathaway/Winterfell/issues/45)
8+
- Fix addValidationMethods. [PR](https://github.com/andrewhathaway/Winterfell/pull/61)
9+
- Mistake in the default error message for isLength rule. [PR](https://github.com/andrewhathaway/Winterfell/pull/63) [Issue](https://github.com/andrewhathaway/Winterfell/issues/58)
310

411
# [1.0.6](https://github.com/andrewhathaway/Winterfell/releases/tag/1.0.6) (2016-01-02)
512

dist/inputTypes/checkboxOptionsInput.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== 'function'
1010

1111
var React = require('react');
1212

13+
var CloneArray = require('../lib/cloneArray');
14+
1315
var CheckboxOptionsInput = (function (_React$Component) {
1416
_inherits(CheckboxOptionsInput, _React$Component);
1517

@@ -19,7 +21,7 @@ var CheckboxOptionsInput = (function (_React$Component) {
1921
_get(Object.getPrototypeOf(CheckboxOptionsInput.prototype), 'constructor', this).call(this, props);
2022

2123
this.state = {
22-
value: this.props.value
24+
value: this.props.value.length > 0 ? cloneArray(this.props.value) : []
2325
};
2426
}
2527

dist/inputTypes/selectInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ SelectInput.defaultProps = {
8585
onBlur: function onBlur() {}
8686
};
8787

88-
module.exports = SelectInput;
88+
module.exports = SelectInput;

dist/lib/cloneArray.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict";
2+
3+
module.exports = function (array) {
4+
return array.slice(0);
5+
};

dist/lib/errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var errorMessages = {
1818
break;
1919

2020
case 2:
21-
return 'Please enter a valiue between ' + validationItem.params[0] + ' and ' + validationItem.params[1] + ' characters long';
21+
return 'Please enter a value between ' + validationItem.params[0] + ' and ' + validationItem.params[1] + ' characters long';
2222
break;
2323

2424
default:
@@ -117,7 +117,7 @@ var errorMessages = {
117117
/*
118118
* Mobile phone
119119
*/
120-
isMobilePhone: 'Please enter a valid mobile phone',
120+
isMobilePhone: 'Please enter a valid mobile number',
121121

122122
/*
123123
* MongoId only

dist/lib/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ var addValidationMethods = function addValidationMethods(methods) {
195195
}
196196

197197
for (var methodName in methods) {
198-
addValidationMethod[methodName] = methods[methodName];
198+
addValidationMethod(methodName, methods[methodName]);
199199
}
200200
};
201201

dist/questionPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,4 +270,4 @@ QuestionPanel.defaultProps = {
270270
panelHistory: []
271271
};
272272

273-
module.exports = QuestionPanel;
273+
module.exports = QuestionPanel;

dist/winterfell.min.js

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "winterfell",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Generate complex, validated and extendable JSON-based forms in React",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)