Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade minor dependencies #10610

Merged
merged 21 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions argos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"private": true,
"scripts": {
"screenshot": "playwright test",
"upload": "npx @argos-ci/cli upload ./screenshots",
"upload": "npx @argos-ci/cli upload ./screenshots/chromium",
"report": "playwright show-report"
},
"dependencies": {
"@argos-ci/playwright": "^1.9.3",
"@playwright/test": "^1.41.2",
"cheerio": "^1.0.0-rc.12"
"@argos-ci/playwright": "^2.0.0",
"@playwright/test": "^1.48.1",
"cheerio": "1.0.0-rc.12"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"jest-serializer-react-helmet-async": "^1.0.21",
"lerna": "^6.6.2",
"lerna-changelog": "^2.2.0",
"lint-staged": "^13.2.3",
"lint-staged": "~13.2.3",
"lockfile-lint": "^4.14.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
Expand Down
18 changes: 9 additions & 9 deletions packages/docusaurus-babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
},
"license": "MIT",
"dependencies": {
"@babel/core": "^7.23.3",
"@babel/generator": "^7.23.3",
"@babel/traverse": "^7.22.8",
"@babel/core": "^7.25.9",
"@babel/generator": "^7.25.9",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@babel/runtime": "^7.22.6",
"@babel/runtime-corejs3": "^7.22.6",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.25.9",
"@babel/preset-react": "^7.25.9",
"@babel/preset-typescript": "^7.25.9",
"@babel/runtime": "^7.25.9",
"@babel/runtime-corejs3": "^7.25.9",
"@babel/traverse": "^7.25.9",
"@docusaurus/logger": "3.5.2",
"@docusaurus/utils": "3.5.2",
"babel-plugin-dynamic-import-node": "^2.3.3",
Expand Down
8 changes: 4 additions & 4 deletions packages/docusaurus-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@
},
"license": "MIT",
"dependencies": {
"@babel/core": "^7.23.3",
"@babel/core": "^7.25.9",
"@docusaurus/babel": "3.5.2",
"@docusaurus/cssnano-preset": "3.5.2",
"@docusaurus/logger": "3.5.2",
"@docusaurus/types": "3.5.2",
"@docusaurus/utils": "3.5.2",
"autoprefixer": "^10.4.14",
"babel-loader": "^9.1.3",
"babel-loader": "^9.2.1",
"clean-css": "^5.3.2",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.1",
"cssnano": "^6.1.2",
"postcss": "^8.4.26",
"postcss-loader": "^7.3.3",
"file-loader": "^6.2.0",
"html-minifier-terser": "^7.2.0",
"mini-css-extract-plugin": "^2.9.1",
"null-loader": "^4.0.1",
"postcss": "^8.4.26",
"postcss-loader": "^7.3.3",
"react-dev-utils": "^12.0.1",
"terser-webpack-plugin": "^5.3.9",
"tslib": "^2.6.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/docusaurus-mdx-loader/src/types.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ declare module 'unist' {
}

