Skip to content

Commit acafa30

Browse files
committed
upgrade dependencies
1 parent 0863373 commit acafa30

9 files changed

+3502
-2241
lines changed

package-lock.json

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

package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,39 +35,39 @@
3535
"react-dom": "^18.2.0"
3636
},
3737
"devDependencies": {
38-
"@types/jest": "^29.4.0",
39-
"@types/loader-utils": "^2.0.3",
40-
"@types/react": "^18.0.28",
41-
"@types/react-dom": "^18.0.11",
42-
"@types/webpack-bundle-analyzer": "^4.6.0",
43-
"@typescript-eslint/eslint-plugin": "^5.52.0",
44-
"@typescript-eslint/parser": "^5.52.0",
38+
"@types/jest": "^29.5.8",
39+
"@types/loader-utils": "^2.0.6",
40+
"@types/react": "^18.2.37",
41+
"@types/react-dom": "^18.2.15",
42+
"@types/webpack-bundle-analyzer": "^4.6.3",
43+
"@typescript-eslint/eslint-plugin": "^6.10.0",
44+
"@typescript-eslint/parser": "^6.10.0",
4545
"clean-webpack-plugin": "^4.0.0",
46-
"css-loader": "^6.7.3",
47-
"css-minimizer-webpack-plugin": "^4.2.2",
48-
"eslint": "^8.34.0",
49-
"eslint-plugin-react": "^7.32.2",
46+
"css-loader": "^6.8.1",
47+
"css-minimizer-webpack-plugin": "^5.0.1",
48+
"eslint": "^8.53.0",
49+
"eslint-plugin-react": "^7.33.2",
5050
"file-loader": "^6.2.0",
51-
"html-webpack-plugin": "^5.5.0",
51+
"html-webpack-plugin": "^5.5.3",
5252
"identity-obj-proxy": "^3.0.0",
53-
"jest": "^29.4.3",
54-
"mini-css-extract-plugin": "^2.7.2",
55-
"postcss": "^8.4.21",
56-
"postcss-loader": "^7.0.2",
53+
"jest": "^29.7.0",
54+
"mini-css-extract-plugin": "^2.7.6",
55+
"postcss": "^8.4.31",
56+
"postcss-loader": "^7.3.3",
5757
"postcss-normalize": "^10.0.1",
58-
"postcss-preset-env": "^8.0.1",
59-
"prettier": "^2.8.4",
58+
"postcss-preset-env": "^9.3.0",
59+
"prettier": "^3.0.3",
6060
"serve-static": "^1.15.0",
61-
"style-loader": "^3.3.1",
62-
"ts-jest": "^29.0.5",
63-
"ts-loader": "^9.4.2",
61+
"style-loader": "^3.3.3",
62+
"ts-jest": "^29.1.1",
63+
"ts-loader": "^9.5.0",
6464
"ts-node": "^10.9.1",
65-
"typescript": "^4.9.5",
65+
"typescript": "^5.2.2",
6666
"url-loader": "^4.1.1",
67-
"webpack": "^5.75.0",
68-
"webpack-bundle-analyzer": "^4.8.0",
69-
"webpack-dev-server": "^4.11.1",
70-
"webpack-merge": "^5.8.0",
71-
"yargs": "^17.6.2"
67+
"webpack": "^5.89.0",
68+
"webpack-bundle-analyzer": "^4.9.1",
69+
"webpack-dev-server": "^4.15.1",
70+
"webpack-merge": "^5.10.0",
71+
"yargs": "^17.7.2"
7272
}
7373
}

