Skip to content

Commit f2b7b72

Browse files
committed
feat: updated dependencies
1 parent fa11234 commit f2b7b72

File tree

7 files changed

+2282
-2323
lines changed

7 files changed

+2282
-2323
lines changed

package.json

+59-58
Original file line numberDiff line numberDiff line change
@@ -24,117 +24,118 @@
2424
"setup": "sh setup.sh"
2525
},
2626
"dependencies": {
27-
"@babel/runtime": "^7.25.7",
27+
"@babel/runtime": "^7.26.0",
2828
"@loadable/component": "^5.16.4",
2929
"@loadable/server": "^5.16.5",
3030
"classnames": "^2.5.1",
31-
"core-js": "^3.38.1",
32-
"dotenv": "^16.4.5",
31+
"core-js": "^3.39.0",
32+
"dotenv": "^16.4.7",
3333
"express": "^5.0.0",
3434
"morgan": "^1.10.0",
35-
"postcss": "^8.4.47",
36-
"react": "^18.3.1",
37-
"react-cookie": "^7.2.1",
38-
"react-dom": "^18.3.1",
35+
"postcss": "^8.4.49",
36+
"react": "^19.0.0",
37+
"react-cookie": "^7.2.2",
38+
"react-dom": "^19.0.0",
3939
"react-helmet-async": "^2.0.5",
40-
"react-router": "^6.27.0",
41-
"react-router-dom": "^6.27.0",
40+
"react-router": "^7.1.1",
41+
"react-router-dom": "^7.1.1",
4242
"reflect-metadata": "^0.2.2",
43-
"universal-cookie-express": "^7.2.1",
43+
"universal-cookie-express": "^7.2.2",
4444
"url-join": "^5.0.0",
45-
"uuid": "^10.0.0",
46-
"winston": "^3.15.0",
47-
"workbox-window": "^7.1.0",
48-
"zod": "^3.23.8"
45+
"uuid": "^11.0.3",
46+
"winston": "^3.17.0",
47+
"workbox-window": "^7.3.0",
48+
"zod": "^3.24.1"
4949
},
5050
"devDependencies": {
51-
"@babel/cli": "^7.25.7",
52-
"@babel/core": "^7.25.8",
53-
"@babel/plugin-proposal-decorators": "^7.25.7",
54-
"@babel/plugin-transform-runtime": "^7.25.7",
55-
"@babel/preset-env": "^7.25.8",
56-
"@babel/preset-react": "^7.25.7",
57-
"@babel/preset-typescript": "^7.25.7",
58-
"@babel/register": "7.25.7",
59-
"@eslint/compat": "^1.2.0",
51+
"@babel/cli": "^7.26.4",
52+
"@babel/core": "^7.26.0",
53+
"@babel/plugin-proposal-decorators": "^7.25.9",
54+
"@babel/plugin-transform-runtime": "^7.25.9",
55+
"@babel/preset-env": "^7.26.0",
56+
"@babel/preset-react": "^7.26.3",
57+
"@babel/preset-typescript": "^7.26.0",
58+
"@babel/register": "7.25.9",
59+
"@eslint/compat": "^1.2.4",
6060
"@loadable/babel-plugin": "5.16.1",
6161
"@loadable/webpack-plugin": "^5.15.2",
6262
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
6363
"@svgr/webpack": "^8.1.0",
6464
"@testing-library/dom": "^10.4.0",
65-
"@testing-library/jest-dom": "^6.5.0",
66-
"@testing-library/react": "^16.0.1",
65+
"@testing-library/jest-dom": "^6.6.3",
66+
"@testing-library/react": "^16.1.0",
6767
"@testing-library/user-event": "^14.5.2",
68-
"@types/classnames": "^2.3.1",
68+
"@types/classnames": "^2.3.4",
6969
"@types/express": "^5.0.0",
70-
"@types/jest": "^29.5.13",
70+
"@types/jest": "^29.5.14",
7171
"@types/loadable__component": "^5.13.9",
7272
"@types/loadable__server": "^5.12.11",
7373
"@types/loadable__webpack-plugin": "^5.7.6",
7474
"@types/mini-css-extract-plugin": "^2.5.1",
7575
"@types/morgan": "^1.9.9",
76-
"@types/node": "^22.7.5",
77-
"@types/react-dom": "^18.3.1",
76+
"@types/node": "^22.10.2",
77+
"@types/react": "^19.0.2",
78+
"@types/react-dom": "^19.0.2",
7879
"@types/react-router-dom": "^5.3.3",
7980
"@types/require-from-string": "^1.2.3",
8081
"@types/serve-favicon": "^2.5.7",
8182
"@types/uuid": "^10.0.0",
8283
"@types/webpack-env": "^1.18.5",
8384
"@types/webpack-node-externals": "^3.0.4",
8485
"@types/webpack-stats-plugin": "^0.3.5",
85-
"@typescript-eslint/eslint-plugin": "^8.8.1",
86-
"@typescript-eslint/parser": "^8.8.1",
86+
"@typescript-eslint/eslint-plugin": "^8.18.2",
87+
"@typescript-eslint/parser": "^8.18.2",
8788
"autoprefixer": "^10.4.20",
8889
"babel-loader": "^9.2.1",
89-
"babel-plugin-react-compiler": "^0.0.0-experimental-ad3b12a-20241011",
90+
"babel-plugin-react-compiler": "^19.0.0-beta-b2e8e9c-20241220",
9091
"copy-webpack-plugin": "^12.0.2",
9192
"cross-env": "^7.0.3",
9293
"css-loader": "7.1.2",
9394
"cssnano": "^7.0.6",
94-
"eslint": "^9.12.0",
95+
"eslint": "^9.17.0",
9596
"eslint-plugin-prettier": "^5.2.1",
96-
"eslint-plugin-react": "^7.37.1",
97-
"eslint-plugin-react-compiler": "^0.0.0-experimental-45ae4c3-20241011",
97+
"eslint-plugin-react": "^7.37.3",
98+
"eslint-plugin-react-compiler": "^19.0.0-beta-b2e8e9c-20241220",
9899
"fork-ts-checker-webpack-plugin": "^9.0.2",
99-
"globals": "^15.11.0",
100+
"globals": "^15.14.0",
100101
"html-loader": "^5.1.0",
101-
"html-webpack-plugin": "^5.6.0",
102-
"husky": "^9.1.6",
102+
"html-webpack-plugin": "^5.6.3",
103+
"husky": "^9.1.7",
103104
"identity-obj-proxy": "^3.0.0",
104105
"jest": "^29.7.0",
105106
"jest-environment-jsdom": "^29.7.0",
106-
"lint-staged": "^15.2.10",
107-
"mini-css-extract-plugin": "^2.9.1",
108-
"nodemon": "^3.1.7",
107+
"lint-staged": "^15.2.11",
108+
"mini-css-extract-plugin": "^2.9.2",
109+
"nodemon": "^3.1.9",
109110
"npm-run-all": "^4.1.5",
110111
"postcss-loader": "^8.1.1",
111112
"postcss-scss": "^4.0.9",
112-
"prettier": "^3.3.3",
113-
"react-compiler-runtime": "^0.0.0-experimental-8d8e73f-20241011",
114-
"react-refresh": "^0.14.2",
113+
"prettier": "^3.4.2",
114+
"react-compiler-runtime": "^19.0.0-beta-b2e8e9c-20241220",
115+
"react-refresh": "^0.16.0",
115116
"require-from-string": "^2.0.2",
116117
"rimraf": "^6.0.1",
117-
"sass": "^1.79.5",
118-
"sass-loader": "^16.0.2",
118+
"sass": "^1.83.0",
119+
"sass-loader": "^16.0.4",
119120
"serve-favicon": "^2.5.0",
120-
"stylelint": "^16.10.0",
121-
"stylelint-config-standard-scss": "^13.1.0",
121+
"stylelint": "^16.12.0",
122+
"stylelint-config-standard-scss": "^14.0.0",
122123
"stylelint-order": "^6.0.4",
123124
"ts-jest": "^29.2.5",
124125
"ts-node": "^10.9.2",
125-
"tsconfig-paths-webpack-plugin": "^4.1.0",
126-
"typescript": "^5.6.3",
127-
"webpack": "^5.95.0",
128-
"webpack-cli": "^5.1.4",
126+
"tsconfig-paths-webpack-plugin": "^4.2.0",
127+
"typescript": "^5.7.2",
128+
"webpack": "^5.97.1",
129+
"webpack-cli": "^6.0.1",
129130
"webpack-dev-middleware": "^7.4.2",
130-
"webpack-dev-server": "^5.1.0",
131+
"webpack-dev-server": "^5.2.0",
131132
"webpack-hot-middleware": "2.26.1",
132133
"webpack-node-externals": "^3.0.0",
133134
"webpack-stats-plugin": "^1.1.3",
134-
"workbox-precaching": "^7.1.0",
135-
"workbox-recipes": "^7.1.0",
136-
"workbox-routing": "^7.1.0",
137-
"workbox-strategies": "^7.1.0",
138-
"workbox-webpack-plugin": "^7.1.0"
135+
"workbox-precaching": "^7.3.0",
136+
"workbox-recipes": "^7.3.0",
137+
"workbox-routing": "^7.3.0",
138+
"workbox-strategies": "^7.3.0",
139+
"workbox-webpack-plugin": "^7.3.0"
139140
}
140141
}

