Skip to content

Commit e27265f

Browse files
authored
Merge branch 'master' into fix/fixRequestBody
2 parents a555222 + 788a1fd commit e27265f

File tree

4 files changed

+267
-242
lines changed

4 files changed

+267
-242
lines changed

.github/workflows/ci.yml

+30
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,36 @@ name: CI
33
on: ['push', 'pull_request']
44

55
jobs:
6+
dependencies:
7+
name: Dependencies
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Use Node.js 22.x
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 22.x
16+
17+
- uses: actions/cache@v4
18+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
19+
with:
20+
path: '**/node_modules'
21+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-yarn-
24+
25+
- name: yarn install
26+
if: steps.yarn-cache.outputs.cache-hit != 'true' # Over here!
27+
run: yarn install --frozen-lockfile --ignore-scripts
28+
29+
env:
30+
CI: true
31+
632
build:
733
name: Build
834
runs-on: ubuntu-latest
35+
needs: [dependencies]
936

1037
steps:
1138
- uses: actions/checkout@v4
@@ -35,6 +62,7 @@ jobs:
3562
lint:
3663
name: Lint
3764
runs-on: ubuntu-latest
65+
needs: [dependencies]
3866

3967
steps:
4068
- uses: actions/checkout@v4
@@ -64,6 +92,7 @@ jobs:
6492
test:
6593
name: Test
6694
runs-on: ubuntu-latest
95+
needs: [dependencies]
6796

6897
strategy:
6998
matrix:
@@ -97,6 +126,7 @@ jobs:
97126
coverage:
98127
name: Coverage
99128
runs-on: ubuntu-latest
129+
needs: [dependencies]
100130

101131
steps:
102132
- uses: actions/checkout@v4

package.json

+14-15
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,36 @@
5656
},
5757
"homepage": "https://github.com/chimurai/http-proxy-middleware#readme",
5858
"devDependencies": {
59-
"@commitlint/cli": "19.6.0",
60-
"@commitlint/config-conventional": "19.6.0",
61-
"@eslint/js": "9.16.0",
59+
"@commitlint/cli": "19.7.1",
60+
"@commitlint/config-conventional": "19.7.1",
61+
"@eslint/js": "9.21.0",
6262
"@types/debug": "4.1.12",
6363
"@types/eslint": "9.6.1",
64-
"@types/eslint__js": "8.42.3",
6564
"@types/express": "4.17.21",
6665
"@types/is-glob": "4.0.4",
6766
"@types/jest": "29.5.14",
6867
"@types/micromatch": "4.0.9",
6968
"@types/node": "22.10.2",
7069
"@types/supertest": "6.0.2",
71-
"@types/ws": "8.5.13",
70+
"@types/ws": "8.5.14",
7271
"body-parser": "1.20.3",
73-
"eslint": "9.16.0",
74-
"eslint-config-prettier": "9.1.0",
75-
"eslint-plugin-prettier": "5.2.1",
72+
"eslint": "9.21.0",
73+
"eslint-config-prettier": "10.0.2",
74+
"eslint-plugin-prettier": "5.2.3",
7675
"express": "4.21.2",
7776
"get-port": "5.1.1",
78-
"globals": "15.13.0",
77+
"globals": "16.0.0",
7978
"husky": "9.1.7",
8079
"jest": "29.7.0",
81-
"lint-staged": "15.2.11",
82-
"mockttp": "3.15.5",
80+
"lint-staged": "15.4.3",
81+
"mockttp": "3.16.0",
8382
"open": "8.4.2",
84-
"prettier": "3.4.2",
83+
"prettier": "3.5.2",
8584
"supertest": "7.0.0",
86-
"ts-jest": "29.2.5",
85+
"ts-jest": "29.2.6",
8786
"typescript": "5.7.2",
88-
"typescript-eslint": "8.18.0",
89-
"ws": "8.18.0"
87+
"typescript-eslint": "8.25.0",
88+
"ws": "8.18.1"
9089
},
9190
"dependencies": {
9291
"@types/http-proxy": "^1.17.15",

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export * from './factory';
22

33
export * from './handlers';
44

5-
export type { Filter, Options, RequestHandler } from './types';
5+
export type { Plugin, Filter, Options, RequestHandler } from './types';
66

77
/**
88
* Default plugins

0 commit comments

Comments
 (0)