Skip to content

Commit f88067d

Browse files
authoredMay 17, 2022
chore: update deps and ci (#1260)
1 parent 7186318 commit f88067d

File tree

4 files changed

+1870
-2733
lines changed

4 files changed

+1870
-2733
lines changed
 

‎.github/workflows/nodejs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
strategy:
6060
matrix:
6161
os: [ubuntu-latest, windows-latest, macos-latest]
62-
node-version: [12.x, 14.x, 16.x, 17.x]
62+
node-version: [12.x, 14.x, 16.x, 18.x]
6363
webpack-version: [latest]
6464
include:
6565
- node-version: 16.x

‎package-lock.json

+1,857-2,719
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@
5757
"@babel/cli": "^7.16.7",
5858
"@babel/core": "^7.16.7",
5959
"@babel/preset-env": "^7.16.7",
60-
"@commitlint/cli": "^16.1.0",
61-
"@commitlint/config-conventional": "^16.0.0",
60+
"@commitlint/cli": "^17.0.0",
61+
"@commitlint/config-conventional": "^17.0.0",
6262
"@types/connect": "^3.4.35",
6363
"@types/express": "^4.17.13",
6464
"@types/mime-types": "^2.1.1",
6565
"@types/node": "^12.20.43",
6666
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
67-
"babel-jest": "^27.4.6",
67+
"babel-jest": "^28.1.0",
6868
"chokidar": "^3.5.1",
6969
"connect": "^3.7.0",
7070
"cross-env": "^7.0.3",
@@ -78,7 +78,7 @@
7878
"express": "^4.17.1",
7979
"file-loader": "^6.2.0",
8080
"husky": "^7.0.0",
81-
"jest": "^27.4.7",
81+
"jest": "^28.1.0",
8282
"lint-staged": "^12.1.7",
8383
"npm-run-all": "^4.1.5",
8484
"prettier": "^2.5.0",

‎types/index.d.ts

+8-9
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ type Options<
165165
| undefined;
166166
writeToDisk?: boolean | ((targetPath: string) => boolean) | undefined;
167167
methods?: string | undefined;
168-
headers?: Headers<Request_1, Response_1>;
168+
headers?: Headers<Request, Response>;
169169
publicPath?: NonNullable<Configuration["output"]>["publicPath"];
170170
stats?: Configuration["stats"];
171171
serverSideRender?: boolean | undefined;
@@ -175,8 +175,7 @@ type Options<
175175
type API<
176176
Request_1 extends import("http").IncomingMessage,
177177
Response_1 extends ServerResponse
178-
> = Middleware<Request_1, Response_1> &
179-
AdditionalMethods<Request_1, Response_1>;
178+
> = Middleware<Request, Response> & AdditionalMethods<Request, Response>;
180179
type Schema = import("schema-utils/declarations/validate").Schema;
181180
type Configuration = import("webpack").Configuration;
182181
type Stats = import("webpack").Stats;
@@ -216,7 +215,7 @@ type Context<
216215
state: boolean;
217216
stats: Stats | MultiStats | undefined;
218217
callbacks: Callback[];
219-
options: Options<Request_1, Response_1>;
218+
options: Options<Request, Response>;
220219
compiler: Compiler | MultiCompiler;
221220
watching: Watching | MultiWatching;
222221
logger: Logger;
@@ -232,15 +231,15 @@ type Headers<
232231
value: number | string;
233232
}[]
234233
| ((
235-
req: Request_1,
236-
res: Response_1,
237-
context: Context<Request_1, Response_1>
234+
req: Request,
235+
res: Response,
236+
context: Context<Request, Response>
238237
) => void | undefined | Record<string, string | number>)
239238
| undefined;
240239
type Middleware<
241240
Request_1 extends import("http").IncomingMessage,
242241
Response_1 extends ServerResponse
243-
> = (req: Request_1, res: Response_1, next: NextFunction) => Promise<void>;
242+
> = (req: Request, res: Response, next: NextFunction) => Promise<void>;
244243
type GetFilenameFromUrl = (url: string) => string | undefined;
245244
type WaitUntilValid = (callback: Callback) => any;
246245
type Invalidate = (callback: Callback) => any;
@@ -253,5 +252,5 @@ type AdditionalMethods<
253252
waitUntilValid: WaitUntilValid;
254253
invalidate: Invalidate;
255254
close: Close;
256-
context: Context<Request_1, Response_1>;
255+
context: Context<Request, Response>;
257256
};

0 commit comments

Comments
 (0)
Please sign in to comment.