diff --git a/package.json b/package.json index 51f97bf57..519810275 100644 --- a/package.json +++ b/package.json @@ -173,7 +173,7 @@ "dom-helpers": "^2.4.0 || ^3.0.0", "loose-envify": "^1.3.0", "prop-types": "^15.6.0", - "react-lifecycles-compat": "^1.0.2" + "react-lifecycles-compat": "^3.0.4" }, "peerDependencies": { "react": "^15.3.0 || ^16.0.0-alpha", diff --git a/source/ArrowKeyStepper/ArrowKeyStepper.js b/source/ArrowKeyStepper/ArrowKeyStepper.js index 5efe46cdc..f3f60a4fa 100644 --- a/source/ArrowKeyStepper/ArrowKeyStepper.js +++ b/source/ArrowKeyStepper/ArrowKeyStepper.js @@ -4,7 +4,7 @@ import type {RenderedSection} from '../Grid'; import type {ScrollIndices} from './types'; import * as React from 'react'; -import polyfill from 'react-lifecycles-compat'; +import {polyfill} from 'react-lifecycles-compat'; /** * This HOC decorates a virtualized component and responds to arrow-key events by scrolling one row or column at a time. diff --git a/source/Collection/CollectionView.js b/source/Collection/CollectionView.js index 78b1b681c..c004b9ca1 100644 --- a/source/Collection/CollectionView.js +++ b/source/Collection/CollectionView.js @@ -2,7 +2,7 @@ import cn from 'classnames'; import PropTypes from 'prop-types'; import * as React from 'react'; -import polyfill from 'react-lifecycles-compat'; +import {polyfill} from 'react-lifecycles-compat'; import createCallbackMemoizer from '../utils/createCallbackMemoizer'; import getScrollbarSize from 'dom-helpers/util/scrollbarSize'; diff --git a/source/Grid/Grid.js b/source/Grid/Grid.js index f1a17ea5e..c5524131d 100644 --- a/source/Grid/Grid.js +++ b/source/Grid/Grid.js @@ -29,7 +29,7 @@ import defaultOverscanIndicesGetter, { import updateScrollIndexHelper from './utils/updateScrollIndexHelper'; import defaultCellRangeRenderer from './defaultCellRangeRenderer'; import scrollbarSize from 'dom-helpers/util/scrollbarSize'; -import polyfill from 'react-lifecycles-compat'; +import {polyfill} from 'react-lifecycles-compat'; import { requestAnimationTimeout, cancelAnimationTimeout, diff --git a/source/Masonry/Masonry.js b/source/Masonry/Masonry.js index c857c1695..1b02c6ac5 100644 --- a/source/Masonry/Masonry.js +++ b/source/Masonry/Masonry.js @@ -1,7 +1,7 @@ /** @flow */ import cn from 'classnames'; import * as React from 'react'; -import polyfill from 'react-lifecycles-compat'; +import {polyfill} from 'react-lifecycles-compat'; import PositionCache from './PositionCache'; import { requestAnimationTimeout, diff --git a/source/MultiGrid/MultiGrid.js b/source/MultiGrid/MultiGrid.js index dbc50e45e..4a1eb8e99 100644 --- a/source/MultiGrid/MultiGrid.js +++ b/source/MultiGrid/MultiGrid.js @@ -1,7 +1,7 @@ /** @flow */ import PropTypes from 'prop-types'; import * as React from 'react'; -import polyfill from 'react-lifecycles-compat'; +import {polyfill} from 'react-lifecycles-compat'; import CellMeasurerCacheDecorator from './CellMeasurerCacheDecorator'; import Grid from '../Grid'; diff --git a/yarn.lock b/yarn.lock index 647d21ba3..d27103878 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6485,9 +6485,9 @@ react-dom@^16.2.0: object-assign "^4.1.1" prop-types "^15.6.0" -react-lifecycles-compat@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-1.0.2.tgz#551d8b1d156346e5fcf30ffac9b32ce3f78b8850" +react-lifecycles-compat@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362" react-router-dom@^4.1.1: version "4.1.1"