declare module 'mdast' {
interface HeadingData {
interface Data {
id?: string;
hName?: string;
hProperties?: Record<string, unknown>;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
*/

import React from 'react';
import {JsonView} from 'react-json-view-lite';
import {
JsonView,
defaultStyles,
type Props as JsonViewProps,
} from 'react-json-view-lite';
import type {Props} from '@theme/DebugJsonView';
import styles from './styles.module.css';

const paraisoStyles = {
const paraisoStyles: JsonViewProps['style'] = {
clickableLabel: defaultStyles.clickableLabel,
noQuotesForStringValues: false,
container: styles.containerParaiso!,
basicChildStyle: styles.basicElementParaiso!,
label: styles.labelParaiso!,
Expand Down
6 changes: 3 additions & 3 deletions packages/docusaurus-plugin-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
},
"license": "MIT",
"dependencies": {
"@babel/core": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/core": "^7.25.9",
"@babel/preset-env": "^7.25.9",
"@docusaurus/bundler": "3.5.2",
"@docusaurus/core": "3.5.2",
"@docusaurus/logger": "3.5.2",
Expand All @@ -30,7 +30,7 @@
"@docusaurus/types": "3.5.2",
"@docusaurus/utils": "3.5.2",
"@docusaurus/utils-validation": "3.5.2",
"babel-loader": "^9.1.3",
"babel-loader": "^9.2.1",
"clsx": "^2.0.0",
"core-js": "^3.31.1",
"tslib": "^2.6.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/docusaurus-plugin-pwa/src/renderReloadPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React from 'react';
import ReactDOM from 'react-dom';
import {createRoot} from 'react-dom/client';
import type {Props} from '@theme/PwaReloadPopup';

const POPUP_CONTAINER_ID = 'pwa-popup-container';
Expand All @@ -23,6 +23,7 @@ const createContainer = () => {
export function renderReloadPopup(props: Props): Promise<void> {
const container = getContainer() ?? createContainer();
return import('@theme/PwaReloadPopup').then(({default: ReloadPopup}) => {
ReactDOM.render(<ReloadPopup {...props} />, container);
const root = createRoot(container);
root.render(<ReloadPopup {...props} />);
});
}
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-rsdoctor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@docusaurus/core": "3.5.2",
"@docusaurus/types": "3.5.2",
"@docusaurus/utils-validation": "3.5.2",
"@rsdoctor/webpack-plugin": "^0.4.6",
"@rsdoctor/rspack-plugin": "^0.4.6",
"@rsdoctor/webpack-plugin": "^0.4.6",
"tslib": "^2.6.0"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import React from 'react';

// Add react-live imports you need here
const ReactLiveScope = {
const ReactLiveScope: unknown = {
React,
...React,
};
Expand Down
53 changes: 25 additions & 28 deletions packages/docusaurus/src/server/configValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,24 +130,22 @@ export const DEFAULT_CONFIG: Pick<
};

function createPluginSchema(theme: boolean) {
return (
Joi.alternatives()
.try(
Joi.function(),
Joi.array()
.ordered(Joi.function().required(), Joi.object().required())
.length(2),
Joi.string(),
Joi.array()
.ordered(Joi.string().required(), Joi.object().required())
.length(2),
Joi.any().valid(false, null),
)
// @ts-expect-error: bad lib def, doesn't recognize an array of reports
.error((errors) => {
errors.forEach((error) => {
const validConfigExample = theme
? `Example valid theme config:
return Joi.alternatives()
.try(
Joi.function(),
Joi.array()
.ordered(Joi.function().required(), Joi.object().required())
.length(2),
Joi.string(),
Joi.array()
.ordered(Joi.string().required(), Joi.object().required())
.length(2),
Joi.any().valid(false, null),
)
.error((errors) => {
errors.forEach((error) => {
const validConfigExample = theme
? `Example valid theme config:
{
themes: [
["@docusaurus/theme-classic",options],
Expand All @@ -157,7 +155,7 @@ function createPluginSchema(theme: boolean) {
[function myTheme() { },options]
],
};`
: `Example valid plugin config:
: `Example valid plugin config:
{
plugins: [
["@docusaurus/plugin-content-docs",options],
Expand All @@ -168,17 +166,16 @@ function createPluginSchema(theme: boolean) {
],
};`;

error.message = ` => Bad Docusaurus ${
theme ? 'theme' : 'plugin'
} value ${error.path.reduce((acc, cur) =>
typeof cur === 'string' ? `${acc}.${cur}` : `${acc}[${cur}]`,
)}.
error.message = ` => Bad Docusaurus ${
theme ? 'theme' : 'plugin'
} value ${error.path.reduce((acc, cur) =>
typeof cur === 'string' ? `${acc}.${cur}` : `${acc}[${cur}]`,
)}.
${validConfigExample}
`;
});
return errors;
})
);
});
return errors;
});
}

const PluginSchema = createPluginSchema(false);
Expand Down
Loading
Loading