chore: upgrade dependencies (#6660)

* chore: upgrade dependencies

* fix types
This commit is contained in:
Joshua Chen 2022-02-12 15:29:40 +08:00 committed by GitHub
parent 472840dbd8
commit 0c7e592d34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 1881 additions and 1535 deletions

View file

@ -4,13 +4,10 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint-disable import/no-extraneous-dependencies */
import util from 'util';
import globCb from 'glob';
import fsCb from 'fs';
const glob = util.promisify(globCb);
const readFile = util.promisify(fsCb.readFile);
import {Globby} from '@docusaurus/utils';
import fs from 'fs-extra';
type PackageJsonFile = {
file: string;
@ -19,12 +16,12 @@ type PackageJsonFile = {
};
async function getPackagesJsonFiles(): Promise<PackageJsonFile[]> {
const files = await glob('packages/*/package.json');
const files = await Globby('packages/*/package.json');
return Promise.all(
files.map(async (file) => ({
file,
content: JSON.parse(await readFile(file, 'utf8')),
content: JSON.parse(await fs.readFile(file, 'utf8')),
})),
);
}

View file

@ -9,6 +9,6 @@
"@netlify/functions": "^0.11.0"
},
"devDependencies": {
"netlify-cli": "^8.15.3"
"netlify-cli": "^9.4.0"
}
}

View file

@ -58,55 +58,52 @@
"lock:update": "npx yarn-deduplicate"
},
"devDependencies": {
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.3",
"@babel/preset-typescript": "^7.16.0",
"@crowdin/cli": "^3.7.1",
"@types/fs-extra": "^9.0.6",
"@babel/cli": "^7.17.0",
"@babel/core": "^7.17.2",
"@babel/preset-typescript": "^7.16.7",
"@crowdin/cli": "^3.7.7",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.4.0",
"@types/lodash": "^4.14.168",
"@types/node": "^17.0.14",
"@types/prompts": "^2.0.9",
"@types/react": "^17.0.2",
"@types/react-dev-utils": "^9.0.1",
"@types/lodash": "^4.14.178",
"@types/node": "^17.0.17",
"@types/prompts": "^2.0.14",
"@types/react": "^17.0.39",
"@types/react-dev-utils": "^9.0.10",
"@types/react-test-renderer": "^17.0.1",
"@types/semver": "^7.1.0",
"@types/shelljs": "^0.8.6",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"@types/semver": "^7.3.9",
"@types/shelljs": "^0.8.11",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"concurrently": "^7.0.0",
"cross-env": "^7.0.3",
"cspell": "^5.18.0",
"eslint": "^8.2.0",
"eslint-config-airbnb": "^19.0.0",
"cspell": "^5.18.4",
"eslint": "^8.9.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^25.7.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.27.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"glob": "^7.1.6",
"husky": "^7.0.4",
"image-size": "^1.0.1",
"jest": "^27.4.7",
"jest": "^27.5.1",
"lerna": "^4.0.0",
"lerna-changelog": "^2.2.0",
"lint-staged": "^12.1.7",
"netlify-cli": "^8.15.3",
"nodemon": "^2.0.13",
"lint-staged": "^12.3.3",
"netlify-cli": "^9.4.0",
"nodemon": "^2.0.15",
"prettier": "^2.5.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2",
"remark-parse": "^8.0.2",
"rimraf": "^3.0.2",
"sharp": "^0.29.1",
"stylelint": "^14.3.0",
"sharp": "^0.30.1",
"stylelint": "^14.5.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^24.0.0",
"tslib": "^2.3.1",
"stylelint-config-standard": "^25.0.0",
"typescript": "^4.5.5",
"unified": "^9.2.1"
},

View file

@ -25,9 +25,9 @@
"commander": "^5.1.0",
"fs-extra": "^10.0.0",
"lodash": "^4.17.20",
"prompts": "^2.4.1",
"semver": "^7.3.4",
"shelljs": "^0.8.4",
"prompts": "^2.4.2",
"semver": "^7.3.5",
"shelljs": "^0.8.5",
"supports-color": "^8.1.1",
"tslib": "^2.3.1"
},

View file

