Skip to content

Commit 1114f95

Browse files
authored
chore(package): update dev deps (#1125)
* chore(package): update dev deps * ci(github-actions): drop node v18
1 parent 6683c4d commit 1114f95

File tree

6 files changed

+484
-242
lines changed

6 files changed

+484
-242
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128

129129
strategy:
130130
matrix:
131-
node-version: [18.x, 20.x, 22.x, 24.x]
131+
node-version: [20.x, 22.x, 24.x]
132132

133133
steps:
134134
- uses: actions/checkout@v4

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ The following options are provided by the underlying [http-proxy](https://github
418418
- Object: mapping of domains to new domains, use `"*"` to match all domains.
419419
For example keep one domain unchanged, rewrite one domain and remove other domains:
420420

421-
```json
421+
```jsonc
422422
cookieDomainRewrite: {
423423
"unchanged.domain": "unchanged.domain",
424424
"old.domain": "new.domain",
@@ -432,7 +432,7 @@ The following options are provided by the underlying [http-proxy](https://github
432432
- Object: mapping of paths to new paths, use `"*"` to match all paths.
433433
For example, to keep one path unchanged, rewrite one path and remove other paths:
434434

435-
```json
435+
```jsonc
436436
cookiePathRewrite: {
437437
"/unchanged.path/": "/unchanged.path/",
438438
"/old.path/": "/new.path/",

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,35 +58,35 @@
5858
"devDependencies": {
5959
"@commitlint/cli": "19.8.1",
6060
"@commitlint/config-conventional": "19.8.1",
61-
"@eslint/js": "9.27.0",
61+
"@eslint/js": "9.30.1",
6262
"@trivago/prettier-plugin-sort-imports": "5.2.2",
6363
"@types/debug": "4.1.12",
6464
"@types/eslint": "9.6.1",
65-
"@types/express": "5.0.2",
65+
"@types/express": "5.0.3",
6666
"@types/is-glob": "4.0.4",
6767
"@types/jest": "30.0.0",
6868
"@types/micromatch": "4.0.9",
69-
"@types/node": "22.15.18",
69+
"@types/node": "24.0.10",
7070
"@types/supertest": "6.0.3",
7171
"@types/ws": "8.18.1",
7272
"body-parser": "2.2.0",
73-
"eslint": "9.27.0",
73+
"eslint": "9.30.1",
7474
"express": "5.1.0",
7575
"get-port": "5.1.1",
76-
"globals": "16.1.0",
76+
"globals": "16.3.0",
7777
"husky": "9.1.7",
78-
"jest": "30.0.2",
79-
"lint-staged": "16.0.0",
80-
"mockttp": "3.17.1",
78+
"jest": "30.0.3",
79+
"lint-staged": "16.1.2",
80+
"mockttp": "4.0.1",
8181
"open": "8.4.2",
8282
"patch-package": "8.0.0",
83-
"pkg-pr-new": "0.0.50",
84-
"prettier": "3.5.3",
83+
"pkg-pr-new": "0.0.54",
84+
"prettier": "3.6.2",
8585
"supertest": "7.1.1",
8686
"ts-jest": "29.4.0",
8787
"typescript": "5.8.3",
88-
"typescript-eslint": "8.32.1",
89-
"ws": "8.18.2"
88+
"typescript-eslint": "8.35.1",
89+
"ws": "8.18.3"
9090
},
9191
"dependencies": {
9292
"@types/http-proxy": "^1.17.15",

test/e2e/http-proxy-middleware.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ describe('E2E http-proxy-middleware', () => {
103103

104104
await mockTargetServer.forPost('/api').thenCallback(async (req) => {
105105
expect(await req.body.getText()).toBe('foo=bar&bar=baz');
106-
return { status: 200 };
106+
return { statusCode: 200 };
107107
});
108108
await agent.post('/api').send('foo=bar').send('bar=baz').expect(200);
109109
});
@@ -124,7 +124,7 @@ describe('E2E http-proxy-middleware', () => {
124124

125125
await mockTargetServer.forPost('/api').thenCallback(async (req) => {
126126
expect(await req.body.getJson()).toEqual({ foo: 'bar', bar: 'baz', doubleByte: '文' });
127-
return { status: 200 };
127+
return { statusCode: 200 };
128128
});
129129
await agent.post('/api').send({ foo: 'bar', bar: 'baz', doubleByte: '文' }).expect(200);
130130
});

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"rootDir": "./src",
44
"outDir": "./dist",
5-
"lib": ["es2021"],
5+
"lib": ["es2021", "es2022"],
66
"module": "commonjs",
77
"moduleResolution": "node",
88
"target": "es2021",

0 commit comments

Comments
 (0)