Skip to content

Commit 00a3608

Browse files
committed
feat: updated dependencies
1 parent bdce6c9 commit 00a3608

File tree

8 files changed

+2296
-2333
lines changed

8 files changed

+2296
-2333
lines changed

package.json

+59-59
Original file line numberDiff line numberDiff line change
@@ -24,110 +24,110 @@
2424
"setup": "sh setup.sh"
2525
},
2626
"dependencies": {
27-
"@babel/runtime": "7.25.7",
27+
"@babel/runtime": "7.26.0",
2828
"classnames": "^2.5.1",
29-
"core-js": "^3.38.1",
30-
"dotenv": "^16.4.5",
29+
"core-js": "^3.39.0",
30+
"dotenv": "^16.4.7",
3131
"express": "^5.0.0",
3232
"morgan": "^1.10.0",
33-
"postcss": "^8.4.47",
34-
"react": "19.0.0-rc-fb9a90fa48-20240614",
35-
"react-cookie": "^7.2.1",
36-
"react-dom": "19.0.0-rc-fb9a90fa48-20240614",
37-
"react-error-boundary": "^4.0.13",
38-
"react-router": "^6.27.0",
39-
"react-router-dom": "^6.27.0",
33+
"postcss": "^8.4.49",
34+
"react": "19.0.0",
35+
"react-cookie": "^7.2.2",
36+
"react-dom": "19.0.0",
37+
"react-error-boundary": "^5.0.0",
38+
"react-router": "^7.1.1",
39+
"react-router-dom": "^7.1.1",
4040
"reflect-metadata": "^0.2.2",
4141
"tiny-invariant": "^1.3.3",
42-
"universal-cookie-express": "^7.2.1",
42+
"universal-cookie-express": "^7.2.2",
4343
"url-join": "^5.0.0",
44-
"uuid": "^10.0.0",
45-
"winston": "^3.15.0",
46-
"workbox-window": "^7.1.0",
47-
"yup": "^1.4.0"
44+
"uuid": "^11.0.3",
45+
"winston": "^3.17.0",
46+
"workbox-window": "^7.3.0",
47+
"yup": "^1.6.1"
4848
},
4949
"devDependencies": {
50-
"@babel/cli": "7.25.7",
51-
"@babel/core": "7.25.8",
52-
"@babel/plugin-proposal-decorators": "^7.25.7",
53-
"@babel/plugin-transform-runtime": "^7.25.7",
54-
"@babel/preset-env": "7.25.8",
55-
"@babel/preset-react": "^7.25.7",
56-
"@babel/preset-typescript": "^7.25.7",
57-
"@babel/register": "7.25.7",
58-
"@eslint/compat": "^1.2.0",
50+
"@babel/cli": "7.26.4",
51+
"@babel/core": "7.26.0",
52+
"@babel/plugin-proposal-decorators": "^7.25.9",
53+
"@babel/plugin-transform-runtime": "^7.25.9",
54+
"@babel/preset-env": "7.26.0",
55+
"@babel/preset-react": "^7.26.3",
56+
"@babel/preset-typescript": "^7.26.0",
57+
"@babel/register": "7.25.9",
58+
"@eslint/compat": "^1.2.4",
5959
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
6060
"@svgr/webpack": "^8.1.0",
6161
"@testing-library/dom": "^10.4.0",
62-
"@testing-library/jest-dom": "^6.5.0",
63-
"@testing-library/react": "^16.0.1",
62+
"@testing-library/jest-dom": "^6.6.3",
63+
"@testing-library/react": "^16.1.0",
6464
"@testing-library/user-event": "^14.5.2",
65-
"@types/classnames": "^2.3.1",
65+
"@types/classnames": "^2.3.4",
6666
"@types/express": "^5.0.0",
67-
"@types/jest": "^29.5.13",
67+
"@types/jest": "^29.5.14",
6868
"@types/mini-css-extract-plugin": "^2.5.1",
6969
"@types/morgan": "^1.9.9",
70-
"@types/node": "^22.7.5",
71-
"@types/react": "npm:types-react@rc",
72-
"@types/react-dom": "npm:types-react-dom@rc",
70+
"@types/node": "^22.10.2",
71+
"@types/react": "19.0.2",
72+
"@types/react-dom": "19.0.2",
7373
"@types/require-from-string": "^1.2.3",
7474
"@types/serve-favicon": "^2.5.7",
7575
"@types/uuid": "^10.0.0",
7676
"@types/webpack-env": "^1.18.5",
7777
"@types/webpack-node-externals": "^3.0.4",
7878
"@types/webpack-stats-plugin": "^0.3.5",
79-
"@typescript-eslint/eslint-plugin": "^8.8.1",
80-
"@typescript-eslint/parser": "^8.8.1",
79+
"@typescript-eslint/eslint-plugin": "^8.18.2",
80+
"@typescript-eslint/parser": "^8.18.2",
8181
"autoprefixer": "^10.4.20",
8282
"babel-loader": "^9.2.1",
83-
"babel-plugin-react-compiler": "^0.0.0-experimental-ad3b12a-20241011",
83+
"babel-plugin-react-compiler": "^19.0.0-beta-b2e8e9c-20241220",
8484
"copy-webpack-plugin": "^12.0.2",
8585
"cross-env": "^7.0.3",
8686
"css-loader": "7.1.2",
8787
"cssnano": "^7.0.6",
88-
"eslint": "^9.12.0",
88+
"eslint": "^9.17.0",
8989
"eslint-plugin-prettier": "^5.2.1",
90-
"eslint-plugin-react": "^7.37.1",
91-
"eslint-plugin-react-compiler": "^0.0.0-experimental-45ae4c3-20241011",
90+
"eslint-plugin-react": "^7.37.3",
91+
"eslint-plugin-react-compiler": "^19.0.0-beta-b2e8e9c-20241220",
9292
"fork-ts-checker-webpack-plugin": "^9.0.2",
93-
"globals": "^15.11.0",
93+
"globals": "^15.14.0",
9494
"html-loader": "^5.1.0",
95-
"html-webpack-plugin": "^5.6.0",
96-
"husky": "^9.1.6",
95+
"html-webpack-plugin": "^5.6.3",
96+
"husky": "^9.1.7",
9797
"identity-obj-proxy": "^3.0.0",
9898
"jest": "^29.7.0",
9999
"jest-environment-jsdom": "^29.7.0",
100-
"lint-staged": "^15.2.10",
101-
"mini-css-extract-plugin": "^2.9.1",
102-
"nodemon": "^3.1.7",
100+
"lint-staged": "^15.2.11",
101+
"mini-css-extract-plugin": "^2.9.2",
102+
"nodemon": "^3.1.9",
103103
"npm-run-all": "^4.1.5",
104104
"postcss-loader": "^8.1.1",
105105
"postcss-scss": "^4.0.9",
106-
"prettier": "^3.3.3",
107-
"react-refresh": "^0.14.2",
106+
"prettier": "^3.4.2",
107+
"react-refresh": "^0.16.0",
108108
"require-from-string": "^2.0.2",
109109
"rimraf": "^6.0.1",
110-
"sass": "^1.79.5",
111-
"sass-loader": "^16.0.2",
110+
"sass": "^1.83.0",
111+
"sass-loader": "^16.0.4",
112112
"serve-favicon": "^2.5.0",
113-
"stylelint": "^16.10.0",
114-
"stylelint-config-standard-scss": "^13.1.0",
113+
"stylelint": "^16.12.0",
114+
"stylelint-config-standard-scss": "^14.0.0",
115115
"stylelint-order": "^6.0.4",
116116
"ts-jest": "^29.2.5",
117117
"ts-node": "^10.9.2",
118-
"tsconfig-paths-webpack-plugin": "^4.1.0",
119-
"typescript": "^5.6.3",
120-
"webpack": "^5.95.0",
121-
"webpack-cli": "^5.1.4",
118+
"tsconfig-paths-webpack-plugin": "^4.2.0",
119+
"typescript": "^5.7.2",
120+
"webpack": "^5.97.1",
121+
"webpack-cli": "^6.0.1",
122122
"webpack-dev-middleware": "^7.4.2",
123-
"webpack-dev-server": "^5.1.0",
123+
"webpack-dev-server": "^5.2.0",
124124
"webpack-hot-middleware": "2.26.1",
125125
"webpack-node-externals": "^3.0.0",
126126
"webpack-stats-plugin": "^1.1.3",
127-
"workbox-precaching": "^7.1.0",
128-
"workbox-recipes": "^7.1.0",
129-
"workbox-routing": "^7.1.0",
130-
"workbox-strategies": "^7.1.0",
131-
"workbox-webpack-plugin": "^7.1.0"
127+
"workbox-precaching": "^7.3.0",
128+
"workbox-recipes": "^7.3.0",
129+
"workbox-routing": "^7.3.0",
130+
"workbox-strategies": "^7.3.0",
131+
"workbox-webpack-plugin": "^7.3.0"
132132
}
133133
}