scripts/css-module-classname-minifier.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ class ClassnameStore {
5858
this.loaded.add(name);
5959
} else {
6060
console.warn(
61-
`Found duplicated class names from {this.storeFileName}, please regenerate by removing ${storeFileName}.`
61+
`Found duplicated class names from {this.storeFileName}, please regenerate by removing ${storeFileName}.`,
6262
);
6363
}
64-
}
64+
},
6565
);
6666
} else {
6767
this.generating = true;
@@ -83,7 +83,7 @@ class ClassnameStore {
8383
this.sessions -= 1;
8484
if (this.sessions === 0) {
8585
const deleted = Array.from(this.loaded).filter(
86-
(name) => !this.visited.has(name)
86+
(name) => !this.visited.has(name),
8787
);
8888
if (this.generating) {
8989
console.log(`saving all class name into ${storeFileName}.`);
@@ -92,7 +92,7 @@ class ClassnameStore {
9292
"\x1b[1m",
9393
"\x1b[33m",
9494
`${deleted.length} class names including "${deleted[0]}" have been removed from the list, you can regenerate the list by removing ${storeFileName}.`,
95-
"\x1b[0m"
95+
"\x1b[0m",
9696
);
9797
}
9898
fs.writeFileSync(storeFileName, JSON.stringify(this.classnames, null, 2));
@@ -106,7 +106,7 @@ function getReadableCSSModuleLocalIdent(
106106
context: unknown,
107107
localIdentName: unknown,
108108
localName: string,
109-
options: unknown
109+
options: unknown,
110110
) {
111111
return loaderUtils
112112
.interpolateName(context, "[path][name]__" + localName, options)
@@ -117,17 +117,17 @@ function getMinimalCSSModuleLocalIdent(
117117
context: unknown,
118118
localIdentName: unknown,
119119
localName: string,
120-
options: unknown
120+
options: unknown,
121121
) {
122122
if (store == null) {
123123
throw new Error(
124-
`CssModuleClassNameMinifierPlugin is not initialized, make sure to include the plugin in your webpack configuration.`
124+
`CssModuleClassNameMinifierPlugin is not initialized, make sure to include the plugin in your webpack configuration.`,
125125
);
126126
}
127127
const codeName = loaderUtils.interpolateName(
128128
context,
129129
"[path][name]__" + localName,
130-
options
130+
options,
131131
);
132132
return store.getName(codeName);
133133
}
@@ -165,7 +165,7 @@ export class CssModuleClassNameMinifierPlugin {
165165
context: unknown,
166166
localIdentName: unknown,
167167
localName: string,
168-
options: unknown
168+
options: unknown,
169169
) {
170170
return getLocalIdent(context, localIdentName, localName, options);
171171
}

scripts/webpack.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function createBaseConfig({
9898
? [
9999
new webpack.NormalModuleReplacementPlugin(
100100
/configurations\/configuration\.ts/gi,
101-
"./configuration.dev.ts"
101+
"./configuration.dev.ts",
102102
),
103103
]
104104
: []),
@@ -115,7 +115,7 @@ function createBaseConfig({
115115
}
116116

117117
export function createAppConfig(
118-
options: BuildConfiguration
118+
options: BuildConfiguration,
119119
): webpack.Configuration {
120120
const { mode, dirname, devServer } = options;
121121
const devMode = mode !== "production";
@@ -158,7 +158,7 @@ export function createAppConfig(
158158
}
159159

160160
export function createPrerenderConfig(
161-
options: BuildConfiguration
161+
options: BuildConfiguration,
162162
): webpack.Configuration {
163163
const { dirname } = options;
164164

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<meta charset="utf-8" />

src/index.server.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<meta charset="utf-8" />

src/prerender.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function renderToString(content: React.ReactNode) {
5959
res(Buffer.concat(chunks).toString());
6060
callback();
6161
},
62-
})
62+
}),
6363
);
6464
});
6565
}

src/styles.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ body {
99
html {
1010
color: rgba(0, 0, 0, 0.8);
1111
font-size: calc(0.5vw + 12.2px);
12-
font-family: OpenSans, Roboto, Helvetica Neue Light, Helvetica Neue, Helvetica,
13-
Arial, Lucida Grande, sans-serif;
12+
font-family:
13+
OpenSans,
14+
Roboto,
15+
Helvetica Neue Light,
16+
Helvetica Neue,
17+
Helvetica,
18+
Arial,
19+
Lucida Grande,
20+
sans-serif;
1421
overflow-y: scroll;
1522
}
1623

webpack.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ function runWebpack(
2727
config: webpack.Configuration | webpack.Configuration[],
2828
callback?: (
2929
error: Error | undefined,
30-
stats: webpack.Stats | webpack.MultiStats | undefined
31-
) => void
30+
stats: webpack.Stats | webpack.MultiStats | undefined,
31+
) => void,
3232
) {
3333
if (Array.isArray(config)) {
3434
return webpack(config, callback);
@@ -40,7 +40,7 @@ function serve(
4040
port: number,
4141
entry: string,
4242
api: string | undefined,
43-
bind: boolean
43+
bind: boolean,
4444
) {
4545
const buildOptions = {
4646
dirname: __dirname,
@@ -103,7 +103,7 @@ function serve(
103103

104104
const server = new WebpackDevServer(
105105
devServerConfig,
106-
runWebpack(webpackConfig)
106+
runWebpack(webpackConfig),
107107
);
108108
server.startCallback(() => {
109109
console.log(`Starting server on http://localhost:${port}`);
@@ -140,7 +140,7 @@ function build(mode: "development" | "production", entry: string) {
140140
chunks: false,
141141
chunkModules: false,
142142
assets: false,
143-
}) + "\n"
143+
}) + "\n",
144144
);
145145
}
146146
});
@@ -179,15 +179,15 @@ yargs
179179
.check(({ port }) => {
180180
if (isNaN(Number(port))) {
181181
throw Error(
182-
`Error: port number needs to be a number, received "${port}"`
182+
`Error: port number needs to be a number, received "${port}"`,
183183
);
184184
}
185185
return true;
186186
});
187187
},
188188
function ({ port, entry, api, bind }) {
189189
serve(port, entry, api, bind);
190-
}
190+
},
191191
)
192192
.command(
193193
"build [mode] [entry]",
@@ -220,7 +220,7 @@ yargs
220220
},
221221
function ({ mode, entry }) {
222222
build(mode, entry);
223-
}
223+
},
224224
)
225225
.demandCommand(1, "")
226226
.help().argv;

0 commit comments

Comments
 (0)