diff --git a/docs/src/modules/utils/helpers.js b/docs/src/modules/utils/helpers.js index 3090d9dc245253..b461d7bca8d014 100644 --- a/docs/src/modules/utils/helpers.js +++ b/docs/src/modules/utils/helpers.js @@ -104,9 +104,8 @@ function getDependencies(raw, options = {}) { '@material-ui/styles': 'latest', '@material-ui/system': 'latest', '@material-ui/utils': 'latest', - 'date-fns': 'next', - jss: 'next', - 'jss-plugin-template': 'next', + // TODO: remove once @material-ui/pickers v4 is released. + '@date-io/date-fns': 'v1', }; const re = /^import\s'([^']+)'|import\s[\s\S]*?\sfrom\s+'([^']+)/gm; diff --git a/docs/src/modules/utils/helpers.test.js b/docs/src/modules/utils/helpers.test.js index 45c33069c89e38..8fbd221a931c0b 100644 --- a/docs/src/modules/utils/helpers.test.js +++ b/docs/src/modules/utils/helpers.test.js @@ -78,8 +78,8 @@ import { MuiPickersUtilsProvider, TimePicker, DatePicker } from '@material-ui/pi `; assert.deepEqual(getDependencies(source), { - 'date-fns': 'next', - '@date-io/date-fns': 'latest', + 'date-fns': 'latest', + '@date-io/date-fns': 'v1', '@material-ui/pickers': 'latest', '@material-ui/core': 'latest', 'prop-types': 'latest', @@ -115,7 +115,7 @@ import { `; assert.deepEqual(getDependencies(source), { - 'date-fns': 'next', + 'date-fns': 'latest', '@material-ui/pickers': 'latest', react: 'latest', 'react-dom': 'latest',