Skip to content

Commit 3159cb4

Browse files
upgrade package versions (#251)
## Description Upgrades all frontend (site) package versions to latest. A few are breaking changes, so I went through the associated changelogs/migration guides and made changes as appropriate or found that we were not affected. Please just spot check the pages to make sure no behavior has changed. ## Checklist - [x] All changes are well summarized - [x] Check all tests pass - [x] Check that the website preview looks good - [x] Update the STRchive version in `CITATION.cff`, format X.Y.Z. If any major changes, increment Y. If only minor changes, increment Z. If the breaking change (rare), increment X. - [x] Ask someone to review this PR
1 parent b5c9fbc commit 3159cb4

7 files changed

Lines changed: 232 additions & 225 deletions

File tree

site/bun.lock

Lines changed: 201 additions & 201 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,33 @@
1111
"lint": "prettier **/*.{astro,js,jsx,ts,mdx,mjs,module.css,css,html,md} --write --no-error-on-unmatched-pattern"
1212
},
1313
"dependencies": {
14-
"@astrojs/mdx": "^3.1.8",
15-
"@astrojs/react": "^3.6.2",
16-
"@kbox-labs/react-echarts": "^1.4.0",
17-
"@reactuses/core": "^5.0.23",
18-
"@tanstack/react-table": "^8.20.5",
19-
"@types/react": "^18.3.12",
20-
"@types/react-dom": "^18.3.1",
21-
"astro": "^4.16.3",
14+
"@astrojs/mdx": "4.3.3",
15+
"@astrojs/react": "4.3.0",
16+
"@kbox-labs/react-echarts": "^1.4.2",
17+
"@reactuses/core": "^6.0.6",
18+
"@tanstack/react-table": "^8.21.3",
19+
"astro": "5.12.9",
2220
"astro-google-analytics": "^1.0.3",
2321
"clsx": "^2.1.1",
24-
"echarts": "^5.5.1",
22+
"echarts": "^6.0.0",
2523
"lodash-es": "^4.17.21",
26-
"plotly.js-dist": "^2.35.2",
27-
"react": "^18.3.1",
28-
"react-dom": "^18.3.1",
29-
"react-icons": "^5.3.0",
30-
"string-strip-html": "^13.4.8",
24+
"plotly.js-dist": "^3.1.0",
25+
"react": "^19.1.1",
26+
"react-dom": "^19.1.1",
27+
"react-icons": "^5.5.0",
28+
"string-strip-html": "^13.4.13",
3129
"tippy.js": "^6.3.7",
3230
"ua-parser-js": "^2.0.4"
3331
},
3432
"devDependencies": {
35-
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
36-
"postcss": "^8.4.47",
37-
"prettier": "^3.3.3",
33+
"@ianvs/prettier-plugin-sort-imports": "^4.6.1",
34+
"@types/react": "^19.1.10",
35+
"@types/react-dom": "^19.1.7",
36+
"postcss": "^8.5.6",
37+
"prettier": "^3.6.2",
3838
"prettier-plugin-astro": "^0.14.1",
3939
"prettier-plugin-css-order": "^2.1.2",
40-
"vite-plugin-svgr": "^4.2.0",
41-
"yaml": "^2.6.1"
40+
"vite-plugin-svgr": "^4.3.0",
41+
"yaml": "^2.8.1"
4242
}
4343
}

site/src/components/Dialog.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { cloneElement, createContext, useRef, useState } from "react";
22
import { FaXmark } from "react-icons/fa6";
33
import clsx from "clsx";
4-
import { useClickOutside, useEventListener } from "@reactuses/core";
4+
import {
5+
useClickOutside,
6+
useEventListener,
7+
useScrollLock,
8+
} from "@reactuses/core";
59
import Button from "./Button";
610
import classes from "./Dialog.module.css";
711

@@ -11,15 +15,18 @@ const Dialog = ({ trigger, title, children }) => {
1115
const dialogRef = useRef(null);
1216
const boxRef = useRef(null);
1317
const [isOpen, setIsOpen] = useState(false);
18+
const [, setLocked] = useScrollLock();
1419

1520
const open = () => {
1621
setIsOpen(true);
1722
dialogRef.current?.showModal();
23+
setLocked(true);
1824
};
1925

2026
const close = () => {
2127
setIsOpen(false);
2228
dialogRef.current?.close();
29+
setLocked(false);
2330
};
2431

2532
useEventListener("close", () => setIsOpen(false), dialogRef);

site/src/components/LineChart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const LineChart = ({
1515
max = undefined,
1616
className = "",
1717
}) => {
18-
const ref = useRef();
18+
const ref = useRef(null);
1919

2020
/** rows with missing values filtered out */
2121
const filteredRows = rows.filter(({ values }) =>

site/src/components/PlotlyChart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classes from "./PlotlyChart.module.css";
44

55
/** plotly chart that supports any plotly options */
66
const PlotlyChart = ({ data, layout, ...props }) => {
7-
const ref = useRef();
7+
const ref = useRef(null);
88

99
useEffect(() => {
1010
if (!ref.current) return;

site/src/components/ShowMoreLines.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classes from "./ShowMoreLines.module.css";
44

55
/** add "show more/less" control to long lines of content if needed */
66
const ShowMoreLines = ({ lines = 2, children }) => {
7-
const ref = useRef();
7+
const ref = useRef(null);
88
/** whether to show the control at all */
99
const [show, setShow] = useState(false);
1010
/** whether to show all content */

site/src/components/TextBox.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import classes from "./TextBox.module.css";
55

66
/** text input with label */
77
const TextBox = ({ label, multi, onChange, ...props }) => {
8-
const ref = useRef();
8+
const ref = useRef(null);
99

1010
const Component = multi ? "textarea" : "input";
1111

0 commit comments

Comments
 (0)