diff --git a/docs/package.json b/docs/package.json index 2bcb517afb9127..8ea3c80769ff19 100644 --- a/docs/package.json +++ b/docs/package.json @@ -63,6 +63,7 @@ "clsx": "^1.0.2", "core-js": "^2.6.11", "cross-env": "^7.0.0", + "cross-fetch": "^3.0.4", "css-loader": "^3.1.0", "css-mediaquery": "^0.1.2", "date-fns": "2.9.0", @@ -73,7 +74,6 @@ "final-form": "^4.18.5", "flexsearch": "^0.6.30", "fs-extra": "^8.1.0", - "isomorphic-fetch": "^2.2.1", "json2mq": "^0.2.0", "jss": "^10.0.3", "jss-plugin-template": "^10.0.3", diff --git a/docs/scripts/updateIconSynonyms.js b/docs/scripts/updateIconSynonyms.js index 313d6ae173e878..0e18b6f6870faa 100644 --- a/docs/scripts/updateIconSynonyms.js +++ b/docs/scripts/updateIconSynonyms.js @@ -1,5 +1,5 @@ /* eslint-disable no-console */ -import 'isomorphic-fetch'; +import 'cross-fetch'; import fse from 'fs-extra'; import path from 'path'; import synonyms from 'docs/src/pages/components/material-icons/synonyms'; diff --git a/docs/src/modules/components/Notifications.js b/docs/src/modules/components/Notifications.js index b5bb4439e406e1..a53ef711c0bfb3 100644 --- a/docs/src/modules/components/Notifications.js +++ b/docs/src/modules/components/Notifications.js @@ -1,5 +1,5 @@ /* eslint-disable react/no-danger, react-hooks/exhaustive-deps */ -import 'isomorphic-fetch'; +import 'cross-fetch'; import React from 'react'; import { useSelector } from 'react-redux'; import Button from '@material-ui/core/Button'; diff --git a/docs/src/pages/components/autocomplete/Asynchronous.js b/docs/src/pages/components/autocomplete/Asynchronous.js index 3054441053b7d3..428416a5dc5f90 100644 --- a/docs/src/pages/components/autocomplete/Asynchronous.js +++ b/docs/src/pages/components/autocomplete/Asynchronous.js @@ -1,5 +1,5 @@ // *https://www.registers.service.gov.uk/registers/country/use-the-api* -import 'isomorphic-fetch'; +import 'cross-fetch'; import React from 'react'; import TextField from '@material-ui/core/TextField'; import Autocomplete from '@material-ui/lab/Autocomplete'; diff --git a/docs/src/pages/components/autocomplete/Asynchronous.tsx b/docs/src/pages/components/autocomplete/Asynchronous.tsx index fb9c2d4b5a848c..7f574c904e8497 100644 --- a/docs/src/pages/components/autocomplete/Asynchronous.tsx +++ b/docs/src/pages/components/autocomplete/Asynchronous.tsx @@ -1,5 +1,5 @@ // *https://www.registers.service.gov.uk/registers/country/use-the-api* -import 'isomorphic-fetch'; +import 'cross-fetch'; import React from 'react'; import TextField from '@material-ui/core/TextField'; import Autocomplete from '@material-ui/lab/Autocomplete'; diff --git a/packages/material-ui-icons/scripts/download.js b/packages/material-ui-icons/scripts/download.js index 9c2eb65dd60349..5d1ab06aea777e 100644 --- a/packages/material-ui-icons/scripts/download.js +++ b/packages/material-ui-icons/scripts/download.js @@ -1,5 +1,5 @@ /* eslint-disable no-console */ -import 'isomorphic-fetch'; +import 'cross-fetch'; import fse from 'fs-extra'; import path from 'path'; import yargs from 'yargs'; diff --git a/yarn.lock b/yarn.lock index 41621508f794b0..e4d0a09a0cf03e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5040,6 +5040,14 @@ cross-env@^7.0.0: dependencies: cross-spawn "^7.0.1" +cross-fetch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.0.4.tgz#7bef7020207e684a7638ef5f2f698e24d9eb283c" + integrity sha512-MSHgpjQqgbT/94D4CyADeNoYh52zMkCX4pcJvPP5WqPsLFMKjr2TCMg381ox5qI0ii2dPwaLx/00477knXqXVw== + dependencies: + node-fetch "2.6.0" + whatwg-fetch "3.0.0" + cross-spawn-async@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/cross-spawn-async/-/cross-spawn-async-1.0.1.tgz#bb525c1e420d9942552e04791a3eb2d9887a105f" @@ -8690,7 +8698,7 @@ isobject@^4.0.0: resolved "https://registry.yarnpkg.com/isobject/-/isobject-4.0.0.tgz#3f1c9155e73b192022a80819bacd0343711697b0" integrity sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA== -isomorphic-fetch@^2.1.1, isomorphic-fetch@^2.2.1: +isomorphic-fetch@^2.1.1: version "2.2.1" resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" integrity sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk= @@ -10568,7 +10576,7 @@ node-fetch@2.3.0: resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.3.0.tgz#1a1d940bbfb916a1d3e0219f037e89e71f8c5fa5" integrity sha512-MOd8pV3fxENbryESLgVIeaGKrdl+uaYhCSSVkjeOb/31/njTpcis5aWfdqgNlHIrKOLRbMnfPINPOML2CIFeXA== -"node-fetch@^ 2.6.0", node-fetch@^2.3.0, node-fetch@^2.5.0, node-fetch@^2.6.0: +node-fetch@2.6.0, "node-fetch@^ 2.6.0", node-fetch@^2.3.0, node-fetch@^2.5.0, node-fetch@^2.6.0: version "2.6.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd" integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA== @@ -15458,7 +15466,7 @@ whatwg-encoding@^1.0.5: dependencies: iconv-lite "0.4.24" -whatwg-fetch@>=0.10.0: +whatwg-fetch@3.0.0, whatwg-fetch@>=0.10.0: version "3.0.0" resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz#fc804e458cc460009b1a2b966bc8817d2578aefb" integrity sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q==