msw 2.2.9 → 2.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +7 -2
  2. package/lib/core/{GraphQLHandler-BumTfgY4.d.mts → GraphQLHandler-AenIUdwE.d.mts} +1 -1
  3. package/lib/core/{GraphQLHandler-DqVT0Gbq.d.ts → GraphQLHandler-jOzqbxSK.d.ts} +1 -1
  4. package/lib/core/HttpResponse.d.mts +1 -1
  5. package/lib/core/HttpResponse.d.ts +1 -1
  6. package/lib/core/SetupApi.d.mts +1 -1
  7. package/lib/core/SetupApi.d.ts +1 -1
  8. package/lib/core/getResponse.d.mts +1 -1
  9. package/lib/core/getResponse.d.ts +1 -1
  10. package/lib/core/graphql.d.mts +2 -2
  11. package/lib/core/graphql.d.ts +2 -2
  12. package/lib/core/handlers/GraphQLHandler.d.mts +2 -2
  13. package/lib/core/handlers/GraphQLHandler.d.ts +2 -2
  14. package/lib/core/handlers/HttpHandler.d.mts +1 -1
  15. package/lib/core/handlers/HttpHandler.d.ts +1 -1
  16. package/lib/core/handlers/HttpHandler.js +1 -1
  17. package/lib/core/handlers/HttpHandler.js.map +1 -1
  18. package/lib/core/handlers/HttpHandler.mjs +1 -1
  19. package/lib/core/handlers/HttpHandler.mjs.map +1 -1
  20. package/lib/core/handlers/RequestHandler.d.mts +1 -1
  21. package/lib/core/handlers/RequestHandler.d.ts +1 -1
  22. package/lib/core/http.d.mts +1 -1
  23. package/lib/core/http.d.ts +1 -1
  24. package/lib/core/index.d.mts +2 -2
  25. package/lib/core/index.d.ts +2 -2
  26. package/lib/core/passthrough.d.mts +1 -1
  27. package/lib/core/passthrough.d.ts +1 -1
  28. package/lib/core/utils/HttpResponse/decorators.d.mts +1 -1
  29. package/lib/core/utils/HttpResponse/decorators.d.ts +1 -1
  30. package/lib/core/utils/executeHandlers.d.mts +1 -1
  31. package/lib/core/utils/executeHandlers.d.ts +1 -1
  32. package/lib/core/utils/handleRequest.d.mts +1 -1
  33. package/lib/core/utils/handleRequest.d.ts +1 -1
  34. package/lib/core/utils/internal/parseGraphQLRequest.d.mts +2 -2
  35. package/lib/core/utils/internal/parseGraphQLRequest.d.ts +2 -2
  36. package/lib/core/utils/internal/parseMultipartData.d.mts +1 -1
  37. package/lib/core/utils/internal/parseMultipartData.d.ts +1 -1
  38. package/lib/core/utils/internal/requestHandlerUtils.d.mts +1 -1
  39. package/lib/core/utils/internal/requestHandlerUtils.d.ts +1 -1
  40. package/lib/iife/index.js +1 -1
  41. package/lib/iife/index.js.map +1 -1
  42. package/lib/mockServiceWorker.js +1 -1
  43. package/package.json +3 -3
  44. package/src/core/handlers/HttpHandler.ts +1 -1
  45. /package/lib/core/{HttpResponse-jHZ0p2dL.d.ts → HttpResponse-_514VQ9z.d.ts} +0 -0
  46. /package/lib/core/{HttpResponse-C94XLD-W.d.mts → HttpResponse-wcp03c7-.d.mts} +0 -0
@@ -8,7 +8,7 @@
8
8
  * - Please do NOT serve this file on production.
9
9
  */
10
10
 
11
- const PACKAGE_VERSION = '2.2.9'
11
+ const PACKAGE_VERSION = '2.2.10'
12
12
  const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423'
13
13
  const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
14
14
  const activeClientIds = new Set()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "msw",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "description": "Seamless REST/GraphQL API mocking library for browser and Node.js.",
5
5
  "main": "./lib/core/index.js",
6
6
  "module": "./lib/core/index.mjs",
@@ -162,7 +162,7 @@
162
162
  "typescript": "^5.4.2",
163
163
  "undici": "^5.20.0",
164
164
  "url-loader": "^4.1.1",
165
- "vitest": "^0.34.6",
165
+ "vitest": "^1.2.2",
166
166
  "vitest-environment-miniflare": "^2.14.1",
167
167
  "webpack": "^5.89.0",
168
168
  "webpack-http-server": "^0.5.0"
@@ -199,7 +199,7 @@
199
199
  "test:browser": "playwright test -c ./test/browser/playwright.config.ts",
200
200
  "test:modules:node": "vitest --config=./test/modules/node/vitest.config.ts",
201
201
  "test:modules:browser": "playwright test -c ./test/modules/browser/playwright.config.ts",
202
- "test:ts": "ts-node test/typings/run.ts",
202
+ "test:ts": "vitest --typecheck --config=./test/typings/vitest.config.ts",
203
203
  "release": "release publish",
204
204
  "postinstall": "node -e \"try{require('./config/scripts/postinstall')}catch(e){}\""
205
205
  }
@@ -102,7 +102,7 @@ export class HttpHandler extends RequestHandler<
102
102
  })
103
103
 
104
104
  devUtils.warn(
105
- `Found a redundant usage of query parameters in the request handler URL for "${method} ${path}". Please match against a path instead and access query parameters in the response resolver function using "req.url.searchParams".`,
105
+ `Found a redundant usage of query parameters in the request handler URL for "${method} ${path}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/recipes/query-parameters`,
106
106
  )
107
107
  }
108
108