Skip to content
This repository was archived by the owner on May 15, 2022. It is now read-only.

Commit 6bdd49e

Browse files
Updated change log and build for v1.0.1 release
1 parent b22e973 commit 6bdd49e

File tree

4 files changed

+20
-48
lines changed

4 files changed

+20
-48
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release Notes
22

3+
## (2017-10-09) `v1.0.1`
4+
5+
### Changed
6+
7+
* ES7 property initializers are now used to set initial state in all components rather than `componentWillMount`
8+
39
## (2017-10-09) `v1.0.0`
410

511
### Added

build/react-dat-gui.js

Lines changed: 12 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6325,19 +6325,14 @@ var DatBoolean = function (_Component) {
63256325
args[_key] = arguments[_key];
63266326
}
63276327

6328-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatBoolean.__proto__ || Object.getPrototypeOf(DatBoolean)).call.apply(_ref, [this].concat(args))), _this), _this.handleChange = function (event) {
6328+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatBoolean.__proto__ || Object.getPrototypeOf(DatBoolean)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
6329+
value: _this.getValue()
6330+
}, _this.handleChange = function (event) {
63296331
_this.setState({ value: event.target.checked }, _this.update);
63306332
}, _temp), _possibleConstructorReturn(_this, _ret);
63316333
}
63326334

63336335
_createClass(DatBoolean, [{
6334-
key: 'componentWillMount',
6335-
value: function componentWillMount() {
6336-
this.setState({
6337-
value: this.getValue()
6338-
});
6339-
}
6340-
}, {
63416336
key: 'componentWillReceiveProps',
63426337
value: function componentWillReceiveProps(nextProps) {
63436338
this.setState({
@@ -6520,13 +6515,6 @@ var DatColor = function (_Component) {
65206515
}
65216516

65226517
_createClass(DatColor, [{
6523-
key: 'componentWillMount',
6524-
value: function componentWillMount() {
6525-
this.setState({
6526-
value: this.getValue()
6527-
});
6528-
}
6529-
}, {
65306518
key: 'componentWillReceiveProps',
65316519
value: function componentWillReceiveProps(nextProps) {
65326520
this.setState({
@@ -6791,7 +6779,9 @@ var DatNumber = function (_Component) {
67916779
args[_key] = arguments[_key];
67926780
}
67936781

6794-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatNumber.__proto__ || Object.getPrototypeOf(DatNumber)).call.apply(_ref, [this].concat(args))), _this), _this.handleChange = function (event) {
6782+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatNumber.__proto__ || Object.getPrototypeOf(DatNumber)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
6783+
value: _this.getValue()
6784+
}, _this.handleChange = function (event) {
67956785
_this.setState({ value: event.target.value }, _this.update);
67966786
}, _this.handleFocus = function () {
67976787
document.addEventListener('keydown', _this.handleKeyDown);
@@ -6823,13 +6813,6 @@ var DatNumber = function (_Component) {
68236813
}
68246814

68256815
_createClass(DatNumber, [{
6826-
key: 'componentWillMount',
6827-
value: function componentWillMount() {
6828-
this.setState({
6829-
value: this.getValue()
6830-
});
6831-
}
6832-
}, {
68336816
key: 'componentWillReceiveProps',
68346817
value: function componentWillReceiveProps(nextProps) {
68356818
this.setState({
@@ -7180,13 +7163,6 @@ var DatSelect = function (_Component) {
71807163
}
71817164

71827165
_createClass(DatSelect, [{
7183-
key: 'componentWillMount',
7184-
value: function componentWillMount() {
7185-
this.setState({
7186-
value: this.getValue()
7187-
});
7188-
}
7189-
}, {
71907166
key: 'componentWillReceiveProps',
71917167
value: function componentWillReceiveProps(nextProps) {
71927168
this.setState({
@@ -7320,7 +7296,9 @@ var DatString = function (_Component) {
73207296
args[_key] = arguments[_key];
73217297
}
73227298

7323-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatString.__proto__ || Object.getPrototypeOf(DatString)).call.apply(_ref, [this].concat(args))), _this), _this.handleChange = function (event) {
7299+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatString.__proto__ || Object.getPrototypeOf(DatString)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
7300+
value: _this.getValue()
7301+
}, _this.handleChange = function (event) {
73247302
var value = event.target.value;
73257303

73267304
_this.setState({ value: value }, function () {
@@ -7342,13 +7320,6 @@ var DatString = function (_Component) {
73427320
}
73437321

73447322
_createClass(DatString, [{
7345-
key: 'componentWillMount',
7346-
value: function componentWillMount() {
7347-
this.setState({
7348-
value: this.getValue()
7349-
});
7350-
}
7351-
}, {
73527323
key: 'componentWillReceiveProps',
73537324
value: function componentWillReceiveProps(nextProps) {
73547325
this.setState({
@@ -8732,7 +8703,9 @@ var Slider = function (_Component) {
87328703
args[_key] = arguments[_key];
87338704
}
87348705

8735-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Slider.__proto__ || Object.getPrototypeOf(Slider)).call.apply(_ref, [this].concat(args))), _this), _this.handleMouseDown = function (event) {
8706+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Slider.__proto__ || Object.getPrototypeOf(Slider)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
8707+
value: (0, _utils.toNumber)(_this.props.value)
8708+
}, _this.handleMouseDown = function (event) {
87368709
_this.update(event.pageX);
87378710

87388711
window.addEventListener('mousemove', _this.handleMouseMove);
@@ -8753,13 +8726,6 @@ var Slider = function (_Component) {
87538726
}
87548727

87558728
_createClass(Slider, [{
8756-
key: 'componentWillMount',
8757-
value: function componentWillMount() {
8758-
this.setState({
8759-
value: (0, _utils.toNumber)(this.props.value)
8760-
});
8761-
}
8762-
}, {
87638729
key: 'componentWillReceiveProps',
87648730
value: function componentWillReceiveProps(nextProps) {
87658731
this.setState({

build/react-dat-gui.js.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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-dat-gui",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "dat.GUI reimagined for React",
55
"main": "build/react-dat-gui.js",
66
"style": "build/react-dat-gui.css",

0 commit comments

Comments
 (0)