chore(deps): bump immutable and swagger-ui-react - #231
Conversation
|
@claude |
|
Claude finished @yokotaso's task in 2m 21s —— View job ライブラリアップデートレビュー
1. ライブラリ概要
2. バージョン情報
補足: PR タイトルは "immutable and swagger-ui-react" だが、
3. 変更範囲(
|
| Package | Before → After |
|---|---|
| swagger-ui-react | 5.32.6 → 5.32.11 |
| swagger-client | 3.37.5 → 3.37.7 |
| immutable | 3.8.2 → 4.3.9 (major) |
| dompurify | 3.4.11 → 3.4.12 |
| axios | 1.18.0 → 1.18.1 |
| js-yaml | 4.1.1 → 4.3.0 |
| @swagger-api/apidom-* | 1.11.2 → 1.11.3 (36 パッケージ) |
| react-copy-to-clipboard | 5.1.0 → 5.1.1 |
| node-addon-api | 8.8.0 → 8.9.0 |
| brace-expansion | 5.0.6 → 5.0.7 |
| yaml (@fastify/swagger 用) | 追加 (2.8.2, peer/hoist 変化) |
4. コードベース内の使用箇所
examples/vite-react-openapi/src/main.tsx:3-9—swagger-ui-reactの唯一の使用箇所最小構成の使い方で、この間の変更(5.32.6→5.32.11 は全て patch)の影響は受けない。import SwaggerUI from "swagger-ui-react" import "swagger-ui-react/swagger-ui.css" ... <SwaggerUI url="http://localhost:3000/openapi" />
immutableを直接 import しているコードは無し(grepで確認済み)。pkgs/docs/docs/04_client/overview.mdの "immutable" は英単語としての用法で、ライブラリとは無関係。
5. 変更サマリ(release notes より)
immutable 3.8.2 → 4.3.9(メジャーバンプ)
セキュリティ修正が主体:
- 4.3.9:
ListのsetListBoundsの境界チェック修正 (GHSA-v56q-mh7h-f735) /Mapのハッシュ衝突バケットの indexing 対応 (GHSA-xvcm-6775-5m9r) - 4.3.8: Prototype Pollution 修正
- 4.x メジャー変更点(migration guide):
Iterable→Collectionにリネーム、Iterable.Indexed→Collection.Indexedなど。ES2015 iterator に準拠、toJS()の型変更 など。
→ 本リポジトリは直接 import していないため、API 変更の影響を受けない。security fix を受けられるので望ましい更新。
swagger-ui-react 5.32.6 → 5.32.11(patch のみ)
- 5.32.7: dompurify 3.4.0→3.4.11 / form-data 4.0.5→4.0.6 / http-proxy-middleware 2.0.10 / ws 8.21.0 / js-yaml 4.1.1→4.2.0 / launch-editor 2.14.1(依存パッチ多数、脆弱性連鎖修正)
- 5.32.8: array 初期値バリデーション修正
- 5.32.9:
requestBodyにcontentフィールドが無いときのクラッシュ回避 - 5.32.10: axios 1.16.0→1.18.1 / swagger-client 3.37.7
- 5.32.11: dompurify 3.4.11→3.4.12 / immutable 4.3.9
すべて patch。breaking change は release notes では言及なし。
6. コード変更・整合性チェック
- ✅
examples/vite-react-openapi/package.jsonのswagger-ui-reactは^5.32.11に更新済み - ✅
package-lock.jsonの対応するpackages/examples/vite-react-openapiエントリも一致 - ✅ アプリコード側は最小 API しか使っていないので 修正不要
- ✅
immutableを直接使用している箇所は無く、コード側変更は不要
7. 特筆すべき点
- 実質的にセキュリティパッチ集約 PR。dompurify・axios・immutable いずれも公表 CVE の修正を含む。
immutableのメジャーバンプがあるが、直接依存でないため影響は swagger-ui-react のコンテナ内に閉じる。swagger-ui-react 側で 4.x への追従は完了済み(5.32.11 の release notes 参照)。- 依存追加なし・削除なし、
peerDependenciesの変化も無し。
8. リスク・懸念
| 項目 | 評価 |
|---|---|
| 直接 API の breaking change | なし |
| ランタイム挙動の変化 | swagger-ui-react の patch なので低リスク。例のみで本番コードには影響しない |
| バンドルサイズ | immutable 4.x は 3.x より軽量傾向。特に問題なし |
| 型定義変更 | 直接使用していないため影響なし |
| CI/テスト | この例には固有のテストは無い。build (tsc + vite) だけが検証手段 |
9. 動作確認の推奨
examples/vite-react-openapi 配下で以下だけ実施しておくと安心:
cd examples/vite-react-openapi
pnpm install # or npm ci at repo root
pnpm build # tsc -b && vite build
pnpm dev # ブラウザで SwaggerUI が描画されることを確認結論
LGTM としてマージ推奨 ✅
- 本 PR は example ディレクトリ 1 箇所限定の依存更新
- swagger-ui-react は patch のみで直接 API 影響なし
- immutable は間接依存でメジャーだがセキュリティ修正を含む望ましい追従
- コード側の修正は不要
| Branch:dependabot/npm_and_yarn/multi-6876c48914
Bumps [immutable](https://github.com/immutable-js/immutable-js) to 4.3.9 and updates ancestor dependency [swagger-ui-react](https://github.com/swagger-api/swagger-ui). These dependencies need to be updated together. Updates `immutable` from 3.8.2 to 4.3.9 - [Release notes](https://github.com/immutable-js/immutable-js/releases) - [Changelog](https://github.com/immutable-js/immutable-js/blob/main/CHANGELOG.md) - [Commits](immutable-js/immutable-js@v3.8.2...v4.3.9) Updates `swagger-ui-react` from 5.32.6 to 5.32.12 - [Release notes](https://github.com/swagger-api/swagger-ui/releases) - [Commits](swagger-api/swagger-ui@v5.32.6...v5.32.12) --- updated-dependencies: - dependency-name: immutable dependency-version: 4.3.9 dependency-type: indirect - dependency-name: swagger-ui-react dependency-version: 5.32.11 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
135be1f to
d58ecb4
Compare
Bumps immutable to 4.3.9 and updates ancestor dependency swagger-ui-react. These dependencies need to be updated together.
Updates
immutablefrom 3.8.2 to 4.3.9Release notes
Sourced from immutable's releases.
... (truncated)
Changelog
Sourced from immutable's changelog.
... (truncated)
Commits
5da79194.3.9794a1a9Merge commit from fork3dd7e56perf(Map): index large hash-collision buckets for faster lookups62d0b58fix ts in tests8c0e5f8Merge commit from forkf0bc997Merge commit from fork8ac83f4change tagf7373e5use id-token to deploy 4.x version2f545adchangelog485cbe04.3.8Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for immutable since your current version.
Updates
swagger-ui-reactfrom 5.32.6 to 5.32.12Release notes
Sourced from swagger-ui-react's releases.
... (truncated)
Commits
9b5acf3chore(release): cut the 5.32.12 release1a88283fix(deps): bump swagger-client to v3.37.8 (#10980)9a5c49bchore(deps-dev): bump postcss from 8.5.12 to 8.5.23 (#10973)414a60cchore(release): cut the 5.32.11 release159423cfix(deps): bump immutable to 4.3.9 (#10969)dbc1b3dchore(deps): bump svgo from 3.3.3 to 3.3.4 (#10970)0aa8457fix(deps): bump dompurify from 3.4.11 to 3.4.12 (#10972)57f074dchore(deps-dev): bump fast-uri from 3.1.2 to 3.1.4 (#10971)0b5f973chore(release): cut the 5.32.10 released353bcdfix(deps): bump swagger-client to 3.37.7 (#10968)