src/client/api/posts.api.ts

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
1-
export type PostsResponse = Array<{ id: number; text: string }>
1+
export type PostsResponse = Array<{ id: number; title: string }>
22

33
export function fetchPosts(): Promise<PostsResponse> {
4-
return new Promise(resolve => {
5-
setTimeout(() => {
6-
resolve([
7-
{
8-
id: 0,
9-
text: 'I get by with a little help from my friends'
10-
},
11-
{
12-
id: 1,
13-
text: "I'd like to be under the sea in an octupus's garden"
14-
},
15-
{
16-
id: 2,
17-
text: 'You got that sand all over your feet'
18-
}
19-
])
20-
}, 1100)
21-
})
4+
return fetch('https://jsonplaceholder.typicode.com/todos').then(res => res.json())
225
}

src/client/components/home/index.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Suspense } from 'react'
21
import { logger, getENV } from 'src/common'
32
import { CookieDemo } from './cookie-demo'
43
import { Posts } from './posts'
@@ -16,9 +15,7 @@ export const Home = () => {
1615
<hr />
1716
<CookieDemo />
1817
<hr />
19-
<Suspense fallback={<p>fetching posts...</p>}>
20-
<Posts />
21-
</Suspense>
18+
<Posts />
2219
</div>
2320
)
2421
}

src/client/components/home/posts/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const Posts = () => {
99
<b>Data fetching demo</b>
1010
<ul>
1111
{posts.map(post => (
12-
<li key={post.id}>{post.text}</li>
12+
<li key={post.id}>{post.title}</li>
1313
))}
1414
</ul>
1515
</div>
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import 'mixins';
1+
@use 'mixins';
22

33
.wrapper {
4-
background: $background;
4+
background: mixins.$background;
55
}

src/server/middleware/render/index.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { ChunkExtractor } from '@loadable/server'
22
import { renderToString } from 'react-dom/server'
33
import type { HelmetServerState } from 'react-helmet-async'
44
import type { NextFunction, Request, Response } from 'express'
5-
import {
6-
createStaticRouter,
7-
StaticRouterProvider,
8-
createStaticHandler
9-
} from 'react-router-dom/server'
5+
import { createStaticRouter, StaticRouterProvider, createStaticHandler } from 'react-router-dom'
106
import { getApp, getHtml, getStats } from './render.util'
117
import { createFetchRequest } from 'server/utils'
128
import { basename, logger } from 'src/common'

0 commit comments

Comments
 (0)