Skip to content

Commit

Permalink
chore: upgrade dependencies (#7993)
Browse files Browse the repository at this point in the history
* chore: upgrade dependencies

* Fix lint

* Bump more

* Fix lint
  • Loading branch information
Josh-Cena committed Sep 8, 2022
1 parent 38dd7cf commit 275f509
Show file tree
Hide file tree
Showing 35 changed files with 1,795 additions and 1,804 deletions.
2 changes: 1 addition & 1 deletion admin/new.docusaurus.io/package.json
Expand Up @@ -6,6 +6,6 @@
"start": "npx --package netlify-cli netlify dev"
},
"dependencies": {
"@netlify/functions": "^1.0.0"
"@netlify/functions": "^1.2.0"
}
}
38 changes: 19 additions & 19 deletions package.json
Expand Up @@ -62,41 +62,41 @@
"unified": "^9.2.2"
},
"devDependencies": {
"@crowdin/cli": "^3.7.9",
"@crowdin/cli": "^3.7.10",
"@swc/core": "1.2.197",
"@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": "^29.0.0",
"@types/lodash": "^4.14.184",
"@types/node": "^18.7.16",
"@types/prompts": "^2.0.14",
"@types/react": "^18.0.15",
"@types/react": "^18.0.18",
"@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.36.2",
"@typescript-eslint/parser": "^5.36.2",
"cross-env": "^7.0.3",
"cspell": "^6.5.0",
"eslint": "^8.21.0",
"cspell": "^6.8.1",
"eslint": "^8.23.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": "^27.0.1",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react": "^7.31.7",
"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": "^29.0.2",
"jest-environment-jsdom": "^29.0.2",
"jest-serializer-ansi-escapes": "^2.0.1",
"jest-serializer-react-helmet-async": "^1.0.21",
"lerna": "^5.3.0",
"lerna": "^5.5.0",
"lerna-changelog": "^2.2.0",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
Expand All @@ -107,11 +107,11 @@
"react-test-renderer": "^17.0.2",
"remark-parse": "^8.0.2",
"rimraf": "^3.0.2",
"sharp": "^0.30.7",
"sharp": "^0.31.0",
"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"
}
}
2 changes: 1 addition & 1 deletion packages/create-docusaurus/package.json
Expand Up @@ -30,7 +30,7 @@
"prompts": "^2.4.2",
"semver": "^7.3.7",
"shelljs": "^0.8.5",
"supports-color": "^9.2.2",
"supports-color": "^9.2.3",
"tslib": "^2.4.0"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/create-docusaurus/templates/facebook/package.json
Expand Up @@ -27,16 +27,16 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.18.9",
"eslint": "^8.21.0",
"eslint": "^8.23.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-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react": "^7.31.7",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.7.1",
"stylelint": "^14.9.1"
"stylelint": "^14.11.0"
},
"browserslist": {
"production": [
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-cssnano-preset/package.json
Expand Up @@ -18,8 +18,8 @@
},
"dependencies": {
"cssnano-preset-advanced": "^5.3.8",
"postcss": "^8.4.14",
"postcss-sort-media-queries": "^4.2.1",
"postcss": "^8.4.16",
"postcss-sort-media-queries": "^4.3.0",
"tslib": "^2.4.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/docusaurus-logger/src/__tests__/index.test.ts
Expand Up @@ -150,12 +150,12 @@ describe('report', () => {
).toThrowErrorMatchingInlineSnapshot(
`"Unexpected "reportingSeverity" value: foo."`,
);
expect(consoleLog).toBeCalledTimes(1);
expect(consoleLog).toBeCalledWith(
expect(consoleLog).toHaveBeenCalledTimes(1);
expect(consoleLog).toHaveBeenCalledWith(
expect.stringMatching(/.*\[INFO\].* hey/),
);
expect(consoleWarn).toBeCalledTimes(1);
expect(consoleWarn).toBeCalledWith(
expect(consoleWarn).toHaveBeenCalledTimes(1);
expect(consoleWarn).toHaveBeenCalledWith(
expect.stringMatching(/.*\[WARNING\].* hey/),
);
});
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-mdx-loader/package.json
Expand Up @@ -18,8 +18,8 @@
},
"license": "MIT",
"dependencies": {
"@babel/parser": "^7.18.10",
"@babel/traverse": "^7.18.10",
"@babel/parser": "^7.19.0",
"@babel/traverse": "^7.19.0",
"@docusaurus/logger": "^3.0.0-alpha.0",
"@docusaurus/utils": "^3.0.0-alpha.0",
"@mdx-js/mdx": "^1.6.22",
Expand Down
Expand Up @@ -66,6 +66,6 @@ describe('transformImage plugin', () => {
const errorMock = jest.spyOn(console, 'warn').mockImplementation(() => {});
const result = await processFixture('invalid-img', {staticDirs});
expect(result).toMatchSnapshot();
expect(errorMock).toBeCalledTimes(1);
expect(errorMock).toHaveBeenCalledTimes(1);
});
});
4 changes: 2 additions & 2 deletions packages/docusaurus-migrate/package.json
Expand Up @@ -22,8 +22,8 @@
"docusaurus-migrate": "bin/index.mjs"
},
"dependencies": {
"@babel/core": "^7.18.10",
"@babel/preset-env": "^7.18.10",
"@babel/core": "^7.19.0",
"@babel/preset-env": "^7.19.0",
"@docusaurus/logger": "^3.0.0-alpha.0",
"@docusaurus/utils": "^3.0.0-alpha.0",
"@mapbox/hast-util-to-jsx": "^2.0.0",
Expand Down
Expand Up @@ -98,7 +98,7 @@ describe.each(['atom', 'rss', 'json'])('%s', (feedType) => {
} as PluginOptions,
);

expect(fsMock).toBeCalledTimes(0);
expect(fsMock).toHaveBeenCalledTimes(0);
fsMock.mockClear();
});

Expand Down
Binary file modified packages/docusaurus-plugin-content-docs/src/__tests__/cli.test.ts
Binary file not shown.
Expand Up @@ -175,12 +175,12 @@ describe('loadSidebars', () => {
} as VersionMetadata,
}),
).rejects.toThrowErrorMatchingInlineSnapshot(`""foo" is not allowed"`);
expect(consoleWarnMock).toBeCalledWith(
expect(consoleWarnMock).toHaveBeenCalledWith(
expect.stringMatching(
/.*\[WARNING\].* There are more than one category metadata files for .*foo.*: foo\/_category_.json, foo\/_category_.yml. The behavior is undetermined./,
),
);
expect(consoleErrorMock).toBeCalledWith(
expect(consoleErrorMock).toHaveBeenCalledWith(
expect.stringMatching(
/.*\[ERROR\].* The docs sidebar category metadata file .*foo\/_category_.json.* looks invalid!/,
),
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-ideal-image/package.json
Expand Up @@ -28,7 +28,7 @@
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
"@endiliey/react-ideal-image": "^0.0.11",
"react-waypoint": "^10.3.0",
"sharp": "^0.30.7",
"sharp": "^0.31.0",
"tslib": "^2.4.0",
"webpack": "^5.74.0"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/docusaurus-plugin-pwa/package.json
Expand Up @@ -20,8 +20,8 @@
},
"license": "MIT",
"dependencies": {
"@babel/core": "^7.18.10",
"@babel/preset-env": "^7.18.10",
"@babel/core": "^7.19.0",
"@babel/preset-env": "^7.19.0",
"@docusaurus/core": "^3.0.0-alpha.0",
"@docusaurus/theme-common": "^3.0.0-alpha.0",
"@docusaurus/theme-translations": "^3.0.0-alpha.0",
Expand All @@ -30,8 +30,8 @@
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
"babel-loader": "^8.2.5",
"clsx": "^1.2.1",
"core-js": "^3.24.1",
"terser-webpack-plugin": "^5.3.3",
"core-js": "^3.25.1",
"terser-webpack-plugin": "^5.3.6",
"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
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
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
Expand Up @@ -59,7 +59,7 @@ describe('normalizePluginOptions', () => {
options,
),
).toEqual({foo: 'a', id: 'default'});
expect(consoleMock).toBeCalledWith(
expect(consoleMock).toHaveBeenCalledWith(
expect.stringMatching(/"foo" deprecated/),
);
});
Expand Down Expand Up @@ -110,7 +110,7 @@ describe('normalizeThemeConfig', () => {
themeConfig,
),
).toEqual(themeConfig);
expect(consoleMock).toBeCalledWith(
expect(consoleMock).toHaveBeenCalledWith(
expect.stringMatching(/"foo" deprecated/),
);
});
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-utils/src/__tests__/emitUtils.test.ts
Expand Up @@ -104,15 +104,15 @@ describe('generate', () => {

it('works with existing cache', async () => {
await generate(__dirname, 'foo', 'bar');
expect(writeMock).toBeCalledTimes(1);
expect(writeMock).toHaveBeenCalledTimes(1);
});

it('works with existing file but no cache', async () => {
existsMock.mockImplementationOnce(() => true);
// @ts-expect-error: seems the typedef doesn't understand overload
readMock.mockImplementationOnce(() => Promise.resolve('bar'));
await generate(__dirname, 'baz', 'bar');
expect(writeMock).toBeCalledTimes(1);
expect(writeMock).toHaveBeenCalledTimes(1);
});

it('works when force skipping cache', async () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-utils/src/__tests__/gitUtils.test.ts
Expand Up @@ -120,15 +120,15 @@ describe('getFileCommitDate', () => {
age: 'newest',
includeAuthor: true,
}),
).toThrowError(FileNotTrackedError);
).toThrow(FileNotTrackedError);
});
it('throws when file not found', async () => {
expect(() =>
getFileCommitDate(path.join(repoDir, 'nonexistent.txt'), {
age: 'newest',
includeAuthor: true,
}),
).toThrowError(
).toThrow(
/Failed to retrieve git history for ".*nonexistent.txt" because the file does not exist./,
);
});
Expand Down
26 changes: 13 additions & 13 deletions packages/docusaurus/package.json
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.19.0",
"@babel/generator": "^7.19.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.18.10",
"@babel/preset-env": "^7.18.10",
"@babel/preset-env": "^7.19.0",
"@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/runtime": "^7.19.0",
"@babel/runtime-corejs3": "^7.19.0",
"@babel/traverse": "^7.19.0",
"@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 @@ -63,10 +63,10 @@
"combine-promises": "^1.1.0",
"commander": "^5.1.0",
"copy-webpack-plugin": "^11.0.0",
"core-js": "^3.24.1",
"core-js": "^3.25.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.6",
"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.11.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
Expand Up @@ -98,7 +98,7 @@ describe('normalizeLocation', () => {
search: '',
hash: '#features',
});
expect(replaceMock).toBeCalledTimes(1);
expect(replaceMock).toHaveBeenCalledTimes(1);

expect(
normalizeLocation({
Expand Down

0 comments on commit 275f509

Please sign in to comment.