Skip to content

chore(deps-dev): bump msw from 2.7.3 to 2.15.0 - #301

Open
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/msw-2.15.0
Open

dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/msw-2.15.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 25, 2026

Copy link
Copy Markdown
Contributor

Bumps msw from 2.7.3 to 2.15.0.

Release notes

Sourced from msw's releases.

v2.15.0 (2026-07-08)

Features

  • sse: invoke finalize on response stream end (#2741) (7fae0cc0954b20c739ae8e95a24eefc8a78710e8) @​kettanaito

v2.14.7 (2026-07-07)

Bug Fixes

  • sse: proper logging for concurrent requests (#2762) (5c0ae1c334a0cbe52638bd2949540372be3d46ba) @​kettanaito

v2.14.6 (2026-05-11)

Bug Fixes

  • defineNetwork: prevent event forwarding manually (#2740) (ccb40e08e3ef1dd80da217f74a1093be260a3f51) @​kettanaito

v2.14.5 (2026-05-08)

Bug Fixes

  • ws: remove all frame listeners on client closure (#2739) (91a5d4131ceae9250acc40e0fa44b3c64f030d3e) @​kettanaito

v2.14.4 (2026-05-07)

Bug Fixes

  • add finalize API for handler cleanup (#2738) (a288f5452970da6537ff31fce6b7f99eb620e563) @​kettanaito

v2.14.3 (2026-05-04)

Bug Fixes

  • prevent frame abort listener leak (#2737) (c4567d2a398fb3315cebea4b66e9b79022ad569c) @​kettanaito

v2.14.2 (2026-04-29)

Bug Fixes

v2.14.1 (2026-04-29)

Bug Fixes

  • export default handler controllers (#2733) (f8dc874a236a4bd376c23cce9dd55ed59b8279e2) @​kettanaito

v2.14.0 (2026-04-29)

... (truncated)

Commits
  • 49d9d47 chore(release): v2.15.0
  • ed88583 test(finalize): use expect.poll vs waitFor
  • 7fae0cc feat(sse): invoke finalize on response stream end (#2741)
  • db818ee chore(release): v2.14.7
  • 418854a chore: upgrade @ossjs/release
  • 5c0ae1c fix(sse): proper logging for concurrent requests (#2762)
  • 3016bda test: fix flaky ws.clients.browser.test.ts
  • 0df6d6a test: fix flaky in-flight-request.test.ts
  • ff6836b chore: pin github actions to commit sha, update pnpm (#2761)
  • 8a19d54 chore: improve github actions security (#2747)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for msw since your current version.

Install script changes

This version modifies postinstall script that runs during installation. Review the package contents before updating.


@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 25, 2026
@helpfeel-dependabot-merge
helpfeel-dependabot-merge Bot enabled auto-merge (squash) August 25, 2026 05:17
@shinagawa-web

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR is already up-to-date with main! If you'd still like to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@shinagawa-web

Copy link
Copy Markdown
Collaborator

@dependabot recreate

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/msw-2.15.0 branch from 725f721 to 131c3b2 Compare August 26, 2026 05:38
@shinagawa-web

shinagawa-web commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

調査結果 & 対応方針

CI 失敗の原因を #303 で切り分けた結果を共有します。

直接原因

npm ci 直後の npm run build -w pkgs/typed-api-spec (tsup) が Error: error occurred in dts build で exit 1。エラー内容は error TS5023: Unknown compiler option 'erasableSyntaxOnly' (TypeScript 5.8+ 専用オプション)。

根本原因

長期間潜在していた pkgs/typed-api-spec/tsconfig.json と tsup が掴む TypeScript のバージョン不整合:

  • pkgs/typed-api-spec/tsconfig.jsontypescript@^6.0.2 前提で erasableSyntaxOnly: true を持つ
  • 一方 tsup は root にホイストされ、require('typescript') で root hoisted の typescript@5.6.3 を掴む (5.6.3 は pkgs/docs, examples/*~5.6.0 指定由来)
  • 5.6.3 は erasableSyntaxOnly の対象外 → TS5023 発生

この TS5023 は以前から発生していたエラーで、これまでの main/PR の CI ログにも毎回出ていました。しかし tsup 側が「非致命扱いで exit 0」で通過していたので気付かれず。今回 msw 2.15.0 の依存ツリー変化により、tsup DTS worker がこの同じ TS5023 を 致命的扱い (exit 1) に変えたため CI が落ちるようになった。

再現の切り分け (fresh npm ci 前提)

  • msw 2.7.6 → tsup exit 0 (エラー出るが success 扱い)
  • msw 2.8.0 → tsup exit 1 (Build error)
  • msw 2.8.0 の変更: feat: migrate to ESM internally

tsup の TS 6 対応状況

tsup は peer で typescript: ">=4.5.0" を宣言してるが、実際は TS 6 の deprecation に追従してない:

対応方針

tsup を別のビルドツールに置き換えることで

  • tsup が typescript を掴む問題 (TS5023) → tsc 経由になり pkgs 直下の typescript@6 を使うので erasableSyntaxOnly が正常機能
  • tsup が baseUrl 強制注入する問題 (TS5101) → そもそも tsup を使わないので発生しない
  • msw のバージョンアップも通常通り可能となる想定

本 PR (#301) の扱い: tsup 置き換え PR がマージされてから rebase → CI 通れば普通にマージ可能。ただし msw 2.15.0 は HttpResponse<BodyType> の型引数必須化など破壊的変更を含むため、コード側の追従が別途必要 (#303 の src/msw/index.ts 変更 参照)。

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/msw-2.15.0 branch from a519376 to c946389 Compare September 9, 2026 05:16
Bumps [msw](https://github.com/mswjs/msw) from 2.7.3 to 2.15.0.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md)
- [Commits](mswjs/msw@v2.7.3...v2.15.0)

---
updated-dependencies:
- dependency-name: msw
  dependency-version: 2.15.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/msw-2.15.0 branch from c946389 to 04c23c6 Compare September 10, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants