From c844610b8d48fef5d4f6b3b2224cecf0dea2c25f Mon Sep 17 00:00:00 2001 From: Neto Chaves Date: Sun, 1 Mar 2020 18:36:07 -0300 Subject: [PATCH 1/2] fix: bump date-fns --- docs/src/modules/utils/helpers.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/src/modules/utils/helpers.js b/docs/src/modules/utils/helpers.js index 3090d9dc245253..30d3b17f46b04e 100644 --- a/docs/src/modules/utils/helpers.js +++ b/docs/src/modules/utils/helpers.js @@ -104,9 +104,7 @@ 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', + '@date-io/date-fns': 'v1', }; const re = /^import\s'([^']+)'|import\s[\s\S]*?\sfrom\s+'([^']+)/gm; From c835f9b1eafdac83a989e0b3056af2c10e614b07 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 4 Mar 2020 10:11:24 +0100 Subject: [PATCH 2/2] update test and add comment --- docs/src/modules/utils/helpers.js | 1 + docs/src/modules/utils/helpers.test.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/src/modules/utils/helpers.js b/docs/src/modules/utils/helpers.js index 30d3b17f46b04e..b461d7bca8d014 100644 --- a/docs/src/modules/utils/helpers.js +++ b/docs/src/modules/utils/helpers.js @@ -104,6 +104,7 @@ function getDependencies(raw, options = {}) { '@material-ui/styles': 'latest', '@material-ui/system': 'latest', '@material-ui/utils': 'latest', + // TODO: remove once @material-ui/pickers v4 is released. '@date-io/date-fns': 'v1', }; 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',