@ -13,9 +13,9 @@
"directory": "packages/docusaurus-cssnano-preset"
},
"dependencies": {
"cssnano-preset-advanced": "^5.1.11",
"postcss": "^8.3.7",
"postcss-sort-media-queries": "^4.1.0"
"cssnano-preset-advanced": "^5.1.12",
"postcss": "^8.4.6",
"postcss-sort-media-queries": "^4.2.1"
},
"devDependencies": {
"to-vfile": "^6.0.0"

View file

@ -18,8 +18,8 @@
},
"license": "MIT",
"dependencies": {
"@babel/parser": "^7.16.4",
"@babel/traverse": "^7.16.3",
"@babel/parser": "^7.17.0",
"@babel/traverse": "^7.17.0",
"@docusaurus/logger": "2.0.0-beta.15",
"@docusaurus/utils": "2.0.0-beta.15",
"@mdx-js/mdx": "^1.6.22",

View file

@ -25,14 +25,14 @@
"dependencies": {
"@babel/preset-env": "^7.16.11",
"@docusaurus/logger": "2.0.0-beta.15",
"@docusaurus/utils": "2.0.0-beta.15",
"@mapbox/hast-util-to-jsx": "^1.0.0",
"color": "^4.0.1",
"commander": "^5.1.0",
"fs-extra": "^10.0.0",
"glob": "^7.2.0",
"hast-util-to-string": "^1.0.4",
"html-tags": "^3.1.0",
"import-fresh": "^3.2.2",
"import-fresh": "^3.3.0",
"jscodeshift": "^0.13.0",
"rehype-parse": "^7.0.1",
"remark-parse": "^8.0.2",

View file

@ -8,7 +8,7 @@
import fs from 'fs-extra';
import importFresh from 'import-fresh';
import logger from '@docusaurus/logger';
import glob from 'glob';
import {Globby} from '@docusaurus/utils';
import Color from 'color';
import type {
@ -377,7 +377,7 @@ function createPages(context: MigrationContext): void {
path.join(siteDir, 'pages', 'en'),
path.join(newDir, 'src', 'pages'),
);
const files = glob.sync('**/*.js', {
const files = Globby.sync('**/*.js', {
cwd: path.join(newDir, 'src', 'pages'),
});
files.forEach((file) => {

View file

@ -25,7 +25,7 @@
"@docusaurus/utils-validation": "2.0.0-beta.15",
"eta": "^1.12.3",
"fs-extra": "^10.0.0",
"lodash": "^4.17.20",
"lodash": "^4.17.21",
"tslib": "^2.3.1"
},
"devDependencies": {

View file

@ -27,7 +27,7 @@
"cheerio": "^1.0.0-rc.10",
"feed": "^4.2.2",
"fs-extra": "^10.0.0",
"lodash": "^4.17.20",
"lodash": "^4.17.21",
"reading-time": "^1.5.0",
"remark-admonitions": "^1.2.1",
"tslib": "^2.3.1",

View file

@ -30,9 +30,9 @@
"@docusaurus/utils-validation": "2.0.0-beta.15",
"combine-promises": "^1.1.0",
"fs-extra": "^10.0.0",
"import-fresh": "^3.2.2",
"js-yaml": "^4.0.0",
"lodash": "^4.17.20",
"import-fresh": "^3.3.0",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"remark-admonitions": "^1.2.1",
"tslib": "^2.3.1",
"utility-types": "^3.10.0",
@ -41,12 +41,12 @@
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.0-beta.15",
"@docusaurus/types": "2.0.0-beta.15",
"@types/js-yaml": "^4.0.0",
"@types/picomatch": "^2.2.1",
"@types/js-yaml": "^4.0.5",
"@types/picomatch": "^2.3.0",
"commander": "^5.1.0",
"escape-string-regexp": "^4.0.0",
"picomatch": "^2.1.1",
"shelljs": "^0.8.4",
"picomatch": "^2.3.1",
"shelljs": "^0.8.5",
"utility-types": "^3.10.0"
},
"peerDependencies": {

View file

@ -23,7 +23,6 @@
"@docusaurus/utils": "2.0.0-beta.15",
"@docusaurus/utils-validation": "2.0.0-beta.15",
"fs-extra": "^10.0.0",
"globby": "^11.0.2",
"remark-admonitions": "^1.2.1",
"tslib": "^2.3.1",
"webpack": "^5.68.0"

View file

@ -28,7 +28,7 @@
"@docusaurus/utils-validation": "2.0.0-beta.15",
"@endiliey/react-ideal-image": "^0.0.11",
"react-waypoint": "^10.1.0",
"sharp": "^0.29.1",
"sharp": "^0.30.1",
"tslib": "^2.3.1",
"webpack": "^5.68.0"
},

View file

@ -26,16 +26,16 @@
"@docusaurus/theme-translations": "2.0.0-beta.15",
"@docusaurus/utils": "2.0.0-beta.15",
"@docusaurus/utils-validation": "2.0.0-beta.15",
"babel-loader": "^8.2.2",
"babel-loader": "^8.2.3",
"clsx": "^1.1.1",
"core-js": "^3.21.0",
"terser-webpack-plugin": "^5.2.4",
"terser-webpack-plugin": "^5.3.1",
"tslib": "^2.3.1",
"webpack": "^5.68.0",
"webpack-merge": "^5.7.3",
"workbox-build": "^6.1.1",
"webpack-merge": "^5.8.0",
"workbox-build": "^6.4.2",
"workbox-precaching": "^6.1.1",
"workbox-window": "^6.1.1"
"workbox-window": "^6.4.2"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.0-beta.15",

View file

@ -23,7 +23,7 @@
"@docusaurus/utils-common": "2.0.0-beta.15",
"@docusaurus/utils-validation": "2.0.0-beta.15",
"fs-extra": "^10.0.0",
"sitemap": "^7.0.0",
"sitemap": "^7.1.1",
"tslib": "^2.3.1"
},
"devDependencies": {

View file

@ -27,10 +27,6 @@
"remark-mdx": "^1.6.21",
"to-vfile": "^6.0.0"
},
"peerDependencies": {
"react": "^16.8.4 || ^17.0.0",
"react-dom": "^16.8.4 || ^17.0.0"
},
"engines": {
"node": ">=14"
}

View file

@ -34,8 +34,8 @@
"clsx": "^1.1.1",
"copy-text-to-clipboard": "^3.0.1",
"infima": "0.2.0-alpha.37",
"lodash": "^4.17.20",
"postcss": "^8.3.7",
"lodash": "^4.17.21",
"postcss": "^8.4.6",
"prism-react-renderer": "^1.2.1",
"prismjs": "^1.26.0",
"react-router-dom": "^5.2.0",
@ -44,10 +44,9 @@
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.0-beta.15",
"@docusaurus/types": "2.0.0-beta.15",
"@types/mdx-js__react": "^1.5.4",
"@types/parse-numeric-range": "^0.0.1",
"@types/mdx-js__react": "^1.5.5",
"@types/prismjs": "^1.26.0",
"@types/rtlcss": "^3.1.1",
"@types/rtlcss": "^3.1.2",
"cross-env": "^7.0.3",
"fs-extra": "^10.0.0",
"react-test-renderer": "^17.0.2",

View file

@ -23,7 +23,7 @@
"@docusaurus/plugin-content-pages": "2.0.0-beta.15",
"clsx": "^1.1.1",
"parse-numeric-range": "^1.3.0",
"prism-react-renderer": "^1.2.1",
"prism-react-renderer": "^1.3.1",
"tslib": "^2.3.1",
"utility-types": "^3.10.0"
},
@ -33,7 +33,7 @@
"@docusaurus/types": "2.0.0-beta.15",
"@testing-library/react-hooks": "^7.0.2",
"fs-extra": "^10.0.0",
"lodash": "^4.17.20"
"lodash": "^4.17.21"
},
"peerDependencies": {
"react": "^16.8.4 || ^17.0.0",

View file

@ -28,8 +28,6 @@
"@philpl/buble": "^0.19.7",
"clsx": "^1.1.1",
"fs-extra": "^10.0.0",
"parse-numeric-range": "^1.3.0",
"prism-react-renderer": "^1.2.1",
"react-live": "2.2.3",
"tslib": "^2.3.1"
},

View file

@ -25,18 +25,18 @@
"build:format": "prettier --config ../../.prettierrc --write \"lib/**/*.js\""
},
"dependencies": {
"@docsearch/react": "^3.0.0-alpha.39",
"@docsearch/react": "^3.0.0-alpha.50",
"@docusaurus/core": "2.0.0-beta.15",
"@docusaurus/logger": "2.0.0-beta.15",
"@docusaurus/theme-common": "2.0.0-beta.15",
"@docusaurus/theme-translations": "2.0.0-beta.15",
"@docusaurus/utils": "2.0.0-beta.15",
"@docusaurus/utils-validation": "2.0.0-beta.15",
"algoliasearch": "^4.10.5",
"algoliasearch-helper": "^3.5.5",
"algoliasearch": "^4.12.1",
"algoliasearch-helper": "^3.7.0",
"clsx": "^1.1.1",
"eta": "^1.12.3",
"lodash": "^4.17.20",
"lodash": "^4.17.21",
"tslib": "^2.3.1",
"utility-types": "^3.10.0"
},

View file

@ -25,7 +25,7 @@
"devDependencies": {
"@docusaurus/core": "2.0.0-beta.15",
"@docusaurus/logger": "2.0.0-beta.15",
"lodash": "^4.17.20"
"lodash": "^4.17.21"
},
"engines": {
"node": ">=14"

View file

@ -6,16 +6,12 @@
*/
import type {RuleSetRule, Configuration} from 'webpack';
import type {CustomizeRuleString} from 'webpack-merge/dist/types';
import type {CommanderStatic} from 'commander';
import type {ParsedUrlQueryInput} from 'querystring';
import type Joi from 'joi';
import type {Overwrite, DeepPartial} from 'utility-types';
// Convert webpack-merge webpack-merge enum to union type
// For type retro-compatible webpack-merge upgrade: we used string literals
// before) See https://github.com/survivejs/webpack-merge/issues/179
type MergeStrategy = 'match' | 'merge' | 'append' | 'prepend' | 'replace';
export type ReportingSeverity = 'ignore' | 'log' | 'warn' | 'error' | 'throw';
export type ThemeConfig = {
@ -333,7 +329,10 @@ export type ImportedPluginModule = PluginModule & {
};
export type ConfigureWebpackFn = Plugin<unknown>['configureWebpack'];
export type ConfigureWebpackFnMergeStrategy = Record<string, MergeStrategy>;
export type ConfigureWebpackFnMergeStrategy = Record<
string,
CustomizeRuleString
>;
export type ConfigurePostCssFn = Plugin<unknown>['configurePostCss'];
export type PluginOptions = {id?: string} & Record<string, unknown>;

View file

@ -23,10 +23,6 @@
"joi": "^17.6.0",
"tslib": "^2.3.1"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"engines": {
"node": ">=14"
}

View file

@ -25,11 +25,11 @@
"github-slugger": "^1.4.0",
"globby": "^11.0.4",
"gray-matter": "^4.0.3",
"js-yaml": "^4.0.0",
"lodash": "^4.17.20",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"micromatch": "^4.0.4",
"resolve-pathname": "^3.0.0",
"shelljs": "^0.8.4",
"shelljs": "^0.8.5",
"tslib": "^2.3.1",
"url-loader": "^4.1.1",
"webpack": "^5.68.0"
@ -42,11 +42,7 @@
"@types/dedent": "^0.7.0",
"@types/github-slugger": "^1.3.0",
"@types/micromatch": "^4.0.2",
"@types/react-dom": "^17.0.1",
"@types/react-dom": "^17.0.11",
"dedent": "^0.7.0"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
}
}

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import path from 'path';
import shell from 'shelljs';

View file

@ -31,16 +31,16 @@
"url": "https://github.com/facebook/docusaurus/issues"
},
"dependencies": {
"@babel/core": "^7.16.0",
"@babel/generator": "^7.16.0",
"@babel/core": "^7.17.2",
"@babel/generator": "^7.17.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.16.10",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@babel/runtime": "^7.16.3",
"@babel/runtime-corejs3": "^7.16.3",
"@babel/traverse": "^7.16.3",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@babel/runtime": "^7.17.2",
"@babel/runtime-corejs3": "^7.17.2",
"@babel/traverse": "^7.17.0",
"@docusaurus/cssnano-preset": "2.0.0-beta.15",
"@docusaurus/logger": "2.0.0-beta.15",
"@docusaurus/mdx-loader": "2.0.0-beta.15",
@ -48,10 +48,10 @@
"@docusaurus/utils": "2.0.0-beta.15",
"@docusaurus/utils-common": "2.0.0-beta.15",
"@docusaurus/utils-validation": "2.0.0-beta.15",
"@slorber/static-site-generator-webpack-plugin": "^4.0.0",
"@svgr/webpack": "^6.0.0",
"autoprefixer": "^10.3.5",
"babel-loader": "^8.2.2",
"@slorber/static-site-generator-webpack-plugin": "^4.0.1",
"@svgr/webpack": "^6.2.1",
"autoprefixer": "^10.4.2",
"babel-loader": "^8.2.3",
"babel-plugin-dynamic-import-node": "2.3.0",
"boxen": "^5.0.1",
"chokidar": "^3.5.3",
@ -59,27 +59,27 @@
"commander": "^5.1.0",
"copy-webpack-plugin": "^10.2.4",
"core-js": "^3.21.0",
"css-loader": "^6.5.1",
"css-loader": "^6.6.0",
"css-minimizer-webpack-plugin": "^3.4.1",
"cssnano": "^5.0.16",
"cssnano": "^5.0.17",
"del": "^6.0.0",
"detect-port": "^1.3.0",
"escape-html": "^1.0.3",
"eta": "^1.12.3",
"file-loader": "^6.2.0",
"fs-extra": "^10.0.0",
"html-minifier-terser": "^6.0.2",
"html-minifier-terser": "^6.1.0",
"html-tags": "^3.1.0",
"html-webpack-plugin": "^5.4.0",
"html-webpack-plugin": "^5.5.0",
"import-fresh": "^3.3.0",
"is-root": "^2.1.0",
"leven": "^3.1.0",
"lodash": "^4.17.20",
"lodash": "^4.17.21",
"mini-css-extract-plugin": "^2.5.3",
"nprogress": "^0.2.0",
"postcss": "^8.3.7",
"postcss-loader": "^6.1.1",
"prompts": "^2.4.1",
"postcss": "^8.4.6",
"postcss-loader": "^6.2.1",
"prompts": "^2.4.2",
"react-dev-utils": "^12.0.0",
"react-helmet-async": "^1.2.2",
"react-loadable": "npm:@docusaurus/react-loadable@5.5.2",
@ -91,34 +91,32 @@
"rtl-detect": "^1.0.4",
"semver": "^7.3.4",
"serve-handler": "^6.1.3",
"shelljs": "^0.8.4",
"terser-webpack-plugin": "^5.2.4",
"shelljs": "^0.8.5",
"terser-webpack-plugin": "^5.3.1",
"tslib": "^2.3.1",
"update-notifier": "^5.1.0",
"url-loader": "^4.1.1",
"wait-on": "^6.0.0",
"wait-on": "^6.0.1",
"webpack": "^5.68.0",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-dev-server": "^4.7.1",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-dev-server": "^4.7.4",
"webpack-merge": "^5.8.0",
"webpackbar": "^5.0.2"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.0-beta.15",
"@docusaurus/types": "2.0.0-beta.15",
"@types/copy-webpack-plugin": "^10.1.0",
"@types/detect-port": "^1.3.0",
"@types/mini-css-extract-plugin": "^2.5.1",
"@types/detect-port": "^1.3.2",
"@types/nprogress": "^0.2.0",
"@types/react-dom": "^17.0.9",
"@types/react-router-config": "^5.0.1",
"@types/react-dom": "^17.0.11",
"@types/react-router-config": "^5.0.6",
"@types/rtl-detect": "^1.0.0",
"@types/serve-handler": "^6.1.1",
"@types/update-notifier": "^5.1.0",
"@types/wait-on": "^5.2.0",
"@types/wait-on": "^5.3.1",
"@types/webpack-bundle-analyzer": "^4.4.1",
"react-test-renderer": "^17.0.2",
"tmp-promise": "^3.0.2"
"tmp-promise": "^3.0.3"
},
"peerDependencies": {
"react": "^16.8.4 || ^17.0.0",

View file

@ -18,9 +18,9 @@
"license": "MIT",
"dependencies": {
"file-loader": "^6.2.0",
"lodash": "^4.17.20",
"node-vibrant": "^3.1.5",
"sharp": "^0.29.1",
"lodash": "^4.17.21",
"node-vibrant": "^3.1.6",
"sharp": "^0.30.1",
"tslib": "^2.3.1"
},
"engines": {

View file

@ -11,6 +11,6 @@
"directory": "packages/stylelint-copyright"
},
"dependencies": {
"stylelint": "^14.3.0"
"stylelint": "^14.5.0"
}
}

View file

@ -30,8 +30,8 @@
"watch": "tsc --watch"
},
"dependencies": {
"@crowdin/cli": "^3.7.1",
"@crowdin/crowdin-api-client": "^1.13.0",
"@crowdin/cli": "^3.7.7",
"@crowdin/crowdin-api-client": "^1.14.0",
"@docusaurus/core": "2.0.0-beta.15",
"@docusaurus/plugin-client-redirects": "2.0.0-beta.15",
"@docusaurus/plugin-ideal-image": "2.0.0-beta.15",
@ -42,7 +42,7 @@
"@docusaurus/theme-live-codeblock": "2.0.0-beta.15",
"@docusaurus/utils": "2.0.0-beta.15",
"@docusaurus/utils-common": "2.0.0-beta.15",
"@popperjs/core": "^2.10.2",
"@popperjs/core": "^2.11.2",
"axios": "^0.25.0",
"clsx": "^1.1.1",
"color": "^4.0.1",

3150
yarn.lock

File diff suppressed because it is too large Load diff