mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 10:17:55 +02:00
chore(v2): upgrade dependencies (#1865)
* chore(v2): upgrade dependencies * nits
This commit is contained in:
parent
abdc647b07
commit
1844c2bdd6
9 changed files with 1042 additions and 789 deletions
|
@ -12,6 +12,7 @@
|
||||||
- Modified TerserWebpackPlugin `terserOptions` for better cross-browser compatibility.
|
- Modified TerserWebpackPlugin `terserOptions` for better cross-browser compatibility.
|
||||||
- **BREAKING** `withBaseUrl` is renamed to `useBaseUrl` because its a React Hooks. Make sure you import/rename it correctly. Eg: `import useBaseUrl from '@docusaurus/useBaseUrl`;
|
- **BREAKING** `withBaseUrl` is renamed to `useBaseUrl` because its a React Hooks. Make sure you import/rename it correctly. Eg: `import useBaseUrl from '@docusaurus/useBaseUrl`;
|
||||||
- Fix potential security vulnerability because we're exposing the directory structure of the host machine.
|
- Fix potential security vulnerability because we're exposing the directory structure of the host machine.
|
||||||
|
- Upgrade dependencies.
|
||||||
|
|
||||||
## 2.0.0-alpha.27
|
## 2.0.0-alpha.27
|
||||||
|
|
||||||
|
|
10
package.json
10
package.json
|
@ -22,15 +22,15 @@
|
||||||
"tsc": "lerna run tsc --no-private"
|
"tsc": "lerna run tsc --no-private"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.6.2",
|
"@babel/core": "^7.6.4",
|
||||||
"@babel/preset-typescript": "^7.3.3",
|
"@babel/preset-typescript": "^7.6.0",
|
||||||
"@types/cross-spawn": "^6.0.1",
|
"@types/cross-spawn": "^6.0.1",
|
||||||
"@types/express": "^4.17.0",
|
"@types/express": "^4.17.1",
|
||||||
"@types/fs-extra": "8.0.0",
|
"@types/fs-extra": "8.0.0",
|
||||||
"@types/inquirer": "^6.0.3",
|
"@types/inquirer": "^6.0.3",
|
||||||
"@types/jest": "^24.0.15",
|
"@types/jest": "^24.0.15",
|
||||||
"@types/loader-utils": "^1.1.3",
|
"@types/loader-utils": "^1.1.3",
|
||||||
"@types/lodash": "^4.14.136",
|
"@types/lodash": "^4.14.144",
|
||||||
"@types/lodash.kebabcase": "^4.1.6",
|
"@types/lodash.kebabcase": "^4.1.6",
|
||||||
"@types/node": "^12.0.2",
|
"@types/node": "^12.0.2",
|
||||||
"@types/react": "^16.8.18",
|
"@types/react": "^16.8.18",
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
"glob-promise": "^3.3.0",
|
"glob-promise": "^3.3.0",
|
||||||
"husky": "^1.3.1",
|
"husky": "^1.3.1",
|
||||||
"jest": "^24.9.0",
|
"jest": "^24.9.0",
|
||||||
"lerna": "^3.14.1",
|
"lerna": "^3.18.1",
|
||||||
"lint-staged": "^7.2.0",
|
"lint-staged": "^7.2.0",
|
||||||
"prettier": "^1.18.2",
|
"prettier": "^1.18.2",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
|
|
|
@ -26,15 +26,15 @@
|
||||||
"docusaurus-rename-version": "./lib/rename-version.js"
|
"docusaurus-rename-version": "./lib/rename-version.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.6.2",
|
"@babel/core": "^7.6.4",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
||||||
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
|
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
|
||||||
"@babel/polyfill": "^7.4.4",
|
"@babel/polyfill": "^7.6.0",
|
||||||
"@babel/preset-env": "^7.6.2",
|
"@babel/preset-env": "^7.6.3",
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.6.3",
|
||||||
"@babel/register": "^7.6.2",
|
"@babel/register": "^7.6.2",
|
||||||
"@babel/traverse": "^7.6.2",
|
"@babel/traverse": "^7.6.3",
|
||||||
"@babel/types": "^7.6.1",
|
"@babel/types": "^7.6.3",
|
||||||
"autoprefixer": "^9.6.1",
|
"autoprefixer": "^9.6.1",
|
||||||
"babylon": "^6.18.0",
|
"babylon": "^6.18.0",
|
||||||
"chalk": "^2.4.2",
|
"chalk": "^2.4.2",
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/parser": "^7.6.2",
|
"@babel/parser": "^7.6.4",
|
||||||
"@babel/traverse": "^7.6.2",
|
"@babel/traverse": "^7.6.3",
|
||||||
"@mdx-js/mdx": "^1.5.0",
|
"@mdx-js/mdx": "^1.5.1",
|
||||||
"@mdx-js/react": "^1.5.0",
|
"@mdx-js/react": "^1.5.1",
|
||||||
"github-slugger": "^1.2.1",
|
"github-slugger": "^1.2.1",
|
||||||
"gray-matter": "^4.0.2",
|
"gray-matter": "^4.0.2",
|
||||||
"loader-utils": "^1.2.3",
|
"loader-utils": "^1.2.3",
|
||||||
|
|
|
@ -8,13 +8,13 @@
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mdx-js/mdx": "^1.5.0",
|
"@mdx-js/mdx": "^1.5.1",
|
||||||
"@mdx-js/react": "^1.5.0",
|
"@mdx-js/react": "^1.5.1",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"clipboard": "^2.0.4",
|
"clipboard": "^2.0.4",
|
||||||
"infima": "0.2.0-alpha.2",
|
"infima": "0.2.0-alpha.2",
|
||||||
"prism-react-renderer": "^1.0.1",
|
"prism-react-renderer": "^1.0.2",
|
||||||
"react-toggle": "^4.0.2"
|
"react-toggle": "^4.1.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@docusaurus/core": "^2.0.0",
|
"@docusaurus/core": "^2.0.0",
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
"@philpl/buble": "^0.19.7",
|
"@philpl/buble": "^0.19.7",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"clipboard": "^2.0.4",
|
"clipboard": "^2.0.4",
|
||||||
"prism-react-renderer": "^1.0.1",
|
"prism-react-renderer": "^1.0.2",
|
||||||
"react-live": "^2.1.2"
|
"react-live": "^2.2.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@docusaurus/core": "^2.0.0",
|
"@docusaurus/core": "^2.0.0",
|
||||||
|
|
|
@ -32,20 +32,20 @@
|
||||||
"@docusaurus/types": "^2.0.0-alpha.27"
|
"@docusaurus/types": "^2.0.0-alpha.27"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.6.2",
|
"@babel/core": "^7.6.4",
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
||||||
"@babel/preset-env": "^7.6.2",
|
"@babel/preset-env": "^7.6.3",
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.6.3",
|
||||||
"@docusaurus/utils": "^2.0.0-alpha.27",
|
"@docusaurus/utils": "^2.0.0-alpha.27",
|
||||||
"babel-loader": "^8.0.6",
|
"babel-loader": "^8.0.6",
|
||||||
"babel-plugin-dynamic-import-node": "^2.3.0",
|
"babel-plugin-dynamic-import-node": "^2.3.0",
|
||||||
"cache-loader": "^4.1.0",
|
"cache-loader": "^4.1.0",
|
||||||
"chalk": "^2.4.2",
|
"chalk": "^2.4.2",
|
||||||
"chokidar": "^3.0.2",
|
"chokidar": "^3.2.2",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"commander": "^2.20.0",
|
"commander": "^2.20.0",
|
||||||
"copy-webpack-plugin": "^5.0.4",
|
"copy-webpack-plugin": "^5.0.4",
|
||||||
"css-loader": "^3.1.0",
|
"css-loader": "^3.2.0",
|
||||||
"del": "^4.1.1",
|
"del": "^4.1.1",
|
||||||
"ejs": "^2.6.2",
|
"ejs": "^2.6.2",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"null-loader": "^3.0.0",
|
"null-loader": "^3.0.0",
|
||||||
"optimize-css-assets-webpack-plugin": "^5.0.3",
|
"optimize-css-assets-webpack-plugin": "^5.0.3",
|
||||||
"portfinder": "^1.0.24",
|
"portfinder": "^1.0.25",
|
||||||
"postcss-loader": "^3.0.0",
|
"postcss-loader": "^3.0.0",
|
||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^6.7.0",
|
||||||
"react-dev-utils": "^9.1.0",
|
"react-dev-utils": "^9.1.0",
|
||||||
|
@ -75,8 +75,8 @@
|
||||||
"style-loader": "^1.0.0",
|
"style-loader": "^1.0.0",
|
||||||
"terser-webpack-plugin": "^2.1.3",
|
"terser-webpack-plugin": "^2.1.3",
|
||||||
"wait-file": "^1.0.5",
|
"wait-file": "^1.0.5",
|
||||||
"webpack": "^4.41.1",
|
"webpack": "^4.41.2",
|
||||||
"webpack-bundle-analyzer": "^3.5.2",
|
"webpack-bundle-analyzer": "^3.6.0",
|
||||||
"webpack-dev-server": "^3.8.2",
|
"webpack-dev-server": "^3.8.2",
|
||||||
"webpack-merge": "^4.2.2",
|
"webpack-merge": "^4.2.2",
|
||||||
"webpack-nicelog": "^2.3.1"
|
"webpack-nicelog": "^2.3.1"
|
||||||
|
|
|
@ -29,13 +29,13 @@ function compile(config: Configuration[]): Promise<any> {
|
||||||
reject(err);
|
reject(err);
|
||||||
}
|
}
|
||||||
if (stats.hasErrors()) {
|
if (stats.hasErrors()) {
|
||||||
stats.toJson().errors.forEach(e => {
|
stats.toJson('errors-only').errors.forEach(e => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
});
|
});
|
||||||
reject(new Error('Failed to compile with errors.'));
|
reject(new Error('Failed to compile with errors.'));
|
||||||
}
|
}
|
||||||
if (stats.hasWarnings()) {
|
if (stats.hasWarnings()) {
|
||||||
stats.toJson().warnings.forEach(warning => {
|
stats.toJson('errors-warnings').warnings.forEach(warning => {
|
||||||
console.warn(warning);
|
console.warn(warning);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue