Skip to content

Update dependency msw to v2.13.4 (main)#266770

Merged
maxcold merged 7 commits intomainfrom
renovate/main-@elasticcontextual-security-apps-dependencies
May 4, 2026
Merged

Update dependency msw to v2.13.4 (main)#266770
maxcold merged 7 commits intomainfrom
renovate/main-@elasticcontextual-security-apps-dependencies

Conversation

@elastic-renovate-prod
Copy link
Copy Markdown
Contributor

@elastic-renovate-prod elastic-renovate-prod Bot commented Apr 30, 2026

This PR contains the following updates:

Package Type Update Change Pending
msw (source) devDependencies minor 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

mswjs/msw (msw)

v2.13.4

Compare Source

v2.13.4 (2026-04-16)

Bug Fixes

v2.13.3

Compare Source

v2.13.3 (2026-04-14)

Bug Fixes

v2.13.2

Compare Source

v2.13.2 (2026-04-08)

Bug Fixes

v2.13.1

Compare Source

v2.13.1 (2026-04-07)

Bug Fixes

v2.13.0

Compare Source

v2.13.0 (2026-04-06)

Features
  • use the network source architecture (defineNetwork) (#​2650) (2b73790) @​kettanaito @​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.

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@elastic-renovate-prod elastic-renovate-prod Bot added backport:all-open Backport to all branches that could still receive a release release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related labels Apr 30, 2026
@elastic-renovate-prod elastic-renovate-prod Bot requested a review from a team April 30, 2026 18:19
@infra-vault-gh-plugin-prod
Copy link
Copy Markdown

Pinging @elastic/contextual-security-apps (Team:Cloud Security)

@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp Bot commented Apr 30, 2026

Approvability

Verdict: Needs human review

Dependency update for test library msw with associated Jest config and type import adjustments. The modified code files (jest-preset.js, mock_server.ts) are owned by other teams who should review these changes to their files.

You can customize Macroscope's approvability policy. Learn more.

@elastic-renovate-prod
Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

maxcold added 3 commits May 4, 2026 11:38
In msw 2.13, setupServer() returns the SetupServer interface; SetupServerApi
is now a class with private fields that implements SetupServer. Annotating
startMockServer with SetupServerApi makes callers (which pass the SetupServer
returned by setupServer) fail typecheck. The function only uses methods on the
SetupServer interface, so widen the parameter type accordingly.
msw 2.13 added a transitive dep on rettime, which ships only as .mjs (type:
module, main: ./build/index.mjs). Kibana's CJS bundle of msw require()s
rettime, which fails because:

- transformIgnorePatterns regex anchored at \.js$ so .mjs in node_modules
  was never eligible for Babel transform
- the transform map only matched ^.+\.(js|tsx?)$, so .mjs had no
  transformer wired up

Add rettime to the negative-lookahead allowlist (matching the pattern used
for msw, until-async, @bundled-es-modules), widen the regex anchor to
\.m?js$, and extend the transform map to include .mjs. This unblocks msw
2.13+ and any future ESM-only deps shipping .mjs without per-package edits.
@maxcold maxcold requested review from a team as code owners May 4, 2026 14:15
Copy link
Copy Markdown
Member

@csr csr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

msw 2.13's lib/core/index.js (CJS) requires @open-draft/deferred-promise
through the WebSocket subtree (lib/core/ws/WebSocketIndexedDBClientStore.js).
@open-draft/deferred-promise@3 is ESM-only and ships .mjs (main: null,
type: module, exports: ./build/index.mjs). Without an allowlist entry it
falls under transformIgnorePatterns and CI's Jest hits 'Unexpected token
export' when require()-ing it.

Add it to the negative-lookahead allowlist alongside rettime so Babel
transforms its .mjs into CJS.
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

@maxcold maxcold merged commit 80995e9 into main May 4, 2026
27 checks passed
@maxcold maxcold deleted the renovate/main-@elasticcontextual-security-apps-dependencies branch May 4, 2026 21:22
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.2, 9.3, 9.4

https://github.com/elastic/kibana/actions/runs/25344268869

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.19:
- Update dependency react-markdown to v10 (main) (#206222)
- [CI][Jest] Parallelize Jest test runners (#236549)
9.2 Backport failed because of merge conflicts
9.3 Backport failed because of merge conflicts
9.4 Backport failed because of merge conflicts

You might need to backport the following PRs to 9.4:
- [SecuritySolution] [Dashboard Migrations] Add security automatic migrations evaluation suite (#261568)
- Update OpenTelemetry modules (main) (#262094)

Manual backport

To create the backport manually run:

node scripts/backport --pr 266770

Questions ?

Please refer to the Backport tool documentation

mbondyra added a commit to mbondyra/kibana that referenced this pull request May 5, 2026
…ilder_new_vis_attachment

* commit '6fd683609eb6dee81f242f8ff6951edbe3bfd66c': (226 commits)
  Remove Model Author group-by option from external inference endpoints (elastic#264761)
  [Streams][Streamlang] Align ES|QL condition transpiler with Painless on null propagation (elastic#264751)
  chore(axios,workflows-eng): remove axios from workflows connector utils (elastic#267512)
  [failed-test-reporter] avoid opening issues for scout env failures (elastic#267649)
  [kbn-api-contracts] Detect request-body additionalProperties:false tightening (elastic#267546)
  [main] Sync bundled packages with Package Storage (elastic#267644)
  Centralize phase colors and descriptions (elastic#266680)
  [Unified Waterfall] Add "Scroll to origin" button  (elastic#266594)
  [APM] Add alert and SLO badges to the service map embeddable (elastic#266360)
  [CI] Speed up telemetry_check by pre-filtering to collector files (elastic#265978)
  [Discover] Address flaky large CSV test (elastic#266642)
  avoid passing unrelated props within integration card icon component conditional render (elastic#266569)
  [Cases][Templates] Extend cases search by template field label (elastic#266414)
  [Background search] Migrate custom SplitButton to EuiSplitButton (elastic#267447)
  [i18n] Report translation coverage during integrate (elastic#264124)
  [api-docs] 2026-05-05 Daily api_docs build (elastic#267639)
  [Scout] Update test config manifests (elastic#267636)
  [content list] Add saved object provider services (elastic#266428)
  [Fleet] Otel UI add health and implement it in OTelComponentDetail (elastic#267292)
  Update dependency msw to v2.13.4 (main) (elastic#266770)
  ...
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label May 5, 2026
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 266770 locally
cc: @maxcold

@maxcold maxcold removed the backport:all-open Backport to all branches that could still receive a release label May 6, 2026
@maxcold maxcold added backport:skip This PR does not require backporting and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v9.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants