Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Aug 24, 2022
1 parent bd9f29a commit be30adf
Show file tree
Hide file tree
Showing 20 changed files with 1,207 additions and 1,200 deletions.
2 changes: 1 addition & 1 deletion admin/new.docusaurus.io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"start": "npx --package netlify-cli netlify dev"
},
"dependencies": {
"@netlify/functions": "^1.0.0"
"@netlify/functions": "^1.2.0"
}
}
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,41 +62,41 @@
"unified": "^9.2.2"
},
"devDependencies": {
"@crowdin/cli": "^3.7.9",
"@swc/core": "1.2.197",
"@crowdin/cli": "^3.7.10",
"@swc/core": "^1.2.242",
"@swc/jest": "^0.2.22",
"@testing-library/react-hooks": "^8.0.1",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^28.1.6",
"@types/lodash": "^4.14.182",
"@types/node": "^18.6.3",
"@types/jest": "^28.1.7",
"@types/lodash": "^4.14.184",
"@types/node": "^18.7.12",
"@types/prompts": "^2.0.14",
"@types/react": "^18.0.15",
"@types/react": "^18.0.17",
"@types/react-dev-utils": "^9.0.11",
"@types/react-test-renderer": "^18.0.0",
"@types/semver": "^7.3.10",
"@types/semver": "^7.3.12",
"@types/shelljs": "^0.8.11",
"@typescript-eslint/eslint-plugin": "^5.32.0",
"@typescript-eslint/parser": "^5.32.0",
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"cross-env": "^7.0.3",
"cspell": "^6.5.0",
"eslint": "^8.21.0",
"cspell": "^6.8.0",
"eslint": "^8.22.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.7.0",
"eslint-plugin-jest": "^26.8.7",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-regexp": "^1.8.0",
"eslint-plugin-regexp": "^1.9.0",
"husky": "^8.0.1",
"image-size": "^1.0.2",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"jest-serializer-ansi-escapes": "^2.0.1",
"jest-serializer-react-helmet-async": "^1.0.21",
"lerna": "^5.3.0",
"lerna": "^5.4.3",
"lerna-changelog": "^2.2.0",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
Expand All @@ -109,9 +109,9 @@
"rimraf": "^3.0.2",
"sharp": "^0.30.7",
"strip-ansi": "^6.0.1",
"stylelint": "^14.9.1",
"stylelint": "^14.11.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^26.0.0",
"stylelint-config-standard": "^28.0.0",
"typescript": "~4.7.4"
}
}
4 changes: 2 additions & 2 deletions packages/create-docusaurus/templates/facebook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.18.9",
"eslint": "^8.21.0",
"eslint": "^8.22.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-header": "^3.1.1",
Expand All @@ -36,7 +36,7 @@
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.7.1",
"stylelint": "^14.9.1"
"stylelint": "^14.11.0"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-cssnano-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"cssnano-preset-advanced": "^5.3.8",
"postcss": "^8.4.14",
"postcss": "^8.4.16",
"postcss-sort-media-queries": "^4.2.1",
"tslib": "^2.4.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-mdx-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
},
"license": "MIT",
"dependencies": {
"@babel/parser": "^7.18.10",
"@babel/traverse": "^7.18.10",
"@babel/parser": "^7.18.13",
"@babel/traverse": "^7.18.13",
"@docusaurus/logger": "^3.0.0-alpha.0",
"@docusaurus/utils": "^3.0.0-alpha.0",
"@mdx-js/mdx": "^1.6.22",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-migrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"docusaurus-migrate": "bin/index.mjs"
},
"dependencies": {
"@babel/core": "^7.18.10",
"@babel/core": "^7.18.13",
"@babel/preset-env": "^7.18.10",
"@docusaurus/logger": "^3.0.0-alpha.0",
"@docusaurus/utils": "^3.0.0-alpha.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-plugin-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"license": "MIT",
"dependencies": {
"@babel/core": "^7.18.10",
"@babel/core": "^7.18.13",
"@babel/preset-env": "^7.18.10",
"@docusaurus/core": "^3.0.0-alpha.0",
"@docusaurus/theme-common": "^3.0.0-alpha.0",
Expand All @@ -31,7 +31,7 @@
"babel-loader": "^8.2.5",
"clsx": "^1.2.1",
"core-js": "^3.24.1",
"terser-webpack-plugin": "^5.3.3",
"terser-webpack-plugin": "^5.3.5",
"tslib": "^2.4.0",
"webpack": "^5.74.0",
"webpack-merge": "^5.8.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/docusaurus-theme-classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
"infima": "0.2.0-alpha.42",
"lodash": "^4.17.21",
"nprogress": "^0.2.0",
"postcss": "^8.4.14",
"postcss": "^8.4.16",
"prism-react-renderer": "^1.3.5",
"prismjs": "^1.28.0",
"prismjs": "^1.29.0",
"react-router-dom": "^5.3.3",
"rtlcss": "^3.5.0",
"rtlcss": "^4.0.0",
"tslib": "^2.4.0",
"utility-types": "^3.10.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-theme-search-algolia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
},
"dependencies": {
"@docsearch/react": "^3.1.1",
"@docsearch/react": "^3.2.1",
"@docusaurus/core": "^3.0.0-alpha.0",
"@docusaurus/logger": "^3.0.0-alpha.0",
"@docusaurus/plugin-content-docs": "^3.0.0-alpha.0",
Expand All @@ -42,7 +42,7 @@
"@docusaurus/utils": "^3.0.0-alpha.0",
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
"algoliasearch": "^4.14.2",
"algoliasearch-helper": "^3.10.0",
"algoliasearch-helper": "^3.11.0",
"clsx": "^1.2.1",
"eta": "^1.12.3",
"fs-extra": "^10.1.0",
Expand Down
18 changes: 9 additions & 9 deletions packages/docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
"url": "https://github.com/facebook/docusaurus/issues"
},
"dependencies": {
"@babel/core": "^7.18.10",
"@babel/generator": "^7.18.10",
"@babel/core": "^7.18.13",
"@babel/generator": "^7.18.13",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.18.10",
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.18.9",
"@babel/runtime-corejs3": "^7.18.9",
"@babel/traverse": "^7.18.10",
"@babel/traverse": "^7.18.13",
"@docusaurus/cssnano-preset": "^3.0.0-alpha.0",
"@docusaurus/logger": "^3.0.0-alpha.0",
"@docusaurus/mdx-loader": "^3.0.0-alpha.0",
Expand All @@ -66,7 +66,7 @@
"core-js": "^3.24.1",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.0.0",
"cssnano": "^5.1.12",
"cssnano": "^5.1.13",
"del": "^6.1.1",
"detect-port": "^1.3.0",
"escape-html": "^1.0.3",
Expand All @@ -80,7 +80,7 @@
"leven": "^3.1.0",
"lodash": "^4.17.21",
"mini-css-extract-plugin": "^2.6.1",
"postcss": "^8.4.14",
"postcss": "^8.4.16",
"postcss-loader": "^7.0.1",
"prompts": "^2.4.2",
"react-dev-utils": "^12.0.1",
Expand All @@ -94,14 +94,14 @@
"semver": "^7.3.7",
"serve-handler": "^6.1.3",
"shelljs": "^0.8.5",
"terser-webpack-plugin": "^5.3.3",
"terser-webpack-plugin": "^5.3.5",
"tslib": "^2.4.0",
"update-notifier": "^5.1.0",
"url-loader": "^4.1.1",
"wait-on": "^6.0.1",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-dev-server": "^4.9.3",
"webpack-bundle-analyzer": "^4.6.1",
"webpack-dev-server": "^4.10.0",
"webpack-merge": "^5.8.0",
"webpackbar": "^5.0.2"
},
Expand All @@ -115,7 +115,7 @@
"@types/serve-handler": "^6.1.1",
"@types/update-notifier": "^5.1.0",
"@types/wait-on": "^5.3.1",
"@types/webpack-bundle-analyzer": "^4.4.1",
"@types/webpack-bundle-analyzer": "^4.4.2",
"react-test-renderer": "^17.0.2",
"tmp-promise": "^3.0.3",
"tree-node-cli": "^1.5.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"build": "tsc"
},
"dependencies": {
"@typescript-eslint/utils": "^5.32.0",
"@typescript-eslint/utils": "^5.34.0",
"tslib": "^2.4.0"
},
"devDependencies": {
"eslint-plugin-eslint-plugin": "^5.0.1"
"eslint-plugin-eslint-plugin": "^5.0.6"
},
"peerDependencies": {
"eslint": ">=6"
Expand Down
2 changes: 1 addition & 1 deletion packages/lqip-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
},
"devDependencies": {
"@types/file-loader": "^5.0.1",
"@types/sharp": "^0.30.4"
"@types/sharp": "^0.30.5"
}
}
2 changes: 1 addition & 1 deletion packages/stylelint-copyright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "packages/stylelint-copyright"
},
"dependencies": {
"stylelint": "^14.9.1",
"stylelint": "^14.11.0",
"tslib": "^2.4.0"
}
}
80 changes: 41 additions & 39 deletions packages/stylelint-copyright/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import stylelint from 'stylelint';
import stylelint, {type Rule} from 'stylelint';

const ruleName = 'docusaurus/copyright-header';
const messages = stylelint.utils.ruleMessages(ruleName, {
Expand All @@ -14,46 +14,48 @@ const messages = stylelint.utils.ruleMessages(ruleName, {

type SecondaryOption = {header?: string};

const plugin = stylelint.createPlugin(
ruleName,
(primaryOption: boolean, secondaryOption: SecondaryOption, context) =>
(root, result) => {
stylelint.utils.validateOptions(
result,
ruleName,
{
actual: primaryOption,
possible: [true, false],
},
{
actual: secondaryOption,
possible: (v) =>
typeof (v as SecondaryOption | undefined)?.header === 'string',
},
);

if (
root.first &&
root.first.type === 'comment' &&
root.first.source?.start?.column === 1
) {
const {text} = root.first;
if (text === secondaryOption.header) {
return;
}
}
if (context.fix) {
root.first?.before(`/*${secondaryOption.header!}\n */`);
const rule: Rule<boolean, string> =
(primaryOption, secondaryOption, context) => (root, result) => {
stylelint.utils.validateOptions(
result,
ruleName,
{
actual: primaryOption,
possible: [true, false],
},
{
actual: secondaryOption,
possible: (v) =>
typeof (v as SecondaryOption | undefined)?.header === 'string',
},
);

if (
root.first &&
root.first.type === 'comment' &&
root.first.source?.start?.column === 1
) {
const {text} = root.first;
if (text === secondaryOption.header) {
return;
}
}
if (context.fix) {
root.first?.before(`/*${secondaryOption.header!}\n */`);
return;
}

stylelint.utils.report({
message: messages.rejected,
node: root,
result,
ruleName,
});
};

rule.ruleName = ruleName;
rule.messages = messages;

stylelint.utils.report({
message: messages.rejected,
node: root,
result,
ruleName,
});
},
);
const plugin = stylelint.createPlugin(ruleName, rule);

export = plugin;
1 change: 1 addition & 0 deletions project-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ reponame
requireindex
retrocompatibility
retrocompatible
rmiz
roadmap
rocketvalidator
rtcts
Expand Down
3 changes: 2 additions & 1 deletion website/docs/advanced/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ description: How Docusaurus works to build your app
```mdx-code-block
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Zoom from '@site/src/components/Zoom';
import Zoom from 'react-medium-image-zoom';
import 'react-medium-image-zoom/dist/styles.css';
```

<Zoom>
Expand Down
Loading

0 comments on commit be30adf

Please sign in to comment.