Update dependency msw to v2.13.4 (main)#266770
Conversation
|
Pinging @elastic/contextual-security-apps (Team:Cloud Security) |
ApprovabilityVerdict: 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. |
…& node scripts/yarn_deduplicate.js
Edited/Blocked NotificationRenovate 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. |
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.
csr
left a comment
There was a problem hiding this comment.
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.
💚 Build Succeeded
Metrics [docs]
History
|
|
Starting backport for target branches: 8.19, 9.2, 9.3, 9.4 https://github.com/elastic/kibana/actions/runs/25344268869 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…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) ...
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
This PR contains the following updates:
2.12.14->2.13.42.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.4Compare Source
v2.13.4 (2026-04-16)
Bug Fixes
ServiceWorkerSourcesingleton pattern (#2715) (580256b) @kettanaitoverbatimModuleSyntaxconsistently in exports (#2702) (9dedf52) @christoph-fricke @kettanaitod0cbd2d) @kettanaitorequest.signalfor the underlying stream (#2718) (429e05c) @kettanaitov2.13.3Compare Source
v2.13.3 (2026-04-14)
Bug Fixes
rettimeto 0.11.7 (#2711) (feee3ed) @kettanaitov2.13.2Compare Source
v2.13.2 (2026-04-08)
Bug Fixes
infinitemode from throwing (#2697) (613d4a1) @kettanaitov2.13.1Compare Source
v2.13.1 (2026-04-07)
Bug Fixes
e7890e9) @kettanaitov2.13.0Compare Source
v2.13.0 (2026-04-06)
Features
defineNetwork) (#2650) (2b73790) @kettanaito @felmononinstanceofcheck. Instead, thekindproperty of the handler is used.Bug fixes
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.
This PR has been generated by Renovate Bot.