mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 18:32:52 +02:00
chore: upgrade dependencies (#6946)
* chore: upgrade dependencies * reformat
This commit is contained in:
parent
92fcc0ddc5
commit
e8a2f66a0f
17 changed files with 281 additions and 268 deletions
|
@ -18,7 +18,7 @@
|
|||
"@docusaurus/preset-classic": "2.0.0-beta.17",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"clsx": "^1.1.1",
|
||||
"prism-react-renderer": "^1.2.1",
|
||||
"prism-react-renderer": "^1.3.1",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2"
|
||||
},
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
||||
"eslint-plugin-react": "^7.29.4",
|
||||
"eslint-plugin-react-hooks": "^4.3.0",
|
||||
"prettier": "^2.5.1",
|
||||
"stylelint": "^14.5.3"
|
||||
"prettier": "^2.6.0",
|
||||
"stylelint": "^14.6.0"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
"directory": "packages/docusaurus-cssnano-preset"
|
||||
},
|
||||
"dependencies": {
|
||||
"cssnano-preset-advanced": "^5.2.5",
|
||||
"postcss": "^8.4.8",
|
||||
"cssnano-preset-advanced": "^5.3.0",
|
||||
"postcss": "^8.4.12",
|
||||
"postcss-sort-media-queries": "^4.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/parser": "^7.17.7",
|
||||
"@babel/parser": "^7.17.8",
|
||||
"@babel/traverse": "^7.17.3",
|
||||
"@docusaurus/logger": "2.0.0-beta.17",
|
||||
"@docusaurus/utils": "2.0.0-beta.17",
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.17.7",
|
||||
"@babel/core": "^7.17.8",
|
||||
"@babel/preset-env": "^7.16.11",
|
||||
"@docusaurus/core": "2.0.0-beta.17",
|
||||
"@docusaurus/theme-common": "2.0.0-beta.17",
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
"copy-text-to-clipboard": "^3.0.1",
|
||||
"infima": "0.2.0-alpha.37",
|
||||
"lodash": "^4.17.21",
|
||||
"postcss": "^8.4.8",
|
||||
"postcss": "^8.4.12",
|
||||
"prism-react-renderer": "^1.3.1",
|
||||
"prismjs": "^1.27.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"@docusaurus/utils": "2.0.0-beta.17",
|
||||
"@docusaurus/utils-validation": "2.0.0-beta.17",
|
||||
"algoliasearch": "^4.13.0",
|
||||
"algoliasearch-helper": "^3.7.0",
|
||||
"algoliasearch-helper": "^3.7.3",
|
||||
"clsx": "^1.1.1",
|
||||
"eta": "^1.12.3",
|
||||
"fs-extra": "^10.0.1",
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
"@types/dedent": "^0.7.0",
|
||||
"@types/github-slugger": "^1.3.0",
|
||||
"@types/micromatch": "^4.0.2",
|
||||
"@types/react-dom": "^17.0.13",
|
||||
"@types/react-dom": "^17.0.14",
|
||||
"dedent": "^0.7.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,14 +31,14 @@
|
|||
"url": "https://github.com/facebook/docusaurus/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.17.7",
|
||||
"@babel/core": "^7.17.8",
|
||||
"@babel/generator": "^7.17.7",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/plugin-transform-runtime": "^7.17.0",
|
||||
"@babel/preset-env": "^7.16.11",
|
||||
"@babel/preset-react": "^7.16.7",
|
||||
"@babel/preset-typescript": "^7.16.7",
|
||||
"@babel/runtime": "^7.17.7",
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@babel/runtime-corejs3": "^7.17.7",
|
||||
"@babel/traverse": "^7.17.3",
|
||||
"@docusaurus/cssnano-preset": "2.0.0-beta.17",
|
||||
|
@ -50,7 +50,7 @@
|
|||
"@docusaurus/utils-validation": "2.0.0-beta.17",
|
||||
"@slorber/static-site-generator-webpack-plugin": "^4.0.1",
|
||||
"@svgr/webpack": "^6.2.1",
|
||||
"autoprefixer": "^10.4.2",
|
||||
"autoprefixer": "^10.4.4",
|
||||
"babel-loader": "^8.2.3",
|
||||
"babel-plugin-dynamic-import-node": "2.3.0",
|
||||
"boxen": "^6.2.1",
|
||||
|
@ -79,7 +79,7 @@
|
|||
"lodash": "^4.17.21",
|
||||
"mini-css-extract-plugin": "^2.6.0",
|
||||
"nprogress": "^0.2.0",
|
||||
"postcss": "^8.4.8",
|
||||
"postcss": "^8.4.12",
|
||||
"postcss-loader": "^6.2.1",
|
||||
"prompts": "^2.4.2",
|
||||
"react-dev-utils": "^12.0.0",
|
||||
|
@ -110,7 +110,7 @@
|
|||
"@docusaurus/types": "2.0.0-beta.17",
|
||||
"@types/detect-port": "^1.3.2",
|
||||
"@types/nprogress": "^0.2.0",
|
||||
"@types/react-dom": "^17.0.13",
|
||||
"@types/react-dom": "^17.0.14",
|
||||
"@types/react-router-config": "^5.0.6",
|
||||
"@types/rtl-detect": "^1.0.0",
|
||||
"@types/serve-handler": "^6.1.1",
|
||||
|
|
|
@ -35,7 +35,7 @@ const Context = React.createContext<LinksCollector>({
|
|||
|
||||
export const useLinksCollector = (): LinksCollector => useContext(Context);
|
||||
|
||||
export function ProvideLinksCollector({
|
||||
export function LinksCollectorProvider({
|
||||
children,
|
||||
linksCollector,
|
||||
}: {
|
||||
|
|
|
@ -21,7 +21,7 @@ import preload from './preload';
|
|||
import App from './App';
|
||||
import {
|
||||
createStatefulLinksCollector,
|
||||
ProvideLinksCollector,
|
||||
LinksCollectorProvider,
|
||||
} from './LinksCollector';
|
||||
import logger from '@docusaurus/logger';
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
|
@ -86,9 +86,9 @@ async function doRender(locals: Locals & {path: string}) {
|
|||
<Loadable.Capture report={(moduleName) => modules.add(moduleName)}>
|
||||
<HelmetProvider context={helmetContext}>
|
||||
<StaticRouter location={location} context={context}>
|
||||
<ProvideLinksCollector linksCollector={linksCollector}>
|
||||
<LinksCollectorProvider linksCollector={linksCollector}>
|
||||
<App />
|
||||
</ProvideLinksCollector>
|
||||
</LinksCollectorProvider>
|
||||
</StaticRouter>
|
||||
</HelmetProvider>
|
||||
</Loadable.Capture>,
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"directory": "packages/stylelint-copyright"
|
||||
},
|
||||
"dependencies": {
|
||||
"stylelint": "^14.5.3"
|
||||
"stylelint": "^14.6.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue