Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit f5c3bdb

Browse files
authored
Dependency major version upgrades (facebook#8950)
1 parent a0b3753 commit f5c3bdb

36 files changed

+1493
-1578
lines changed

.prettierrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"arrowParens": "avoid",
23
"trailingComma": "es5",
34
"singleQuote": true,
45
"semi": true

docusaurus/docs/adding-css-reset.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To start using it, add `@import-normalize;` anywhere in your CSS file(s). You on
1616
/* rest of app styles */
1717
```
1818

19-
> **Tip**: If you see an "_Unknown at rule @import-normalize css(unknownAtRules)_" warning in VSCode, change the `css.lint.unknownAtRules` setting to `ignore`.
19+
> **Tip**: If you see an "_Unknown at rule @import-normalize css(unknownAtRules)_" warning in VSCode, change the `css.lint.unknownAtRules` setting to `ignore`.
2020
2121
You can control which parts of [normalize.css] to use via your project's [browserslist].
2222

package.json

+10-17
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,31 @@
2626
"alex": "^8.0.0",
2727
"eslint": "^6.1.0",
2828
"execa": "1.0.0",
29-
"fs-extra": "^7.0.1",
30-
"get-port": "^4.2.0",
31-
"globby": "^9.1.0",
32-
"husky": "^1.3.1",
29+
"fs-extra": "^9.0.0",
30+
"get-port": "^5.1.1",
31+
"globby": "^11.0.0",
32+
"husky": "^4.2.5",
3333
"jest": "25.5.4",
3434
"lerna": "3.20.2",
3535
"lerna-changelog": "~0.8.2",
36-
"lint-staged": "^8.0.4",
37-
"meow": "^5.0.0",
38-
"multimatch": "^3.0.0",
39-
"prettier": "1.19.1",
36+
"lint-staged": "^10.2.2",
37+
"meow": "^6.1.1",
38+
"multimatch": "^4.0.0",
39+
"prettier": "2.0.5",
4040
"puppeteer": "^3.0.2",
41-
"strip-ansi": "^5.1.0",
41+
"strip-ansi": "^6.0.0",
4242
"svg-term-cli": "^2.1.1",
4343
"tempy": "^0.2.1",
4444
"wait-for-localhost": "^3.1.0"
4545
},
46-
"resolutions": {
47-
"mkdirp": "0.5.1"
48-
},
4946
"husky": {
5047
"hooks": {
5148
"pre-commit": "lint-staged"
5249
}
5350
},
5451
"lint-staged": {
5552
"*.{js,md,css,html}": [
56-
"prettier --trailing-comma es5 --single-quote --write",
57-
"git add"
58-
],
59-
"yarn.lock": [
60-
"git rm --cached"
53+
"prettier --trailing-comma es5 --single-quote --write"
6154
]
6255
}
6356
}

packages/babel-plugin-named-asset-import/index.js

+2-12
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@ function namedAssetImportPlugin({ types: t }) {
3535

3636
return {
3737
visitor: {
38-
ExportNamedDeclaration(
39-
path,
40-
{
41-
opts: { loaderMap },
42-
}
43-
) {
38+
ExportNamedDeclaration(path, { opts: { loaderMap } }) {
4439
if (!path.node.source) {
4540
return;
4641
}
@@ -67,12 +62,7 @@ function namedAssetImportPlugin({ types: t }) {
6762
);
6863
});
6964
},
70-
ImportDeclaration(
71-
path,
72-
{
73-
opts: { loaderMap },
74-
}
75-
) {
65+
ImportDeclaration(path, { opts: { loaderMap } }) {
7666
replaceMatchingSpecifiers(path, loaderMap, (specifier, sourcePath) => {
7767
if (t.isImportDefaultSpecifier(specifier)) {
7868
return t.importDeclaration(

packages/babel-preset-react-app/create.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const validateBoolOption = (name, value, defaultValue) => {
2020
return value;
2121
};
2222

23-
module.exports = function(api, opts, env) {
23+
module.exports = function (api, opts, env) {
2424
if (!opts) {
2525
opts = {};
2626
}

packages/babel-preset-react-app/dependencies.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const validateBoolOption = (name, value, defaultValue) => {
2020
return value;
2121
};
2222

23-
module.exports = function(api, opts) {
23+
module.exports = function (api, opts) {
2424
if (!opts) {
2525
opts = {};
2626
}

packages/babel-preset-react-app/dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
const create = require('./create');
1010

11-
module.exports = function(api, opts) {
11+
module.exports = function (api, opts) {
1212
return create(api, Object.assign({ helpers: false }, opts), 'development');
1313
};

packages/babel-preset-react-app/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
const create = require('./create');
1010

11-
module.exports = function(api, opts) {
11+
module.exports = function (api, opts) {
1212
// This is similar to how `env` works in Babel:
1313
// https://babeljs.io/docs/usage/babelrc/#env-option
1414
// We are not using `env` because it’s ignored in versions > [email protected]:

packages/babel-preset-react-app/prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
const create = require('./create');
1010

11-
module.exports = function(api, opts) {
11+
module.exports = function (api, opts) {
1212
return create(api, Object.assign({ helpers: false }, opts), 'production');
1313
};

packages/babel-preset-react-app/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
const create = require('./create');
1010

11-
module.exports = function(api, opts) {
11+
module.exports = function (api, opts) {
1212
return create(api, Object.assign({ helpers: false }, opts), 'test');
1313
};

packages/babel-preset-react-app/webpack-overrides.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const crypto = require('crypto');
1010

1111
const macroCheck = new RegExp('[./]macro');
1212

13-
module.exports = function() {
13+
module.exports = function () {
1414
return {
1515
// This function transforms the Babel configuration on a per-file basis
1616
config(config, { source }) {

packages/create-react-app/createReactApp.js

+5-12
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,8 @@ function createApp(
305305
let yarnUsesDefaultRegistry = true;
306306
try {
307307
yarnUsesDefaultRegistry =
308-
execSync('yarnpkg config get registry')
309-
.toString()
310-
.trim() === 'https://registry.yarnpkg.com';
308+
execSync('yarnpkg config get registry').toString().trim() ===
309+
'https://registry.yarnpkg.com';
311310
} catch (e) {
312311
// ignore
313312
}
@@ -769,9 +768,7 @@ function checkNpmVersion() {
769768
let hasMinNpm = false;
770769
let npmVersion = null;
771770
try {
772-
npmVersion = execSync('npm --version')
773-
.toString()
774-
.trim();
771+
npmVersion = execSync('npm --version').toString().trim();
775772
hasMinNpm = semver.gte(npmVersion, '6.0.0');
776773
} catch (err) {
777774
// ignore
@@ -789,9 +786,7 @@ function checkYarnVersion() {
789786
let hasMaxYarnPnp = false;
790787
let yarnVersion = null;
791788
try {
792-
yarnVersion = execSync('yarnpkg --version')
793-
.toString()
794-
.trim();
789+
yarnVersion = execSync('yarnpkg --version').toString().trim();
795790
if (semver.valid(yarnVersion)) {
796791
hasMinYarnPnp = semver.gte(yarnVersion, minYarnPnp);
797792
hasMaxYarnPnp = semver.lt(yarnVersion, maxYarnPnp);
@@ -1010,9 +1005,7 @@ function getProxy() {
10101005
} else {
10111006
try {
10121007
// Trying to read https-proxy from .npmrc
1013-
let httpsProxy = execSync('npm config get https-proxy')
1014-
.toString()
1015-
.trim();
1008+
let httpsProxy = execSync('npm config get https-proxy').toString().trim();
10161009
return httpsProxy !== 'null' ? httpsProxy : undefined;
10171010
} catch (e) {
10181011
return;

packages/create-react-app/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
"create-react-app": "./index.js"
2727
},
2828
"dependencies": {
29-
"chalk": "3.0.0",
29+
"chalk": "4.0.0",
3030
"commander": "4.1.0",
3131
"cross-spawn": "7.0.2",
3232
"envinfo": "7.5.1",
33-
"fs-extra": "8.1.0",
33+
"fs-extra": "9.0.0",
3434
"hyperquest": "2.1.3",
3535
"inquirer": "7.1.0",
36-
"semver": "6.3.0",
36+
"semver": "7.3.2",
3737
"tar-pack": "3.4.1",
38-
"tmp": "0.1.0",
38+
"tmp": "0.2.1",
3939
"validate-npm-package-name": "3.0.0"
4040
}
4141
}

0 commit comments

Comments
 (0)