Skip to content

Commit a516643

Browse files
committed
Update all frontend libraries
1 parent e3ce8b4 commit a516643

File tree

6 files changed

+1657
-969
lines changed

6 files changed

+1657
-969
lines changed

docker/dev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ENV GOPROXY=$GOPROXY \
2323
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf
2424

2525
# usql, node, fail2ban
26-
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
26+
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
2727
&& apt-get update \
2828
&& apt-get install -y --no-install-recommends nodejs vim dnsutils fail2ban \
2929
&& npm install --___location=global yarn \

frontend/package.json

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,67 +3,67 @@
33
"version": "3.0.0",
44
"private": true,
55
"dependencies": {
6-
"@chakra-ui/react": "^2.5.1",
6+
"@chakra-ui/react": "^2.5.5",
77
"@emotion/react": "^11.10.6",
88
"@emotion/styled": "^11.10.6",
9-
"@testing-library/jest-dom": "5.16.4",
10-
"@testing-library/react": "13.3.0",
9+
"@testing-library/jest-dom": "5.16.5",
10+
"@testing-library/react": "14.0.0",
1111
"@types/humps": "^2.0.2",
12-
"@types/jest": "28.1.5",
13-
"@types/lodash": "4.14.182",
14-
"@types/node": "18.0.4",
15-
"@types/react": "18.0.15",
16-
"@types/react-dom": "18.0.6",
12+
"@types/jest": "29.5.0",
13+
"@types/lodash": "4.14.192",
14+
"@types/node": "18.15.11",
15+
"@types/react": "18.0.34",
16+
"@types/react-dom": "18.0.11",
1717
"@types/react-router-dom": "5.3.3",
1818
"@types/react-syntax-highlighter": "^15.5.6",
19-
"@types/react-table": "^7.7.12",
20-
"@types/styled-components": "5.1.25",
21-
"@typescript-eslint/eslint-plugin": "^5.30.6",
22-
"@typescript-eslint/parser": "^5.30.6",
19+
"@types/react-table": "^7.7.14",
20+
"@types/styled-components": "5.1.26",
21+
"@typescript-eslint/eslint-plugin": "^5.58.0",
22+
"@typescript-eslint/parser": "^5.58.0",
2323
"ajv": "^8.12.0",
2424
"babel-eslint": "^10.1.0",
25-
"chakra-react-select": "^4.5.0",
26-
"classnames": "^2.3.1",
27-
"country-flag-icons": "^1.5.5",
28-
"date-fns": "2.28.0",
29-
"eslint": "^8.19.0",
30-
"eslint-config-prettier": "^8.5.0",
25+
"chakra-react-select": "^4.6.0",
26+
"classnames": "^2.3.2",
27+
"country-flag-icons": "^1.5.7",
28+
"date-fns": "2.29.3",
29+
"eslint": "^8.38.0",
30+
"eslint-config-prettier": "^8.8.0",
3131
"eslint-config-react-app": "^7.0.1",
3232
"eslint-loader": "^4.0.2",
3333
"eslint-plugin-flowtype": "^8.0.3",
34-
"eslint-plugin-import": "^2.26.0",
35-
"eslint-plugin-jsx-a11y": "^6.6.0",
34+
"eslint-plugin-import": "^2.27.5",
35+
"eslint-plugin-jsx-a11y": "^6.7.1",
3636
"eslint-plugin-prettier": "^4.2.1",
37-
"eslint-plugin-react": "^7.30.1",
37+
"eslint-plugin-react": "^7.32.2",
3838
"eslint-plugin-react-hooks": "^4.6.0",
3939
"formik": "^2.2.9",
40-
"framer-motion": "^8.4.2",
40+
"framer-motion": "^10.11.2",
4141
"humps": "^2.0.1",
4242
"jest-date-mock": "1.0.8",
4343
"jest-fetch-mock": "3.0.3",
44-
"jest-junit": "^14.0.0",
45-
"jest-localstorage-mock": "2.4.21",
46-
"jest-runner-eslint": "1.0.1",
44+
"jest-junit": "^15.0.0",
45+
"jest-localstorage-mock": "2.4.26",
46+
"jest-runner-eslint": "2.0.0",
4747
"lodash": "4.17.21",
4848
"moment": "2.29.4",
49-
"node-sass": "^7.0.1",
50-
"prettier": "2.7.1",
51-
"query-string": "7.1.1",
49+
"node-sass": "^8.0.0",
50+
"prettier": "2.8.7",
51+
"query-string": "8.1.0",
5252
"react": "^18.2.0",
5353
"react-async": "10.0.1",
5454
"react-dom": "18.2.0",
55-
"react-focus-lock": "^2.9.1",
56-
"react-icons": "^4.4.0",
57-
"react-intl": "^6.0.5",
58-
"react-markdown": "^8.0.3",
59-
"react-query": "^3.39.1",
60-
"react-router-dom": "^6.3.0",
55+
"react-focus-lock": "^2.9.4",
56+
"react-icons": "^4.8.0",
57+
"react-intl": "^6.3.2",
58+
"react-markdown": "^8.0.6",
59+
"react-query": "^3.39.3",
60+
"react-router-dom": "^6.10.0",
6161
"react-scripts": "5.0.1",
6262
"react-syntax-highlighter": "^15.5.0",
6363
"react-table": "7.8.0",
64-
"rooks": "5.11.8",
64+
"rooks": "7.11.0",
6565
"tmp": "^0.2.1",
66-
"typescript": "^4.9.4"
66+
"typescript": "^5.0.4"
6767
},
6868
"scripts": {
6969
"start": "react-scripts start",
@@ -109,7 +109,7 @@
109109
}
110110
},
111111
"devDependencies": {
112-
"@formatjs/cli": "^5.0.2",
112+
"@formatjs/cli": "^6.0.4",
113113
"@types/country-flag-icons": "^1.2.0"
114114
}
115115
}

frontend/src/api/npm/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { camelizeKeys, decamelizeKeys } from "humps";
22
import AuthStore from "modules/AuthStore";
3-
import * as queryString from "query-string";
3+
import queryString from "query-string";
44

55
const contentTypeHeader = "Content-Type";
66

frontend/src/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22

33
import { ColorModeScript } from "@chakra-ui/react";
4-
import ReactDOM from "react-dom";
4+
import ReactDOM from "react-dom/client";
55

66
import App from "./App";
77
import "./index.scss";
@@ -19,10 +19,12 @@ declare global {
1919
}
2020
}
2121

22-
ReactDOM.render(
23-
<>
22+
const root = ReactDOM.createRoot(
23+
document.getElementById("root") as HTMLElement,
24+
);
25+
root.render(
26+
<React.StrictMode>
2427
<ColorModeScript initialColorMode={customTheme.config.initialColorMode} />
2528
<App />
26-
</>,
27-
document.getElementById("root"),
29+
</React.StrictMode>,
2830
);

0 commit comments

Comments
 (0)