Skip to content

Commit ef7413b

Browse files
authored
feat: drop support for node@18, update dependencies (#73)
1 parent 8c9b93b commit ef7413b

File tree

12 files changed

+3596
-2962
lines changed

12 files changed

+3596
-2962
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
access_token: ${{ secrets.GITHUB_TOKEN }}
1717

1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

2121
- name: Set up Node.js
22-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2323
with:
24-
node-version: 18
24+
node-version: 20
2525

2626
- name: Set up pnpm
2727
uses: pnpm/action-setup@v4
2828
with:
29-
version: 8.15.6
29+
version: 9.15.0
3030

3131
- name: Install dependencies
3232
run: pnpm install

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ jobs:
1010
runs-on: macos-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
token: ${{ secrets.GH_ADMIN_TOKEN }}
1717

1818
- name: Set up Node.js
19-
uses: actions/setup-node@v3
19+
uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
always-auth: true
2323
registry-url: https://registry.npmjs.org
2424

2525
- name: Set up pnpm
2626
uses: pnpm/action-setup@v4
2727
with:
28-
version: 8.15.6
28+
version: 9.15.0
2929

3030
- name: Set up Git
3131
run: |

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.19.0
1+
v20

package.json

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
},
1717
"scripts": {
1818
"start": "pnpm build --watch",
19-
"har:fixture": "ts-node ./test/traffic/fixtures/requests/command.ts",
19+
"har:fixture": "tsx ./test/traffic/fixtures/requests/command.ts",
2020
"prepare": "pnpm simple-git-hooks init",
21-
"prebuild": "pnpm lint",
2221
"build": "tsc -p ./tsconfig.build.json",
2322
"test": "pnpm test:node && pnpm test:browser",
2423
"test:node": "vitest --project node",
@@ -30,6 +29,7 @@
3029
"access": "public"
3130
},
3231
"files": [
32+
"src",
3333
"lib"
3434
],
3535
"repository": "[email protected]:mswjs/source.git",
@@ -44,45 +44,44 @@
4444
"commit-msg": "pnpm commitlint --edit $1"
4545
},
4646
"engines": {
47-
"node": ">=18"
47+
"node": ">=20"
4848
},
49-
"packageManager": "pnpm@8.15.6",
49+
"packageManager": "pnpm@9.15.0",
5050
"peerDependencies": {
51-
"msw": "^2.3.0"
51+
"msw": "^2.10.0"
5252
},
5353
"devDependencies": {
5454
"@commitlint/cli": "^17.6.5",
5555
"@commitlint/config-conventional": "^17.6.5",
56-
"@open-draft/test-server": "^0.5.1",
56+
"@open-draft/test-server": "^0.7.2",
5757
"@ossjs/release": "^0.8.1",
5858
"@types/compression": "^1.7.1",
59-
"@types/node": "18",
60-
"@vitest/browser": "^2.0.5",
61-
"compression": "^1.7.4",
59+
"@types/node": "^18.19.33",
60+
"@vitest/browser": "^3.2.3",
61+
"compression": "^1.8.0",
6262
"happy-dom": "^14.12.3",
63-
"lint-staged": "^10.5.3",
64-
"msw": "^2.3.0",
65-
"playwright": "^1.44.0",
66-
"prettier": "^3.2.5",
67-
"rimraf": "^5.0.5",
68-
"simple-git-hooks": "^2.8.1",
69-
"ts-node": "^10.9.1",
70-
"tslib": "^2.3.1",
71-
"typescript": "^5.4.5",
72-
"vitest": "^2.0.5"
63+
"lint-staged": "^16.1.0",
64+
"msw": "^2.10.2",
65+
"playwright": "^1.53.0",
66+
"prettier": "^3.5.3",
67+
"rimraf": "^6.0.1",
68+
"simple-git-hooks": "^2.13.0",
69+
"tsx": "^4.20.1",
70+
"typescript": "^5.8.3",
71+
"vitest": "^3.2.3"
7372
},
7473
"dependencies": {
75-
"@stoplight/json": "^3.21.0",
76-
"@types/har-format": "^1.2.7",
74+
"@stoplight/json": "^3.21.7",
75+
"@types/har-format": "^1.2.16",
7776
"@yellow-ticket/seed-json-schema": "^0.1.6",
78-
"openapi-types": "^7.2.3",
79-
"outvariant": "^1.2.1",
80-
"yaml": "^2.4.5"
77+
"openapi-types": "^12.1.3",
78+
"outvariant": "^1.4.3",
79+
"yaml": "^2.8.0"
8180
},
8281
"pnpm": {
8382
"overrides": {
8483
"ws@>=8.0.0 <8.17.1": ">=8.17.1",
8584
"braces@<3.0.3": ">=3.0.3"
8685
}
8786
}
88-
}
87+
}

0 commit comments

Comments
 (0)