Skip to content

Commit 28f6a49

Browse files
authored
chore: upgrade minor dependencies (#10610)
1 parent 4892f3a commit 28f6a49

File tree

13 files changed

+3108
-2910
lines changed

13 files changed

+3108
-2910
lines changed

argos/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"private": true,
77
"scripts": {
88
"screenshot": "playwright test",
9-
"upload": "npx @argos-ci/cli upload ./screenshots",
9+
"upload": "npx @argos-ci/cli upload ./screenshots/chromium",
1010
"report": "playwright show-report"
1111
},
1212
"dependencies": {
13-
"@argos-ci/playwright": "^1.9.3",
14-
"@playwright/test": "^1.41.2",
15-
"cheerio": "^1.0.0-rc.12"
13+
"@argos-ci/playwright": "^2.0.0",
14+
"@playwright/test": "^1.48.1",
15+
"cheerio": "1.0.0-rc.12"
1616
}
1717
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"jest-serializer-react-helmet-async": "^1.0.21",
107107
"lerna": "^6.6.2",
108108
"lerna-changelog": "^2.2.0",
109-
"lint-staged": "^13.2.3",
109+
"lint-staged": "~13.2.3",
110110
"lockfile-lint": "^4.14.0",
111111
"npm-run-all": "^4.1.5",
112112
"prettier": "^2.8.8",

packages/docusaurus-babel/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@
2828
},
2929
"license": "MIT",
3030
"dependencies": {
31-
"@babel/core": "^7.23.3",
32-
"@babel/generator": "^7.23.3",
33-
"@babel/traverse": "^7.22.8",
31+
"@babel/core": "^7.25.9",
32+
"@babel/generator": "^7.25.9",
3433
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
35-
"@babel/plugin-transform-runtime": "^7.22.9",
36-
"@babel/preset-env": "^7.22.9",
37-
"@babel/preset-react": "^7.22.5",
38-
"@babel/preset-typescript": "^7.22.5",
39-
"@babel/runtime": "^7.22.6",
40-
"@babel/runtime-corejs3": "^7.22.6",
34+
"@babel/plugin-transform-runtime": "^7.25.9",
35+
"@babel/preset-env": "^7.25.9",
36+
"@babel/preset-react": "^7.25.9",
37+
"@babel/preset-typescript": "^7.25.9",
38+
"@babel/runtime": "^7.25.9",
39+
"@babel/runtime-corejs3": "^7.25.9",
40+
"@babel/traverse": "^7.25.9",
4141
"@docusaurus/logger": "3.5.2",
4242
"@docusaurus/utils": "3.5.2",
4343
"babel-plugin-dynamic-import-node": "^2.3.3",

packages/docusaurus-bundler/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@
1818
},
1919
"license": "MIT",
2020
"dependencies": {
21-
"@babel/core": "^7.23.3",
21+
"@babel/core": "^7.25.9",
2222
"@docusaurus/babel": "3.5.2",
2323
"@docusaurus/cssnano-preset": "3.5.2",
2424
"@docusaurus/logger": "3.5.2",
2525
"@docusaurus/types": "3.5.2",
2626
"@docusaurus/utils": "3.5.2",
2727
"autoprefixer": "^10.4.14",
28-
"babel-loader": "^9.1.3",
28+
"babel-loader": "^9.2.1",
2929
"clean-css": "^5.3.2",
3030
"copy-webpack-plugin": "^11.0.0",
3131
"css-loader": "^6.8.1",
3232
"css-minimizer-webpack-plugin": "^5.0.1",
3333
"cssnano": "^6.1.2",
34-
"postcss": "^8.4.26",
35-
"postcss-loader": "^7.3.3",
3634
"file-loader": "^6.2.0",
3735
"html-minifier-terser": "^7.2.0",
3836
"mini-css-extract-plugin": "^2.9.1",
3937
"null-loader": "^4.0.1",
38+
"postcss": "^8.4.26",
39+
"postcss-loader": "^7.3.3",
4040
"react-dev-utils": "^12.0.1",
4141
"terser-webpack-plugin": "^5.3.9",
4242
"tslib": "^2.6.0",

packages/docusaurus-mdx-loader/src/types.d.mts

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ declare module 'unist' {
2828
}
2929

3030
declare module 'mdast' {
31-
interface HeadingData {
31+
interface Data {
3232
id?: string;
33+
hName?: string;
34+
hProperties?: Record<string, unknown>;
3335
}
3436
}

packages/docusaurus-plugin-debug/src/theme/DebugJsonView/index.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@
66
*/
77

88
import React from 'react';
9-
import {JsonView} from 'react-json-view-lite';
9+
import {
10+
JsonView,
11+
defaultStyles,
12+
type Props as JsonViewProps,
13+
} from 'react-json-view-lite';
1014
import type {Props} from '@theme/DebugJsonView';
1115
import styles from './styles.module.css';
1216

13-
const paraisoStyles = {
17+
const paraisoStyles: JsonViewProps['style'] = {
18+
clickableLabel: defaultStyles.clickableLabel,
19+
noQuotesForStringValues: false,
1420
container: styles.containerParaiso!,
1521
basicChildStyle: styles.basicElementParaiso!,
1622
label: styles.labelParaiso!,

packages/docusaurus-plugin-pwa/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
},
2121
"license": "MIT",
2222
"dependencies": {
23-
"@babel/core": "^7.23.3",
24-
"@babel/preset-env": "^7.23.3",
23+
"@babel/core": "^7.25.9",
24+
"@babel/preset-env": "^7.25.9",
2525
"@docusaurus/bundler": "3.5.2",
2626
"@docusaurus/core": "3.5.2",
2727
"@docusaurus/logger": "3.5.2",
@@ -30,7 +30,7 @@
3030
"@docusaurus/types": "3.5.2",
3131
"@docusaurus/utils": "3.5.2",
3232
"@docusaurus/utils-validation": "3.5.2",
33-
"babel-loader": "^9.1.3",
33+
"babel-loader": "^9.2.1",
3434
"clsx": "^2.0.0",
3535
"core-js": "^3.31.1",
3636
"tslib": "^2.6.0",

packages/docusaurus-plugin-pwa/src/renderReloadPopup.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import React from 'react';
9-
import ReactDOM from 'react-dom';
9+
import {createRoot} from 'react-dom/client';
1010
import type {Props} from '@theme/PwaReloadPopup';
1111

1212
const POPUP_CONTAINER_ID = 'pwa-popup-container';
@@ -23,6 +23,7 @@ const createContainer = () => {
2323
export function renderReloadPopup(props: Props): Promise<void> {
2424
const container = getContainer() ?? createContainer();
2525
return import('@theme/PwaReloadPopup').then(({default: ReloadPopup}) => {
26-
ReactDOM.render(<ReloadPopup {...props} />, container);
26+
const root = createRoot(container);
27+
root.render(<ReloadPopup {...props} />);
2728
});
2829
}

packages/docusaurus-plugin-rsdoctor/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"@docusaurus/core": "3.5.2",
2222
"@docusaurus/types": "3.5.2",
2323
"@docusaurus/utils-validation": "3.5.2",
24-
"@rsdoctor/webpack-plugin": "^0.4.6",
2524
"@rsdoctor/rspack-plugin": "^0.4.6",
25+
"@rsdoctor/webpack-plugin": "^0.4.6",
2626
"tslib": "^2.6.0"
2727
},
2828
"peerDependencies": {

packages/docusaurus-theme-live-codeblock/src/theme/ReactLiveScope/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import React from 'react';
99

1010
// Add react-live imports you need here
11-
const ReactLiveScope = {
11+
const ReactLiveScope: unknown = {
1212
React,
1313
...React,
1414
};

packages/docusaurus/src/server/configValidation.ts

+25-28
Original file line numberDiff line numberDiff line change
@@ -130,24 +130,22 @@ export const DEFAULT_CONFIG: Pick<
130130
};
131131

132132
function createPluginSchema(theme: boolean) {
133-
return (
134-
Joi.alternatives()
135-
.try(
136-
Joi.function(),
137-
Joi.array()
138-
.ordered(Joi.function().required(), Joi.object().required())
139-
.length(2),
140-
Joi.string(),
141-
Joi.array()
142-
.ordered(Joi.string().required(), Joi.object().required())
143-
.length(2),
144-
Joi.any().valid(false, null),
145-
)
146-
// @ts-expect-error: bad lib def, doesn't recognize an array of reports
147-
.error((errors) => {
148-
errors.forEach((error) => {
149-
const validConfigExample = theme
150-
? `Example valid theme config:
133+
return Joi.alternatives()
134+
.try(
135+
Joi.function(),
136+
Joi.array()
137+
.ordered(Joi.function().required(), Joi.object().required())
138+
.length(2),
139+
Joi.string(),
140+
Joi.array()
141+
.ordered(Joi.string().required(), Joi.object().required())
142+
.length(2),
143+
Joi.any().valid(false, null),
144+
)
145+
.error((errors) => {
146+
errors.forEach((error) => {
147+
const validConfigExample = theme
148+
? `Example valid theme config:
151149
{
152150
themes: [
153151
["@docusaurus/theme-classic",options],
@@ -157,7 +155,7 @@ function createPluginSchema(theme: boolean) {
157155
[function myTheme() { },options]
158156
],
159157
};`
160-
: `Example valid plugin config:
158+
: `Example valid plugin config:
161159
{
162160
plugins: [
163161
["@docusaurus/plugin-content-docs",options],
@@ -168,17 +166,16 @@ function createPluginSchema(theme: boolean) {
168166
],
169167
};`;
170168

171-
error.message = ` => Bad Docusaurus ${
172-
theme ? 'theme' : 'plugin'
173-
} value ${error.path.reduce((acc, cur) =>
174-
typeof cur === 'string' ? `${acc}.${cur}` : `${acc}[${cur}]`,
175-
)}.
169+
error.message = ` => Bad Docusaurus ${
170+
theme ? 'theme' : 'plugin'
171+
} value ${error.path.reduce((acc, cur) =>
172+
typeof cur === 'string' ? `${acc}.${cur}` : `${acc}[${cur}]`,
173+
)}.
176174
${validConfigExample}
177175
`;
178-
});
179-
return errors;
180-
})
181-
);
176+
});
177+
return errors;
178+
});
182179
}
183180

184181
const PluginSchema = createPluginSchema(false);

0 commit comments

Comments
 (0)