Skip to content

Commit 762e8cf

Browse files
TrySoundjquense
authored andcommitted
chore(deps): upgrade date-math (#1354)
The diff is quite nice. ```diff - "minified": 150810, + "minified": 148190, - "gzipped": 45487 + "gzipped": 44792 ```
1 parent f478be0 commit 762e8cf

21 files changed

Lines changed: 173 additions & 160 deletions

.size-snapshot.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"./dist/react-big-calendar.js": {
3-
"bundled": 554087,
4-
"minified": 170209,
5-
"gzipped": 49950
3+
"bundled": 548465,
4+
"minified": 167635,
5+
"gzipped": 49330
66
},
77
"./dist/react-big-calendar.min.js": {
8-
"bundled": 490328,
9-
"minified": 150824,
10-
"gzipped": 45415
8+
"bundled": 484706,
9+
"minified": 148190,
10+
"gzipped": 44792
1111
},
1212
"dist/react-big-calendar.esm.js": {
13-
"bundled": 169648,
14-
"minified": 81524,
15-
"gzipped": 20082,
13+
"bundled": 167242,
14+
"minified": 79833,
15+
"gzipped": 19791,
1616
"treeshaked": {
1717
"rollup": {
18-
"code": 59035,
19-
"import_statements": 1402
18+
"code": 57605,
19+
"import_statements": 1572
2020
},
2121
"webpack": {
22-
"code": 62470
22+
"code": 62052
2323
}
2424
}
2525
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"@babel/runtime": "^7.1.5",
124124
"bootstrap-sass": "^3.4.1",
125125
"classnames": "^2.2.6",
126-
"date-arithmetic": "^3.0.0",
126+
"date-arithmetic": "^4.0.0",
127127
"dom-helpers": "^3.4.0",
128128
"invariant": "^2.2.4",
129129
"lodash": "^4.17.11",

src/Agenda.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classes from 'dom-helpers/class'
44
import getWidth from 'dom-helpers/query/width'
55
import scrollbarSize from 'dom-helpers/util/scrollbarSize'
66

7-
import dates from './utils/dates'
7+
import * as dates from './utils/dates'
88
import { navigate } from './utils/constants'
99
import { inRange } from './utils/eventLevels'
1010
import { isSelected } from './utils/selection'

src/BackgroundCells.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react'
33
import { findDOMNode } from 'react-dom'
44
import cn from 'classnames'
55

6-
import dates from './utils/dates'
6+
import * as dates from './utils/dates'
77
import { notify } from './utils/helpers'
88
import { dateCellSelection, getSlotAtX, pointInBox } from './utils/selection'
99
import Selection, { getBoundsForNode, isEvent } from './Selection'

src/DateContentRow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types'
55
import React from 'react'
66
import { findDOMNode } from 'react-dom'
77

8-
import dates from './utils/dates'
8+
import * as dates from './utils/dates'
99
import BackgroundCells from './BackgroundCells'
1010
import EventRow from './EventRow'
1111
import EventEndingRow from './EventEndingRow'

src/Day.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types'
22
import React from 'react'
33

4-
import dates from './utils/dates'
4+
import * as dates from './utils/dates'
55
import { navigate } from './utils/constants'
66
import TimeGrid from './TimeGrid'
77

src/DayColumn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { findDOMNode } from 'react-dom'
44
import cn from 'classnames'
55

66
import Selection, { getBoundsForNode, isEvent } from './Selection'
7-
import dates from './utils/dates'
7+
import * as dates from './utils/dates'
88
import * as TimeSlotUtils from './utils/TimeSlots'
99
import { isSelected } from './utils/selection'
1010

src/EventCell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types'
22
import React from 'react'
33
import cn from 'classnames'
4-
import dates from './utils/dates'
4+
import * as dates from './utils/dates'
55

66
class EventCell extends React.Component {
77
render() {

src/Month.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react'
33
import { findDOMNode } from 'react-dom'
44
import cn from 'classnames'
55

6-
import dates from './utils/dates'
6+
import * as dates from './utils/dates'
77
import chunk from 'lodash/chunk'
88

99
import { navigate, views } from './utils/constants'

src/Popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react'
33
import getOffset from 'dom-helpers/query/offset'
44
import getScrollTop from 'dom-helpers/query/scrollTop'
55
import getScrollLeft from 'dom-helpers/query/scrollLeft'
6-
import dates from './utils/dates'
6+
import * as dates from './utils/dates'
77

88
import EventCell from './EventCell'
99
import { isSelected } from './utils/selection'

0 commit comments

Comments
 (0)