Skip to content

Commit eb8710a

Browse files
committed
Version 2.8.11
1 parent a50b2e9 commit eb8710a

File tree

5 files changed

+42
-41
lines changed

5 files changed

+42
-41
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
Changelog
22
=========
3+
## 2.8.11
4+
* Update TypeScript definitions
5+
* Replace deprecated React method with non-deprecated method
6+
37
## 2.8.10
48
* Increase click area of arrows for changing day/month/year
59
* Update code according to React 15.5.0
610
* Remove usage of React.createClass
7-
* Use separate module for PropTypes
11+
* Use separate module for PropTypes
812

913
## 2.8.9
1014
* Fixes issue where incorrect current month is shown

dist/react-datetime.js

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
react-datetime v2.8.10
2+
react-datetime v2.8.11
33
https://github.com/YouCanBookMe/react-datetime
44
MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE
55
*/
@@ -1423,45 +1423,43 @@ return /******/ (function(modules) { // webpackBootstrap
14231423
var warning = emptyFunction;
14241424

14251425
if (process.env.NODE_ENV !== 'production') {
1426-
(function () {
1427-
var printWarning = function printWarning(format) {
1428-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1429-
args[_key - 1] = arguments[_key];
1430-
}
1431-
1432-
var argIndex = 0;
1433-
var message = 'Warning: ' + format.replace(/%s/g, function () {
1434-
return args[argIndex++];
1435-
});
1436-
if (typeof console !== 'undefined') {
1437-
console.error(message);
1438-
}
1439-
try {
1440-
// --- Welcome to debugging React ---
1441-
// This error was thrown as a convenience so that you can use this stack
1442-
// to find the callsite that caused this warning to fire.
1443-
throw new Error(message);
1444-
} catch (x) {}
1445-
};
1426+
var printWarning = function printWarning(format) {
1427+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1428+
args[_key - 1] = arguments[_key];
1429+
}
14461430

1447-
warning = function warning(condition, format) {
1448-
if (format === undefined) {
1449-
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
1450-
}
1431+
var argIndex = 0;
1432+
var message = 'Warning: ' + format.replace(/%s/g, function () {
1433+
return args[argIndex++];
1434+
});
1435+
if (typeof console !== 'undefined') {
1436+
console.error(message);
1437+
}
1438+
try {
1439+
// --- Welcome to debugging React ---
1440+
// This error was thrown as a convenience so that you can use this stack
1441+
// to find the callsite that caused this warning to fire.
1442+
throw new Error(message);
1443+
} catch (x) {}
1444+
};
14511445

1452-
if (format.indexOf('Failed Composite propType: ') === 0) {
1453-
return; // Ignore CompositeComponent proptype check.
1454-
}
1446+
warning = function warning(condition, format) {
1447+
if (format === undefined) {
1448+
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
1449+
}
14551450

1456-
if (!condition) {
1457-
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
1458-
args[_key2 - 2] = arguments[_key2];
1459-
}
1451+
if (format.indexOf('Failed Composite propType: ') === 0) {
1452+
return; // Ignore CompositeComponent proptype check.
1453+
}
14601454

1461-
printWarning.apply(undefined, [format].concat(args));
1455+
if (!condition) {
1456+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
1457+
args[_key2 - 2] = arguments[_key2];
14621458
}
1463-
};
1464-
})();
1459+
1460+
printWarning.apply(undefined, [format].concat(args));
1461+
}
1462+
};
14651463
}
14661464

14671465
module.exports = warning;
@@ -3291,7 +3289,6 @@ return /******/ (function(modules) { // webpackBootstrap
32913289
onClickOutside = __webpack_require__(19)
32923290
;
32933291

3294-
32953292
var DateTimePickerYears = onClickOutside( createClass({
32963293
render: function() {
32973294
var year = parseInt( this.props.viewDate.year() / 10, 10 ) * 10;

dist/react-datetime.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.

dist/react-datetime.min.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-datetime",
3-
"version": "2.8.10",
3+
"version": "2.8.11",
44
"description": "A lightweight but complete datetime picker React.js component.",
55
"homepage": "https://github.com/YouCanBookMe/react-datetime",
66
"repository": {

0 commit comments

Comments
 (0)