src/client/api/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './todos.api'

src/client/api/todos.api.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { cache } from 'react'
2+
3+
export type PostsResponse = Array<{ id: string; title: string }>
4+
5+
export const fetchPosts = cache(async () => {
6+
const res = await fetch('https://jsonplaceholder.typicode.com/todos')
7+
return (await res.json()) as PostsResponse
8+
})

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

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
import { use, useState } from 'react'
2-
import { fetchPosts } from './posts.api'
1+
import { use } from 'react'
2+
import { fetchPosts } from 'client/api'
3+
4+
const data = fetchPosts()
35

46
export const Posts = () => {
5-
const [promise] = useState(() => fetchPosts())
6-
const posts = use(promise)
7+
const posts = use(data)
78

89
return (
910
<div>
1011
<b>Data fetching demo</b>
1112
<ul>
1213
{posts.map(post => (
13-
<li key={post.id}>{post.text}</li>
14+
<li key={post.id}>{post.title}</li>
1415
))}
1516
</ul>
1617
</div>

src/client/components/home/posts/posts.api.ts

-20
This file was deleted.
+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-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { StaticRouter } from 'react-router-dom'
12
import { renderToPipeableStream } from 'react-dom/server'
23
import type { NextFunction, Request, Response } from 'express'
3-
import { StaticRouter } from 'react-router-dom/server'
44
import { logger, setEnvVars, basename } from 'src/common'
55
import { ChunkExtractor } from 'server/utils'
66
import { getApp, getStats } from './render.util'

0 commit comments

Comments
 (0)