mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 21:03:47 +02:00
chore(v2): upgrade dependencies (#3727)
* chore(v2): upgrade dependencies * Update loader-utils * Update MDX packages * Update Babel packages * Various updates
This commit is contained in:
parent
14a65907bd
commit
049634a927
18 changed files with 1327 additions and 599 deletions
10
package.json
10
package.json
|
@ -54,11 +54,11 @@
|
|||
"netlify:deployPreview:v1-migrated:build": "yarn workspace docusaurus-1-website-migrated build --out-dir=../website/netlifyDeployPreview/v1-migrated"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.9.0",
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
||||
"@babel/preset-typescript": "^7.9.0",
|
||||
"@babel/cli": "^7.12.1",
|
||||
"@babel/core": "^7.12.3",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.12.1",
|
||||
"@babel/preset-typescript": "^7.12.1",
|
||||
"@types/express": "^4.17.2",
|
||||
"@types/fs-extra": "^8.0.1",
|
||||
"@types/inquirer": "^6.5.0",
|
||||
|
|
|
@ -27,15 +27,15 @@
|
|||
"docusaurus-rename-version": "./lib/rename-version.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.9.0",
|
||||
"@babel/polyfill": "^7.8.7",
|
||||
"@babel/preset-env": "^7.9.0",
|
||||
"@babel/preset-react": "^7.9.4",
|
||||
"@babel/register": "^7.9.0",
|
||||
"@babel/traverse": "^7.9.0",
|
||||
"@babel/types": "^7.9.0",
|
||||
"@babel/core": "^7.12.3",
|
||||
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@babel/preset-env": "^7.12.1",
|
||||
"@babel/preset-react": "^7.12.5",
|
||||
"@babel/register": "^7.12.1",
|
||||
"@babel/traverse": "^7.12.5",
|
||||
"@babel/types": "^7.12.6",
|
||||
"autoprefixer": "^9.7.5",
|
||||
"babylon": "^6.18.0",
|
||||
"chalk": "^3.0.0",
|
||||
|
@ -45,10 +45,10 @@
|
|||
"cssnano": "^4.1.10",
|
||||
"escape-string-regexp": "^2.0.0",
|
||||
"express": "^4.17.1",
|
||||
"feed": "^4.0.0",
|
||||
"feed": "^4.2.1",
|
||||
"fs-extra": "^8.1.0",
|
||||
"gaze": "^1.1.3",
|
||||
"github-slugger": "^1.2.1",
|
||||
"github-slugger": "^1.3.0",
|
||||
"glob": "^7.1.6",
|
||||
"highlight.js": "^9.16.2",
|
||||
"imagemin": "^6.0.0",
|
||||
|
@ -56,12 +56,12 @@
|
|||
"imagemin-jpegtran": "^6.0.0",
|
||||
"imagemin-optipng": "^6.0.0",
|
||||
"imagemin-svgo": "^7.0.0",
|
||||
"lodash": "^4.17.15",
|
||||
"lodash": "^4.17.20",
|
||||
"markdown-toc": "^1.2.0",
|
||||
"mkdirp": "^0.5.1",
|
||||
"portfinder": "^1.0.25",
|
||||
"portfinder": "^1.0.28",
|
||||
"postcss": "^7.0.23",
|
||||
"prismjs": "^1.17.1",
|
||||
"prismjs": "^1.22.0",
|
||||
"react": "^16.8.4",
|
||||
"react-dev-utils": "^9.1.0",
|
||||
"react-dom": "^16.8.4",
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"dependencies": {
|
||||
"@docusaurus/core": "2.0.0-alpha.66",
|
||||
"@docusaurus/preset-classic": "2.0.0-alpha.66",
|
||||
"@mdx-js/react": "^1.5.8",
|
||||
"@mdx-js/react": "^1.6.21",
|
||||
"clsx": "^1.1.1",
|
||||
"react": "^16.8.4",
|
||||
"react-dom": "^16.8.4"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"dependencies": {
|
||||
"@docusaurus/core": "2.0.0-alpha.66",
|
||||
"@docusaurus/preset-classic": "2.0.0-alpha.66",
|
||||
"@mdx-js/react": "^1.5.8",
|
||||
"@mdx-js/react": "^1.6.21",
|
||||
"clsx": "^1.1.1",
|
||||
"react": "^16.8.4",
|
||||
"react-dom": "^16.8.4"
|
||||
|
|
|
@ -16,33 +16,33 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/parser": "^7.9.4",
|
||||
"@babel/traverse": "^7.9.0",
|
||||
"@babel/parser": "^7.12.5",
|
||||
"@babel/traverse": "^7.12.5",
|
||||
"@docusaurus/core": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils": "2.0.0-alpha.66",
|
||||
"@mdx-js/mdx": "^1.5.8",
|
||||
"@mdx-js/react": "^1.5.8",
|
||||
"@mdx-js/mdx": "^1.6.21",
|
||||
"@mdx-js/react": "^1.6.21",
|
||||
"escape-html": "^1.0.3",
|
||||
"file-loader": "^6.0.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"fs-extra": "^8.1.0",
|
||||
"github-slugger": "^1.3.0",
|
||||
"gray-matter": "^4.0.2",
|
||||
"loader-utils": "^1.2.3",
|
||||
"loader-utils": "^2.0.0",
|
||||
"mdast-util-to-string": "^1.1.0",
|
||||
"remark-emoji": "^2.1.0",
|
||||
"stringify-object": "^3.3.0",
|
||||
"unist-util-visit": "^2.0.2",
|
||||
"url-loader": "^4.1.0"
|
||||
"url-loader": "^4.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/types": "2.0.0-alpha.66",
|
||||
"remark": "^12.0.0",
|
||||
"remark-mdx": "^1.5.8",
|
||||
"remark-mdx": "^1.6.21",
|
||||
"to-vfile": "^6.0.0",
|
||||
"unist-builder": "^2.0.3",
|
||||
"unist-util-remove-position": "^2.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"peerDependencies": {
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.8.4",
|
||||
"webpack": "^4.0.0 || ^5.0.0"
|
||||
|
|
|
@ -30,15 +30,15 @@
|
|||
"fs-extra": "^9.0.1",
|
||||
"glob": "^7.1.6",
|
||||
"hast-util-to-string": "^1.0.4",
|
||||
"hast-util-to-text": "^2.0.0",
|
||||
"hast-util-to-text": "^2.0.1",
|
||||
"html-tags": "^3.1.0",
|
||||
"import-fresh": "^3.2.1",
|
||||
"import-fresh": "^3.2.2",
|
||||
"jscodeshift": "^0.10.0",
|
||||
"rehype-parse": "^7.0.1",
|
||||
"remark-parse": "^8.0.2",
|
||||
"remark-stringify": "^8.1.0",
|
||||
"semver": "^7.3.2",
|
||||
"unified": "^9.0.0",
|
||||
"unified": "^9.2.0",
|
||||
"unist-util-visit": "^2.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -21,12 +21,12 @@
|
|||
"@docusaurus/types": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils-validation": "2.0.0-alpha.66",
|
||||
"joi": "^17.2.1",
|
||||
"chalk": "^3.0.0",
|
||||
"eta": "^1.1.1",
|
||||
"eta": "^1.11.0",
|
||||
"fs-extra": "^8.1.0",
|
||||
"globby": "^10.0.1",
|
||||
"lodash": "^4.17.15"
|
||||
"joi": "^17.2.1",
|
||||
"lodash": "^4.17.20"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.4",
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
"@docusaurus/types": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils-validation": "2.0.0-alpha.66",
|
||||
"joi": "^17.2.1",
|
||||
"chalk": "^3.0.0",
|
||||
"feed": "^4.1.0",
|
||||
"feed": "^4.2.1",
|
||||
"fs-extra": "^8.1.0",
|
||||
"globby": "^10.0.1",
|
||||
"joi": "^17.2.1",
|
||||
"loader-utils": "^1.2.3",
|
||||
"lodash": "^4.5.2",
|
||||
"lodash": "^4.17.20",
|
||||
"reading-time": "^1.2.0",
|
||||
"remark-admonitions": "^1.2.1",
|
||||
"webpack": "^4.44.1"
|
||||
|
|
|
@ -29,12 +29,12 @@
|
|||
"@docusaurus/types": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils-validation": "2.0.0-alpha.66",
|
||||
"joi": "^17.2.1",
|
||||
"chalk": "^3.0.0",
|
||||
"execa": "^3.4.0",
|
||||
"fs-extra": "^8.1.0",
|
||||
"globby": "^10.0.1",
|
||||
"import-fresh": "^3.2.1",
|
||||
"import-fresh": "^3.2.2",
|
||||
"joi": "^17.2.1",
|
||||
"loader-utils": "^1.2.3",
|
||||
"lodash": "^4.17.19",
|
||||
"lodash.flatmap": "^4.5.0",
|
||||
|
|
|
@ -13,14 +13,14 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.1",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.10.3",
|
||||
"@babel/preset-env": "^7.9.0",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.12.1",
|
||||
"@babel/preset-env": "^7.12.1",
|
||||
"@docusaurus/core": "2.0.0-alpha.66",
|
||||
"joi": "^17.2.1",
|
||||
"babel-loader": "^8.1.0",
|
||||
"babel-loader": "^8.2.1",
|
||||
"clsx": "^1.1.1",
|
||||
"core-js": "^2.6.5",
|
||||
"joi": "^17.2.1",
|
||||
"terser-webpack-plugin": "^4.1.0",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-merge": "^4.2.2",
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"remark": "^12.0.0",
|
||||
"remark-mdx": "^1.5.8",
|
||||
"remark-mdx": "^1.6.21",
|
||||
"to-vfile": "^6.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
"@docusaurus/plugin-content-docs": "2.0.0-alpha.66",
|
||||
"@docusaurus/plugin-content-pages": "2.0.0-alpha.66",
|
||||
"@docusaurus/types": "2.0.0-alpha.66",
|
||||
"@mdx-js/react": "^1.5.8",
|
||||
"@mdx-js/react": "^1.6.21",
|
||||
"bootstrap": "^4.4.1",
|
||||
"classnames": "^2.2.6",
|
||||
"clsx": "^1.1.1",
|
||||
"prism-react-renderer": "^1.1.0",
|
||||
"prism-react-renderer": "^1.1.1",
|
||||
"reactstrap": "^8.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -26,17 +26,17 @@
|
|||
"@docusaurus/plugin-content-pages": "2.0.0-alpha.66",
|
||||
"@docusaurus/types": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils-validation": "2.0.0-alpha.66",
|
||||
"joi": "^17.2.1",
|
||||
"@mdx-js/mdx": "^1.5.8",
|
||||
"@mdx-js/react": "^1.5.8",
|
||||
"@mdx-js/mdx": "^1.6.21",
|
||||
"@mdx-js/react": "^1.6.21",
|
||||
"@types/react-toggle": "^4.0.2",
|
||||
"clsx": "^1.1.1",
|
||||
"copy-text-to-clipboard": "^2.2.0",
|
||||
"infima": "0.2.0-alpha.15",
|
||||
"joi": "^17.2.1",
|
||||
"lodash": "^4.17.19",
|
||||
"parse-numeric-range": "^0.0.2",
|
||||
"prism-react-renderer": "^1.1.0",
|
||||
"prismjs": "^1.20.0",
|
||||
"parse-numeric-range": "^1.2.0",
|
||||
"prism-react-renderer": "^1.1.1",
|
||||
"prismjs": "^1.22.0",
|
||||
"prop-types": "^15.7.2",
|
||||
"react-router-dom": "^5.1.2",
|
||||
"react-toggle": "^4.1.1"
|
||||
|
|
|
@ -116,16 +116,13 @@ export default ({
|
|||
// Tested above
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const highlightLinesRange = metastring.match(highlightLinesRangeRegex)![1];
|
||||
highlightLines = rangeParser
|
||||
.parse(highlightLinesRange)
|
||||
.filter((n) => n > 0);
|
||||
highlightLines = rangeParser(highlightLinesRange).filter((n) => n > 0);
|
||||
}
|
||||
|
||||
if (metastring && codeBlockTitleRegex.test(metastring)) {
|
||||
// Tested above
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
codeBlockTitle = metastring
|
||||
.match(codeBlockTitleRegex)![1];
|
||||
codeBlockTitle = metastring.match(codeBlockTitleRegex)![1];
|
||||
}
|
||||
|
||||
let language =
|
||||
|
@ -180,7 +177,7 @@ export default ({
|
|||
index += 1;
|
||||
}
|
||||
}
|
||||
highlightLines = rangeParser.parse(range);
|
||||
highlightLines = rangeParser(range);
|
||||
code = lines.join('\n');
|
||||
}
|
||||
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
"@docusaurus/core": "2.0.0-alpha.66",
|
||||
"@philpl/buble": "^0.19.7",
|
||||
"clsx": "^1.1.1",
|
||||
"parse-numeric-range": "^0.0.2",
|
||||
"prism-react-renderer": "^1.1.0",
|
||||
"react-live": "^2.2.1"
|
||||
"parse-numeric-range": "^1.2.0",
|
||||
"prism-react-renderer": "^1.1.1",
|
||||
"react-live": "^2.2.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.4",
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
"@docsearch/react": "^1.0.0-alpha.27",
|
||||
"@docusaurus/core": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils": "2.0.0-alpha.66",
|
||||
"joi": "^17.2.1",
|
||||
"algoliasearch": "^4.0.0",
|
||||
"algoliasearch-helper": "^3.1.1",
|
||||
"clsx": "^1.1.1",
|
||||
"eta": "^1.1.1",
|
||||
"eta": "^1.11.0",
|
||||
"joi": "^17.2.1",
|
||||
"lodash": "^4.17.19"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
@ -35,47 +35,47 @@
|
|||
"@types/detect-port": "^1.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.1",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.10.3",
|
||||
"@babel/core": "^7.12.3",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.12.1",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/plugin-transform-runtime": "^7.9.0",
|
||||
"@babel/preset-env": "^7.9.0",
|
||||
"@babel/preset-react": "^7.9.4",
|
||||
"@babel/preset-typescript": "^7.9.0",
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@babel/runtime-corejs3": "^7.10.4",
|
||||
"@babel/plugin-transform-runtime": "^7.12.1",
|
||||
"@babel/preset-env": "^7.12.1",
|
||||
"@babel/preset-react": "^7.12.5",
|
||||
"@babel/preset-typescript": "^7.12.1",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@babel/runtime-corejs3": "^7.12.5",
|
||||
"@docusaurus/types": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils": "2.0.0-alpha.66",
|
||||
"@docusaurus/utils-validation": "2.0.0-alpha.66",
|
||||
"@endiliey/static-site-generator-webpack-plugin": "^4.0.0",
|
||||
"joi": "^17.2.1",
|
||||
"@svgr/webpack": "^5.4.0",
|
||||
"babel-loader": "^8.1.0",
|
||||
"babel-plugin-dynamic-import-node": "^2.3.0",
|
||||
"babel-loader": "^8.2.1",
|
||||
"babel-plugin-dynamic-import-node": "^2.3.3",
|
||||
"boxen": "^4.2.0",
|
||||
"cache-loader": "^4.1.0",
|
||||
"chalk": "^3.0.0",
|
||||
"chokidar": "^3.3.0",
|
||||
"chokidar": "^3.4.3",
|
||||
"commander": "^4.0.1",
|
||||
"copy-webpack-plugin": "^6.0.3",
|
||||
"copy-webpack-plugin": "^6.3.0",
|
||||
"core-js": "^2.6.5",
|
||||
"css-loader": "^3.4.2",
|
||||
"del": "^5.1.0",
|
||||
"detect-port": "^1.3.0",
|
||||
"eta": "^1.1.1",
|
||||
"eta": "^1.11.0",
|
||||
"express": "^4.17.1",
|
||||
"file-loader": "^6.0.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"fs-extra": "^8.1.0",
|
||||
"globby": "^10.0.1",
|
||||
"html-minifier-terser": "^5.0.5",
|
||||
"html-minifier-terser": "^5.1.1",
|
||||
"html-tags": "^3.1.0",
|
||||
"html-webpack-plugin": "^4.0.4",
|
||||
"import-fresh": "^3.2.1",
|
||||
"html-webpack-plugin": "^4.5.0",
|
||||
"import-fresh": "^3.2.2",
|
||||
"inquirer": "^7.2.0",
|
||||
"is-root": "^2.1.0",
|
||||
"joi": "^17.2.1",
|
||||
"leven": "^3.1.0",
|
||||
"lodash": "^4.5.2",
|
||||
"lodash": "^4.17.20",
|
||||
"lodash.flatmap": "^4.5.0",
|
||||
"lodash.has": "^4.5.2",
|
||||
"lodash.isplainobject": "^4.0.6",
|
||||
|
@ -83,15 +83,15 @@
|
|||
"mini-css-extract-plugin": "^0.8.0",
|
||||
"nprogress": "^0.2.0",
|
||||
"null-loader": "^3.0.0",
|
||||
"optimize-css-assets-webpack-plugin": "^5.0.3",
|
||||
"optimize-css-assets-webpack-plugin": "^5.0.4",
|
||||
"pnp-webpack-plugin": "^1.6.4",
|
||||
"postcss-loader": "^3.0.0",
|
||||
"postcss-preset-env": "^6.7.0",
|
||||
"react-dev-utils": "^10.2.1",
|
||||
"react-helmet": "^6.0.0-beta",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-loadable": "^5.5.0",
|
||||
"react-loadable-ssr-addon": "^0.3.0",
|
||||
"react-router": "^5.1.2",
|
||||
"react-router": "^5.2.0",
|
||||
"react-router-config": "^5.1.1",
|
||||
"react-router-dom": "^5.1.2",
|
||||
"resolve-pathname": "^3.0.0",
|
||||
|
@ -101,7 +101,7 @@
|
|||
"std-env": "^2.2.1",
|
||||
"terser-webpack-plugin": "^4.1.0",
|
||||
"update-notifier": "^4.1.0",
|
||||
"url-loader": "^4.1.0",
|
||||
"url-loader": "^4.1.1",
|
||||
"wait-file": "^1.0.5",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-bundle-analyzer": "^3.6.1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue