Skip to content

Commit 8f68f0a

Browse files
authoredOct 13, 2024··
fix: update dependencies (#2313)
1 parent 745d10e commit 8f68f0a

File tree

3 files changed

+1403
-757
lines changed

3 files changed

+1403
-757
lines changed
 

‎package.json

+20-21
Original file line numberDiff line numberDiff line change
@@ -145,58 +145,57 @@
145145
"graphql": "^16.8.1",
146146
"headers-polyfill": "^4.0.2",
147147
"is-node-process": "^1.2.0",
148-
"outvariant": "^1.4.2",
148+
"outvariant": "^1.4.3",
149149
"path-to-regexp": "^6.3.0",
150150
"strict-event-emitter": "^0.5.1",
151-
"type-fest": "^4.9.0",
151+
"type-fest": "^4.26.1",
152152
"yargs": "^17.7.2"
153153
},
154154
"devDependencies": {
155155
"@commitlint/cli": "^18.4.4",
156156
"@commitlint/config-conventional": "^18.4.4",
157157
"@open-draft/test-server": "^0.4.2",
158158
"@ossjs/release": "^0.8.1",
159-
"@playwright/test": "^1.40.1",
160-
"@swc/core": "^1.3.102",
159+
"@playwright/test": "^1.48.0",
161160
"@types/express": "^4.17.21",
162161
"@types/fs-extra": "^11.0.4",
163162
"@types/glob": "^8.1.0",
164163
"@types/json-bigint": "^1.0.4",
165164
"@types/node": "18.x",
166-
"@typescript-eslint/eslint-plugin": "^8.3.0",
167-
"@typescript-eslint/parser": "^8.3.0",
168-
"@web/dev-server": "^0.1.38",
169-
"axios": "^1.6.5",
165+
"@typescript-eslint/eslint-plugin": "^8.8.1",
166+
"@typescript-eslint/parser": "^8.8.1",
167+
"@web/dev-server": "^0.4.6",
168+
"axios": "^1.7.7",
170169
"babel-minify": "^0.5.1",
171-
"commitizen": "^4.2.4",
170+
"commitizen": "^4.3.1",
172171
"cross-env": "^7.0.3",
173172
"cross-fetch": "^4.0.0",
174173
"cz-conventional-changelog": "3.3.0",
175-
"esbuild": "^0.19.11",
176-
"esbuild-loader": "^4.0.2",
174+
"esbuild": "^0.24.0",
175+
"esbuild-loader": "^4.2.2",
177176
"eslint": "^8.57.0",
178177
"eslint-config-prettier": "^9.1.0",
179-
"eslint-plugin-prettier": "^5.1.3",
178+
"eslint-plugin-prettier": "^5.2.1",
180179
"express": "^5.0.0",
181180
"fs-extra": "^11.2.0",
182181
"fs-teardown": "^0.3.0",
183-
"glob": "^10.3.10",
184-
"jsdom": "^23.2.0",
182+
"glob": "^11.0.0",
183+
"jsdom": "^25.0.1",
185184
"json-bigint": "^1.0.0",
186-
"lint-staged": "^15.2.0",
185+
"lint-staged": "^15.2.10",
187186
"page-with": "^0.6.1",
188-
"prettier": "^3.2.2",
187+
"prettier": "^3.3.3",
189188
"regenerator-runtime": "^0.14.1",
190-
"rimraf": "^5.0.5",
189+
"rimraf": "^6.0.1",
191190
"simple-git-hooks": "^2.9.0",
192191
"ts-node": "^10.9.2",
193-
"tsup": "^8.0.1",
192+
"tsup": "^8.3.0",
194193
"typescript": "^5.5.2",
195-
"undici": "^5.20.0",
194+
"undici": "^6.20.0",
196195
"url-loader": "^4.1.1",
197196
"vitest": "^1.2.2",
198-
"vitest-environment-miniflare": "^2.14.1",
199-
"webpack": "^5.89.0",
197+
"vitest-environment-miniflare": "^2.14.4",
198+
"webpack": "^5.95.0",
200199
"webpack-http-server": "^0.5.0"
201200
},
202201
"peerDependencies": {

‎pnpm-lock.yaml

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

‎test/browser/msw-api/setup-worker/start/find-worker.test.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ test('resolves the "start" Promise and returns a ServiceWorkerRegistration when
2525

2626
expect(resolvedPayload).toBe('ServiceWorkerRegistration')
2727

28-
const activationMessageIndex = consoleSpy
29-
.get('startGroupCollapsed')
30-
?.findIndex((text) => {
28+
const activationMessageIndex =
29+
consoleSpy.get('startGroupCollapsed')?.findIndex((text) => {
3130
return text.includes('[MSW] Mocking enabled')
32-
})
31+
}) ?? -1
3332

34-
const customMessageIndex = consoleSpy.get('log').findIndex((text) => {
35-
return text.includes('Registration Promise resolved')
36-
})
33+
const customMessageIndex =
34+
consoleSpy.get('log')?.findIndex((text) => {
35+
return text.includes('Registration Promise resolved')
36+
}) ?? -1
3737

3838
expect(activationMessageIndex).toBeGreaterThan(-1)
3939
expect(customMessageIndex).toBeGreaterThan(-1)
@@ -55,7 +55,7 @@ test('fails to return a ServiceWorkerRegistration when using a findWorker that r
5555
})
5656

5757
const workerStartError = await page.evaluate(() => {
58-
return window.msw.registration.catch((err) => err)
58+
return window.msw.registration.catch((error) => error.message)
5959
})
6060

6161
const activationMessage = consoleSpy
@@ -64,7 +64,7 @@ test('fails to return a ServiceWorkerRegistration when using a findWorker that r
6464
return text.includes('[MSW] Mocking enabled')
6565
})
6666

67-
const errorMessageIndex = consoleSpy.get('error').findIndex((text) => {
67+
const errorMessageIndex = consoleSpy.get('error')?.findIndex((text) => {
6868
return text.includes('Error - no worker instance after starting')
6969
})
7070

0 commit comments

Comments
 (0)
Please sign in to comment.