chore(v2): upgrade dependencies (#1865)

* chore(v2): upgrade dependencies

* nits
This commit is contained in:
Endi 2019-10-21 12:25:30 +07:00 committed by GitHub
parent abdc647b07
commit 1844c2bdd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 1042 additions and 789 deletions

View file

@ -12,6 +12,7 @@
- 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`;
- Fix potential security vulnerability because we're exposing the directory structure of the host machine.
- Upgrade dependencies.
## 2.0.0-alpha.27

View file

@ -22,15 +22,15 @@
"tsc": "lerna run tsc --no-private"
},
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/preset-typescript": "^7.3.3",
"@babel/core": "^7.6.4",
"@babel/preset-typescript": "^7.6.0",
"@types/cross-spawn": "^6.0.1",
"@types/express": "^4.17.0",
"@types/express": "^4.17.1",
"@types/fs-extra": "8.0.0",
"@types/inquirer": "^6.0.3",
"@types/jest": "^24.0.15",
"@types/loader-utils": "^1.1.3",
"@types/lodash": "^4.14.136",
"@types/lodash": "^4.14.144",
"@types/lodash.kebabcase": "^4.1.6",
"@types/node": "^12.0.2",
"@types/react": "^16.8.18",
@ -56,7 +56,7 @@
"glob-promise": "^3.3.0",
"husky": "^1.3.1",
"jest": "^24.9.0",
"lerna": "^3.14.1",
"lerna": "^3.18.1",
"lint-staged": "^7.2.0",
"prettier": "^1.18.2",
"react": "^16.8.4",

View file

@ -26,15 +26,15 @@
"docusaurus-rename-version": "./lib/rename-version.js"
},
"dependencies": {
"@babel/core": "^7.6.2",
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.6.2",
"@babel/preset-react": "^7.0.0",
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.6.3",
"@babel/preset-react": "^7.6.3",
"@babel/register": "^7.6.2",
"@babel/traverse": "^7.6.2",
"@babel/types": "^7.6.1",
"@babel/traverse": "^7.6.3",
"@babel/types": "^7.6.3",
"autoprefixer": "^9.6.1",
"babylon": "^6.18.0",
"chalk": "^2.4.2",

View file

@ -8,10 +8,10 @@
},
"license": "MIT",
"dependencies": {
"@babel/parser": "^7.6.2",
"@babel/traverse": "^7.6.2",
"@mdx-js/mdx": "^1.5.0",
"@mdx-js/react": "^1.5.0",
"@babel/parser": "^7.6.4",
"@babel/traverse": "^7.6.3",
"@mdx-js/mdx": "^1.5.1",
"@mdx-js/react": "^1.5.1",
"github-slugger": "^1.2.1",
"gray-matter": "^4.0.2",
"loader-utils": "^1.2.3",

View file

@ -8,13 +8,13 @@
},
"license": "MIT",
"dependencies": {
"@mdx-js/mdx": "^1.5.0",
"@mdx-js/react": "^1.5.0",
"@mdx-js/mdx": "^1.5.1",
"@mdx-js/react": "^1.5.1",
"classnames": "^2.2.6",
"clipboard": "^2.0.4",
"infima": "0.2.0-alpha.2",
"prism-react-renderer": "^1.0.1",
"react-toggle": "^4.0.2"
"prism-react-renderer": "^1.0.2",
"react-toggle": "^4.1.1"
},
"peerDependencies": {
"@docusaurus/core": "^2.0.0",

View file

@ -11,8 +11,8 @@
"@philpl/buble": "^0.19.7",
"classnames": "^2.2.6",
"clipboard": "^2.0.4",
"prism-react-renderer": "^1.0.1",
"react-live": "^2.1.2"
"prism-react-renderer": "^1.0.2",
"react-live": "^2.2.1"
},
"peerDependencies": {
"@docusaurus/core": "^2.0.0",

View file

@ -32,20 +32,20 @@
"@docusaurus/types": "^2.0.0-alpha.27"
},
"dependencies": {
"@babel/core": "^7.6.2",
"@babel/core": "^7.6.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.6.2",
"@babel/preset-react": "^7.0.0",
"@babel/preset-env": "^7.6.3",
"@babel/preset-react": "^7.6.3",
"@docusaurus/utils": "^2.0.0-alpha.27",
"babel-loader": "^8.0.6",
"babel-plugin-dynamic-import-node": "^2.3.0",
"cache-loader": "^4.1.0",
"chalk": "^2.4.2",
"chokidar": "^3.0.2",
"chokidar": "^3.2.2",
"classnames": "^2.2.6",
"commander": "^2.20.0",
"copy-webpack-plugin": "^5.0.4",
"css-loader": "^3.1.0",
"css-loader": "^3.2.0",
"del": "^4.1.1",
"ejs": "^2.6.2",
"express": "^4.17.1",
@ -58,7 +58,7 @@
"nprogress": "^0.2.0",
"null-loader": "^3.0.0",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"portfinder": "^1.0.24",
"portfinder": "^1.0.25",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.7.0",
"react-dev-utils": "^9.1.0",
@ -75,8 +75,8 @@
"style-loader": "^1.0.0",
"terser-webpack-plugin": "^2.1.3",
"wait-file": "^1.0.5",
"webpack": "^4.41.1",
"webpack-bundle-analyzer": "^3.5.2",
"webpack": "^4.41.2",
"webpack-bundle-analyzer": "^3.6.0",
"webpack-dev-server": "^3.8.2",
"webpack-merge": "^4.2.2",
"webpack-nicelog": "^2.3.1"

View file

@ -29,13 +29,13 @@ function compile(config: Configuration[]): Promise<any> {
reject(err);
}
if (stats.hasErrors()) {
stats.toJson().errors.forEach(e => {
stats.toJson('errors-only').errors.forEach(e => {
console.error(e);
});
reject(new Error('Failed to compile with errors.'));
}
if (stats.hasWarnings()) {
stats.toJson().warnings.forEach(warning => {
stats.toJson('errors-warnings').warnings.forEach(warning => {
console.warn(warning);
});
}

1768
yarn.lock

File diff suppressed because it is too large Load diff