Skip to content

Commit 80995e9

Browse files
elastic-renovate-prod[bot]kibanamachinemaxcold
authored
Update dependency msw to v2.13.4 (main) (elastic#266770)
This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [msw](https://mswjs.io) ([source](https://redirect.github.com/mswjs/msw)) | devDependencies | minor | [`2.12.14` -> `2.13.4`](https://renovatebot.com/diffs/npm/msw/2.12.14/2.13.4) | `2.14.2` (+4) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>mswjs/msw (msw)</summary> ### [`v2.13.4`](https://redirect.github.com/mswjs/msw/releases/tag/v2.13.4) [Compare Source](https://redirect.github.com/mswjs/msw/compare/v2.13.3...v2.13.4) #### v2.13.4 (2026-04-16) ##### Bug Fixes - implement proper `ServiceWorkerSource` singleton pattern ([#&elastic#8203;2715](https://redirect.github.com/mswjs/msw/issues/2715)) ([`580256b`](https://redirect.github.com/mswjs/msw/commit/580256b09df54ad8f1b41143e78dabc626ecf20c)) [@&elastic#8203;kettanaito](https://redirect.github.com/kettanaito) - use `verbatimModuleSyntax` consistently in exports ([#&elastic#8203;2702](https://redirect.github.com/mswjs/msw/issues/2702)) ([`9dedf52`](https://redirect.github.com/mswjs/msw/commit/9dedf52fc88c355610f6d472c921fe10c54af050)) [@&elastic#8203;christoph-fricke](https://redirect.github.com/christoph-fricke) [@&elastic#8203;kettanaito](https://redirect.github.com/kettanaito) - update dependencies ([#&elastic#8203;2719](https://redirect.github.com/mswjs/msw/issues/2719)) ([`d0cbd2d`](https://redirect.github.com/mswjs/msw/commit/d0cbd2d5e1de5a1605dcef43e39300f353be0bd0)) [@&elastic#8203;kettanaito](https://redirect.github.com/kettanaito) - **sse:** respect `request.signal` for the underlying stream ([#&elastic#8203;2718](https://redirect.github.com/mswjs/msw/issues/2718)) ([`429e05c`](https://redirect.github.com/mswjs/msw/commit/429e05ca2395b5ec695b91107600d6e14f4be0f9)) [@&elastic#8203;kettanaito](https://redirect.github.com/kettanaito) ### [`v2.13.3`](https://redirect.github.com/mswjs/msw/releases/tag/v2.13.3) [Compare Source](https://redirect.github.com/mswjs/msw/compare/v2.13.2...v2.13.3) #### v2.13.3 (2026-04-14) ##### Bug Fixes - update `rettime` to 0.11.7 ([#&elastic#8203;2711](https://redirect.github.com/mswjs/msw/issues/2711)) ([`feee3ed`](https://redirect.github.com/mswjs/msw/commit/feee3ed65ca2b78da1ca53b8a99a7eaa87417fc6)) [@&elastic#8203;kettanaito](https://redirect.github.com/kettanaito) ### [`v2.13.2`](https://redirect.github.com/mswjs/msw/releases/tag/v2.13.2) [Compare Source](https://redirect.github.com/mswjs/msw/compare/v2.13.1...v2.13.2) #### v2.13.2 (2026-04-08) ##### Bug Fixes - **delay:** prevent `infinite` mode from throwing ([#&elastic#8203;2697](https://redirect.github.com/mswjs/msw/issues/2697)) ([`613d4a1`](https://redirect.github.com/mswjs/msw/commit/613d4a1d6cd96e006af126d6a13e32e884f48733)) [@&elastic#8203;kettanaito](https://redirect.github.com/kettanaito) ### [`v2.13.1`](https://redirect.github.com/mswjs/msw/releases/tag/v2.13.1) [Compare Source](https://redirect.github.com/mswjs/msw/compare/v2.13.0...v2.13.1) #### v2.13.1 (2026-04-07) ##### Bug Fixes - annotate life-cycle events correctly ([#&elastic#8203;2694](https://redirect.github.com/mswjs/msw/issues/2694)) ([`e7890e9`](https://redirect.github.com/mswjs/msw/commit/e7890e91627c828bd4d788f09e179bffbc8a8506)) [@&elastic#8203;kettanaito](https://redirect.github.com/kettanaito) ### [`v2.13.0`](https://redirect.github.com/mswjs/msw/releases/tag/v2.13.0) [Compare Source](https://redirect.github.com/mswjs/msw/compare/v2.12.14...v2.13.0) #### v2.13.0 (2026-04-06) ##### Features - **use the network source architecture** (`defineNetwork`) ([#&elastic#8203;2650](https://redirect.github.com/mswjs/msw/issues/2650)) ([`2b73790`](https://redirect.github.com/mswjs/msw/commit/2b73790082d412580047c430519340958025226d)) [@&elastic#8203;kettanaito](https://redirect.github.com/kettanaito) [@&elastic#8203;felmonon](https://redirect.github.com/felmonon) - handlers are now grouped internally by kind, making handler lookup a O(1) operation. - handlers filtering no longer uses an `instanceof` check. Instead, the `kind` property of the handler is used. ##### Bug fixes - fix an issue where a WebSocket connection would be logged in the console even when there are no matching event handlers for it. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOkNsb3VkIFNlY3VyaXR5IiwiYmFja3BvcnQ6YWxsLW9wZW4iLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==--> --------- Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Maxim Kholod <maxim.kholod@elastic.co>
1 parent a1d4d94 commit 80995e9

4 files changed

Lines changed: 92 additions & 112 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2139,7 +2139,7 @@
21392139
"mochawesome-merge": "5.1.1",
21402140
"mock-fs": "5.5.0",
21412141
"ms-chromium-edge-driver": "0.5.1",
2142-
"msw": "2.12.14",
2142+
"msw": "2.13.4",
21432143
"mutation-observer": "1.0.3",
21442144
"nock": "12.0.3",
21452145
"node-stdlib-browser": "1.3.1",

src/platform/packages/shared/kbn-test/jest-preset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module.exports = {
115115

116116
// A map from regular expressions to paths to transformers
117117
transform: {
118-
'^.+\\.(js|tsx?)$':
118+
'^.+\\.(js|mjs|tsx?)$':
119119
'<rootDir>/src/platform/packages/shared/kbn-test/src/jest/transforms/babel/index.js',
120120
'^.+\\.(txt|html|yaml|yml)?$':
121121
'<rootDir>/src/platform/packages/shared/kbn-test/src/jest/transforms/raw.js',
@@ -128,7 +128,7 @@ module.exports = {
128128
transformIgnorePatterns: [
129129
// ignore all node_modules except monaco-editor, monaco-yaml, monaco-promql which requires babel transforms to handle dynamic import()
130130
// since ESM modules are not natively supported in Jest yet (https://github.com/facebook/jest/issues/4842)
131-
'[/\\\\]node_modules(?![\\/\\\\](byte-size|monaco-editor|monaco-yaml|monaco-promql|monaco-languageserver-types|monaco-marker-data-provider|monaco-worker-manager|vscode-languageserver-types|d3-interpolate|d3-color|date-fns|react-day-picker|langchain|langsmith|@cfworker|gpt-tokenizer|flat|@langchain|eventsource-parser|fast-check|@fast-check/jest|@assemblyscript|quickselect|rbush|zod/v4|vega-interpreter|vega-util|vega-tooltip|@modelcontextprotocol|pkce-challenge|ansi-styles|react-monaco-editor|msw|@bundled-es-modules|until-async|react-markdown|@ungap/structured-clone|bail|ccount|character-entities[^/\\\\]*|character-reference-invalid|comma-separated-tokens|decode-named-character-reference|devlop|escape-string-regexp|estree-util-[^/\\\\]*|hast-util-[^/\\\\]*|html-url-attributes|html-void-elements|hastscript|is-alphabetical|is-alphanumerical|is-decimal|is-hexadecimal|is-plain-obj|longest-streak|markdown-table|mdast-util-[^/\\\\]*|micromark[^/\\\\]*|parse-entities|parse5|property-information|rehype-raw|rehype-sanitize|remark-gfm|remark-parse|remark-rehype|space-separated-tokens|stringify-entities|trim-lines|trough|unified|unist-util-[^/\\\\]*|vfile[^/\\\\]*|web-namespaces|zwitch))[/\\\\].+\\.js$',
131+
'[/\\\\]node_modules(?![\\/\\\\](byte-size|monaco-editor|monaco-yaml|monaco-promql|monaco-languageserver-types|monaco-marker-data-provider|monaco-worker-manager|vscode-languageserver-types|d3-interpolate|d3-color|date-fns|react-day-picker|langchain|langsmith|@cfworker|gpt-tokenizer|flat|@langchain|eventsource-parser|fast-check|@fast-check/jest|@assemblyscript|quickselect|rbush|zod/v4|vega-interpreter|vega-util|vega-tooltip|@modelcontextprotocol|pkce-challenge|ansi-styles|react-monaco-editor|msw|@bundled-es-modules|until-async|rettime|@open-draft/deferred-promise|react-markdown|@ungap/structured-clone|bail|ccount|character-entities[^/\\\\]*|character-reference-invalid|comma-separated-tokens|decode-named-character-reference|devlop|escape-string-regexp|estree-util-[^/\\\\]*|hast-util-[^/\\\\]*|html-url-attributes|html-void-elements|hastscript|is-alphabetical|is-alphanumerical|is-decimal|is-hexadecimal|is-plain-obj|longest-streak|markdown-table|mdast-util-[^/\\\\]*|micromark[^/\\\\]*|parse-entities|parse5|property-information|rehype-raw|rehype-sanitize|remark-gfm|remark-parse|remark-rehype|space-separated-tokens|stringify-entities|trim-lines|trough|unified|unist-util-[^/\\\\]*|vfile[^/\\\\]*|web-namespaces|zwitch))[/\\\\].+\\.m?js$',
132132
'packages/kbn-pm/dist/index.js',
133133
'[/\\\\]node_modules(?![\\/\\\\](langchain|langsmith|@langchain|zod/v4))/dist/[/\\\\].+\\.js$',
134134
'[/\\\\]node_modules(?![\\/\\\\](langchain|langsmith|@langchain|zod/v4))/dist/util/[/\\\\].+\\.js$',

x-pack/solutions/security/plugins/cloud_security_posture/public/test/mock_server/mock_server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 2.0.
66
*/
77

8-
import type { SetupServerApi } from 'msw/node';
8+
import type { SetupServer } from 'msw/node';
99
import { setupServer } from 'msw/node';
1010
import { coreMock } from '@kbn/core/public/mocks';
1111
import type { CoreStart } from '@kbn/core/public';
@@ -74,7 +74,7 @@ export const setupMockServer = ({ debug = false }: { debug?: boolean } = {}) =>
7474
* sure we don't forget the handlers. Can easily be shared between tests.
7575
* @param server - The MSW server instance, created with setupMockServer
7676
*/
77-
export const startMockServer = (server: SetupServerApi) => {
77+
export const startMockServer = (server: SetupServer) => {
7878
beforeAll(() => server.listen({ onUnhandledRequest: 'warn' }));
7979
afterAll(() => server.close());
8080
beforeEach(() => {

0 commit comments

Comments
 (0)