Skip to content

Commit

Permalink
chore(deps): upgrade date-math (jquense#1354)
Browse files Browse the repository at this point in the history
The diff is quite nice.

```diff
-    "minified": 150810,
+    "minified": 148190,
-    "gzipped": 45487
+    "gzipped": 44792
```
  • Loading branch information
TrySound authored and jquense committed Jun 10, 2019
1 parent f478be0 commit 762e8cf
Show file tree
Hide file tree
Showing 21 changed files with 173 additions and 160 deletions.
24 changes: 12 additions & 12 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"./dist/react-big-calendar.js": {
"bundled": 554087,
"minified": 170209,
"gzipped": 49950
"bundled": 548465,
"minified": 167635,
"gzipped": 49330
},
"./dist/react-big-calendar.min.js": {
"bundled": 490328,
"minified": 150824,
"gzipped": 45415
"bundled": 484706,
"minified": 148190,
"gzipped": 44792
},
"dist/react-big-calendar.esm.js": {
"bundled": 169648,
"minified": 81524,
"gzipped": 20082,
"bundled": 167242,
"minified": 79833,
"gzipped": 19791,
"treeshaked": {
"rollup": {
"code": 59035,
"import_statements": 1402
"code": 57605,
"import_statements": 1572
},
"webpack": {
"code": 62470
"code": 62052
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"@babel/runtime": "^7.1.5",
"bootstrap-sass": "^3.4.1",
"classnames": "^2.2.6",
"date-arithmetic": "^3.0.0",
"date-arithmetic": "^4.0.0",
"dom-helpers": "^3.4.0",
"invariant": "^2.2.4",
"lodash": "^4.17.11",
Expand Down
2 changes: 1 addition & 1 deletion src/Agenda.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import classes from 'dom-helpers/class'
import getWidth from 'dom-helpers/query/width'
import scrollbarSize from 'dom-helpers/util/scrollbarSize'

import dates from './utils/dates'
import * as dates from './utils/dates'
import { navigate } from './utils/constants'
import { inRange } from './utils/eventLevels'
import { isSelected } from './utils/selection'
Expand Down
2 changes: 1 addition & 1 deletion src/BackgroundCells.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import { findDOMNode } from 'react-dom'
import cn from 'classnames'

import dates from './utils/dates'
import * as dates from './utils/dates'
import { notify } from './utils/helpers'
import { dateCellSelection, getSlotAtX, pointInBox } from './utils/selection'
import Selection, { getBoundsForNode, isEvent } from './Selection'
Expand Down
2 changes: 1 addition & 1 deletion src/DateContentRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types'
import React from 'react'
import { findDOMNode } from 'react-dom'

import dates from './utils/dates'
import * as dates from './utils/dates'
import BackgroundCells from './BackgroundCells'
import EventRow from './EventRow'
import EventEndingRow from './EventEndingRow'
Expand Down
2 changes: 1 addition & 1 deletion src/Day.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'

import dates from './utils/dates'
import * as dates from './utils/dates'
import { navigate } from './utils/constants'
import TimeGrid from './TimeGrid'

Expand Down
2 changes: 1 addition & 1 deletion src/DayColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { findDOMNode } from 'react-dom'
import cn from 'classnames'

import Selection, { getBoundsForNode, isEvent } from './Selection'
import dates from './utils/dates'
import * as dates from './utils/dates'
import * as TimeSlotUtils from './utils/TimeSlots'
import { isSelected } from './utils/selection'

Expand Down
2 changes: 1 addition & 1 deletion src/EventCell.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types'
import React from 'react'
import cn from 'classnames'
import dates from './utils/dates'
import * as dates from './utils/dates'

class EventCell extends React.Component {
render() {
Expand Down
2 changes: 1 addition & 1 deletion src/Month.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import { findDOMNode } from 'react-dom'
import cn from 'classnames'

import dates from './utils/dates'
import * as dates from './utils/dates'
import chunk from 'lodash/chunk'

import { navigate, views } from './utils/constants'
Expand Down
2 changes: 1 addition & 1 deletion src/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import getOffset from 'dom-helpers/query/offset'
import getScrollTop from 'dom-helpers/query/scrollTop'
import getScrollLeft from 'dom-helpers/query/scrollLeft'
import dates from './utils/dates'
import * as dates from './utils/dates'

import EventCell from './EventCell'
import { isSelected } from './utils/selection'
Expand Down
2 changes: 1 addition & 1 deletion src/TimeGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React, { Component } from 'react'
import { findDOMNode } from 'react-dom'
import memoize from 'memoize-one'

import dates from './utils/dates'
import * as dates from './utils/dates'
import DayColumn from './DayColumn'
import TimeGutter from './TimeGutter'

Expand Down
2 changes: 1 addition & 1 deletion src/TimeGridHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import cn from 'classnames'
import scrollbarSize from 'dom-helpers/util/scrollbarSize'
import React from 'react'

import dates from './utils/dates'
import * as dates from './utils/dates'
import DateContentRow from './DateContentRow'
import Header from './Header'
import ResourceHeader from './ResourceHeader'
Expand Down
2 changes: 1 addition & 1 deletion src/Week.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types'
import React from 'react'
import dates from './utils/dates'
import * as dates from './utils/dates'
import { navigate } from './utils/constants'
import TimeGrid from './TimeGrid'

Expand Down
2 changes: 1 addition & 1 deletion src/localizers/globalize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dates from '../utils/dates'
import * as dates from '../utils/dates'
import oldGlobalize from './oldGlobalize'
import { DateLocalizer } from '../localizer'
import warning from 'warning'
Expand Down
2 changes: 1 addition & 1 deletion src/localizers/moment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dates from '../utils/dates'
import * as dates from '../utils/dates'
import { DateLocalizer } from '../localizer'

let dateRangeFormat = ({ start, end }, culture, local) =>
Expand Down
2 changes: 1 addition & 1 deletion src/localizers/oldGlobalize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dates from '../utils/dates'
import * as dates from '../utils/dates'
import { DateLocalizer } from '../localizer'

let dateRangeFormat = ({ start, end }, culture, local) =>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/DateSlotMetrics.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import memoize from 'memoize-one'
import dates from './dates'
import * as dates from './dates'
import { eventSegments, endOfRange, eventLevels } from './eventLevels'

let isSegmentInSlot = (seg, slot) => seg.left <= slot && seg.right >= slot
Expand Down
2 changes: 1 addition & 1 deletion src/utils/TimeSlots.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dates from './dates'
import * as dates from './dates'

const getDstOffset = (start, end) =>
start.getTimezoneOffset() - end.getTimezoneOffset()
Expand Down
Loading

0 comments on commit 762e8cf

Please sign in to comment.