Skip to content

Commit 7392ed2

Browse files
committed
Bump version to 2.8.10
1 parent c82df85 commit 7392ed2

File tree

5 files changed

+73
-61
lines changed

5 files changed

+73
-61
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Changelog
22
=========
3+
## 2.8.10
4+
* Increase click area of arrows for changing day/month/year
5+
* Update code according to React 15.5.0
6+
* Remove usage of React.createClass
7+
* Use separate module for PropTypes
8+
39
## 2.8.9
410
* Fixes issue where incorrect current month is shown
511

dist/react-datetime.js

Lines changed: 62 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
react-datetime v2.8.9
2+
react-datetime v2.8.10
33
https://github.com/YouCanBookMe/react-datetime
44
MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE
55
*/
@@ -57,7 +57,7 @@ return /******/ (function(modules) { // webpackBootstrap
5757
/************************************************************************/
5858
/******/ ([
5959
/* 0 */
60-
/***/ function(module, exports, __webpack_require__) {
60+
/***/ (function(module, exports, __webpack_require__) {
6161

6262
'use strict';
6363

@@ -501,9 +501,9 @@ return /******/ (function(modules) { // webpackBootstrap
501501
module.exports = Datetime;
502502

503503

504-
/***/ },
504+
/***/ }),
505505
/* 1 */
506-
/***/ function(module, exports) {
506+
/***/ (function(module, exports) {
507507

508508
'use strict';
509509
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
@@ -546,9 +546,9 @@ return /******/ (function(modules) { // webpackBootstrap
546546
};
547547

548548

549-
/***/ },
549+
/***/ }),
550550
/* 2 */
551-
/***/ function(module, exports, __webpack_require__) {
551+
/***/ (function(module, exports, __webpack_require__) {
552552

553553
/* WEBPACK VAR INJECTION */(function(process) {/**
554554
* Copyright 2013-present, Facebook, Inc.
@@ -583,9 +583,9 @@ return /******/ (function(modules) { // webpackBootstrap
583583

584584
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))
585585

586-
/***/ },
586+
/***/ }),
587587
/* 3 */
588-
/***/ function(module, exports) {
588+
/***/ (function(module, exports) {
589589

590590
// shim for using process in browser
591591
var process = module.exports = {};
@@ -769,9 +769,9 @@ return /******/ (function(modules) { // webpackBootstrap
769769
process.umask = function() { return 0; };
770770

771771

772-
/***/ },
772+
/***/ }),
773773
/* 4 */
774-
/***/ function(module, exports, __webpack_require__) {
774+
/***/ (function(module, exports, __webpack_require__) {
775775

776776
/* WEBPACK VAR INJECTION */(function(process) {/**
777777
* Copyright 2013-present, Facebook, Inc.
@@ -923,6 +923,7 @@ return /******/ (function(modules) { // webpackBootstrap
923923
function createChainableTypeChecker(validate) {
924924
if (process.env.NODE_ENV !== 'production') {
925925
var manualPropTypeCallCache = {};
926+
var manualPropTypeWarningCount = 0;
926927
}
927928
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
928929
componentName = componentName || ANONYMOUS;
@@ -940,7 +941,11 @@ return /******/ (function(modules) { // webpackBootstrap
940941
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
941942
// Old behavior for people using React.PropTypes
942943
var cacheKey = componentName + ':' + propName;
943-
if (!manualPropTypeCallCache[cacheKey]) {
944+
if (
945+
!manualPropTypeCallCache[cacheKey] &&
946+
// Avoid spamming the console because they are often not actionable except for lib authors
947+
manualPropTypeWarningCount < 3
948+
) {
944949
warning(
945950
false,
946951
'You are manually calling a React.PropTypes validation ' +
@@ -952,6 +957,7 @@ return /******/ (function(modules) { // webpackBootstrap
952957
componentName
953958
);
954959
manualPropTypeCallCache[cacheKey] = true;
960+
manualPropTypeWarningCount++;
955961
}
956962
}
957963
}
@@ -1248,9 +1254,9 @@ return /******/ (function(modules) { // webpackBootstrap
12481254

12491255
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))
12501256

1251-
/***/ },
1257+
/***/ }),
12521258
/* 5 */
1253-
/***/ function(module, exports) {
1259+
/***/ (function(module, exports) {
12541260

12551261
"use strict";
12561262

@@ -1291,9 +1297,9 @@ return /******/ (function(modules) { // webpackBootstrap
12911297

12921298
module.exports = emptyFunction;
12931299

1294-
/***/ },
1300+
/***/ }),
12951301
/* 6 */
1296-
/***/ function(module, exports, __webpack_require__) {
1302+
/***/ (function(module, exports, __webpack_require__) {
12971303

12981304
/* WEBPACK VAR INJECTION */(function(process) {/**
12991305
* Copyright (c) 2013-present, Facebook, Inc.
@@ -1352,9 +1358,9 @@ return /******/ (function(modules) { // webpackBootstrap
13521358
module.exports = invariant;
13531359
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))
13541360

1355-
/***/ },
1361+
/***/ }),
13561362
/* 7 */
1357-
/***/ function(module, exports, __webpack_require__) {
1363+
/***/ (function(module, exports, __webpack_require__) {
13581364

13591365
/* WEBPACK VAR INJECTION */(function(process) {/**
13601366
* Copyright 2014-2015, Facebook, Inc.
@@ -1424,9 +1430,9 @@ return /******/ (function(modules) { // webpackBootstrap
14241430
module.exports = warning;
14251431
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))
14261432

1427-
/***/ },
1433+
/***/ }),
14281434
/* 8 */
1429-
/***/ function(module, exports) {
1435+
/***/ (function(module, exports) {
14301436

14311437
/**
14321438
* Copyright 2013-present, Facebook, Inc.
@@ -1444,9 +1450,9 @@ return /******/ (function(modules) { // webpackBootstrap
14441450
module.exports = ReactPropTypesSecret;
14451451

14461452

1447-
/***/ },
1453+
/***/ }),
14481454
/* 9 */
1449-
/***/ function(module, exports, __webpack_require__) {
1455+
/***/ (function(module, exports, __webpack_require__) {
14501456

14511457
/* WEBPACK VAR INJECTION */(function(process) {/**
14521458
* Copyright 2013-present, Facebook, Inc.
@@ -1512,9 +1518,9 @@ return /******/ (function(modules) { // webpackBootstrap
15121518

15131519
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))
15141520

1515-
/***/ },
1521+
/***/ }),
15161522
/* 10 */
1517-
/***/ function(module, exports, __webpack_require__) {
1523+
/***/ (function(module, exports, __webpack_require__) {
15181524

15191525
/**
15201526
* Copyright 2013-present, Facebook, Inc.
@@ -1572,9 +1578,9 @@ return /******/ (function(modules) { // webpackBootstrap
15721578
};
15731579

15741580

1575-
/***/ },
1581+
/***/ }),
15761582
/* 11 */
1577-
/***/ function(module, exports, __webpack_require__) {
1583+
/***/ (function(module, exports, __webpack_require__) {
15781584

15791585
/**
15801586
* Copyright 2013-present, Facebook, Inc.
@@ -1601,15 +1607,15 @@ return /******/ (function(modules) { // webpackBootstrap
16011607
);
16021608

16031609

1604-
/***/ },
1610+
/***/ }),
16051611
/* 12 */
1606-
/***/ function(module, exports) {
1612+
/***/ (function(module, exports) {
16071613

16081614
module.exports = __WEBPACK_EXTERNAL_MODULE_12__;
16091615

1610-
/***/ },
1616+
/***/ }),
16111617
/* 13 */
1612-
/***/ function(module, exports, __webpack_require__) {
1618+
/***/ (function(module, exports, __webpack_require__) {
16131619

16141620
/* WEBPACK VAR INJECTION */(function(process) {/**
16151621
* Copyright 2013-present, Facebook, Inc.
@@ -2338,9 +2344,9 @@ return /******/ (function(modules) { // webpackBootstrap
23382344

23392345
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))
23402346

2341-
/***/ },
2347+
/***/ }),
23422348
/* 14 */
2343-
/***/ function(module, exports) {
2349+
/***/ (function(module, exports) {
23442350

23452351
/*
23462352
object-assign
@@ -2434,9 +2440,9 @@ return /******/ (function(modules) { // webpackBootstrap
24342440
};
24352441

24362442

2437-
/***/ },
2443+
/***/ }),
24382444
/* 15 */
2439-
/***/ function(module, exports, __webpack_require__) {
2445+
/***/ (function(module, exports, __webpack_require__) {
24402446

24412447
/* WEBPACK VAR INJECTION */(function(process) {/**
24422448
* Copyright (c) 2013-present, Facebook, Inc.
@@ -2459,15 +2465,15 @@ return /******/ (function(modules) { // webpackBootstrap
24592465
module.exports = emptyObject;
24602466
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))
24612467

2462-
/***/ },
2468+
/***/ }),
24632469
/* 16 */
2464-
/***/ function(module, exports) {
2470+
/***/ (function(module, exports) {
24652471

24662472
module.exports = __WEBPACK_EXTERNAL_MODULE_16__;
24672473

2468-
/***/ },
2474+
/***/ }),
24692475
/* 17 */
2470-
/***/ function(module, exports, __webpack_require__) {
2476+
/***/ (function(module, exports, __webpack_require__) {
24712477

24722478
var React = __webpack_require__(12),
24732479
createClass = __webpack_require__(11),
@@ -2493,9 +2499,9 @@ return /******/ (function(modules) { // webpackBootstrap
24932499
module.exports = CalendarContainer;
24942500

24952501

2496-
/***/ },
2502+
/***/ }),
24972503
/* 18 */
2498-
/***/ function(module, exports, __webpack_require__) {
2504+
/***/ (function(module, exports, __webpack_require__) {
24992505

25002506
'use strict';
25012507

@@ -2517,9 +2523,9 @@ return /******/ (function(modules) { // webpackBootstrap
25172523
tableChildren = [
25182524
DOM.thead({ key: 'th' }, [
25192525
DOM.tr({ key: 'h' }, [
2520-
DOM.th({ key: 'p', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'months' )}, '‹' )),
2526+
DOM.th({ key: 'p', className: 'rdtPrev', onClick: this.props.subtractTime( 1, 'months' )}, DOM.span({}, '‹' )),
25212527
DOM.th({ key: 's', className: 'rdtSwitch', onClick: this.props.showView( 'months' ), colSpan: 5, 'data-value': this.props.viewDate.month() }, locale.months( date ) + ' ' + date.year() ),
2522-
DOM.th({ key: 'n', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'months' )}, '›' ))
2528+
DOM.th({ key: 'n', className: 'rdtNext', onClick: this.props.addTime( 1, 'months' )}, DOM.span({}, '›' ))
25232529
]),
25242530
DOM.tr({ key: 'd'}, this.getDaysOfWeek( locale ).map( function( day, index ) { return DOM.th({ key: day + index, className: 'dow'}, day ); }) )
25252531
]),
@@ -2644,9 +2650,9 @@ return /******/ (function(modules) { // webpackBootstrap
26442650
module.exports = DateTimePickerDays;
26452651

26462652

2647-
/***/ },
2653+
/***/ }),
26482654
/* 19 */
2649-
/***/ function(module, exports, __webpack_require__) {
2655+
/***/ (function(module, exports, __webpack_require__) {
26502656

26512657
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
26522658
* A higher-order-component for handling onClickOutside for React components.
@@ -2959,15 +2965,15 @@ return /******/ (function(modules) { // webpackBootstrap
29592965
}(this));
29602966

29612967

2962-
/***/ },
2968+
/***/ }),
29632969
/* 20 */
2964-
/***/ function(module, exports) {
2970+
/***/ (function(module, exports) {
29652971

29662972
module.exports = __WEBPACK_EXTERNAL_MODULE_20__;
29672973

2968-
/***/ },
2974+
/***/ }),
29692975
/* 21 */
2970-
/***/ function(module, exports, __webpack_require__) {
2976+
/***/ (function(module, exports, __webpack_require__) {
29712977

29722978
'use strict';
29732979

@@ -2981,9 +2987,9 @@ return /******/ (function(modules) { // webpackBootstrap
29812987
render: function() {
29822988
return DOM.div({ className: 'rdtMonths' }, [
29832989
DOM.table({ key: 'a' }, DOM.thead( {}, DOM.tr( {}, [
2984-
DOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 1, 'years' )}, '‹' )),
2990+
DOM.th({ key: 'prev', className: 'rdtPrev', onClick: this.props.subtractTime( 1, 'years' )}, DOM.span({}, '‹' )),
29852991
DOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2, 'data-value': this.props.viewDate.year() }, this.props.viewDate.year() ),
2986-
DOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 1, 'years' )}, '›' ))
2992+
DOM.th({ key: 'next', className: 'rdtNext', onClick: this.props.addTime( 1, 'years' )}, DOM.span({}, '›' ))
29872993
]))),
29882994
DOM.table({ key: 'months' }, DOM.tbody({ key: 'b' }, this.renderMonths()))
29892995
]);
@@ -3079,9 +3085,9 @@ return /******/ (function(modules) { // webpackBootstrap
30793085
module.exports = DateTimePickerMonths;
30803086

30813087

3082-
/***/ },
3088+
/***/ }),
30833089
/* 22 */
3084-
/***/ function(module, exports, __webpack_require__) {
3090+
/***/ (function(module, exports, __webpack_require__) {
30853091

30863092
'use strict';
30873093

@@ -3097,9 +3103,9 @@ return /******/ (function(modules) { // webpackBootstrap
30973103

30983104
return DOM.div({ className: 'rdtYears' }, [
30993105
DOM.table({ key: 'a' }, DOM.thead({}, DOM.tr({}, [
3100-
DOM.th({ key: 'prev', className: 'rdtPrev' }, DOM.span({ onClick: this.props.subtractTime( 10, 'years' )}, '‹' )),
3106+
DOM.th({ key: 'prev', className: 'rdtPrev', onClick: this.props.subtractTime( 10, 'years' )}, DOM.span({}, '‹' )),
31013107
DOM.th({ key: 'year', className: 'rdtSwitch', onClick: this.props.showView( 'years' ), colSpan: 2 }, year + '-' + ( year + 9 ) ),
3102-
DOM.th({ key: 'next', className: 'rdtNext' }, DOM.span({ onClick: this.props.addTime( 10, 'years' )}, '›' ))
3108+
DOM.th({ key: 'next', className: 'rdtNext', onClick: this.props.addTime( 10, 'years' )}, DOM.span({}, '›' ))
31033109
]))),
31043110
DOM.table({ key: 'years' }, DOM.tbody( {}, this.renderYears( year )))
31053111
]);
@@ -3191,9 +3197,9 @@ return /******/ (function(modules) { // webpackBootstrap
31913197
module.exports = DateTimePickerYears;
31923198

31933199

3194-
/***/ },
3200+
/***/ }),
31953201
/* 23 */
3196-
/***/ function(module, exports, __webpack_require__) {
3202+
/***/ (function(module, exports, __webpack_require__) {
31973203

31983204
'use strict';
31993205

@@ -3426,7 +3432,7 @@ return /******/ (function(modules) { // webpackBootstrap
34263432
module.exports = DateTimePickerTime;
34273433

34283434

3429-
/***/ }
3435+
/***/ })
34303436
/******/ ])
34313437
});
34323438
;

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

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.9",
3+
"version": "2.8.10",
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)