Skip to content

chore(deps): refresh the lockfile to clear pnpm audit findings - #39

Draft
hideokamoto wants to merge 2 commits into
mainfrom
chore/refresh-lockfile-audit
Draft

hideokamoto wants to merge 2 commits into
mainfrom
chore/refresh-lockfile-audit

Conversation

@hideokamoto

Copy link
Copy Markdown
Owner

概要

main の pnpm audit で 77 件(critical 4 / high 43)の advisory が出ていた。そのうち 21 件は実行時依存で、@aws-sdk/client-cloudfront 配下の fast-xml-parser 5.2.5 の critical を含む。この PR で全依存を package.json の範囲内の最新版に解決し直し、advisory を 2 件まで減らした。実行時依存の advisory は 0 件になった。

古い依存更新 PR 19 本(#2, #7〜#14, #16, #19, #24, #26, #28, #29, #31〜#34)は yarn.lock 前提で、#37 の pnpm 移行後はマージできないためクローズした。この PR はその代わりになる。

変更

  1. rollup.config.js: rollup-plugin-typescript2 の対象ファイルを include: ['*.ts', '**/*.ts'] と明示した
    • picomatch の脆弱性修正版 2.3.2 は、プラグインの既定パターン **/*.ts+(|x) に libs/index.ts が一致しなくなる(2.3.1 では一致する。node で直接確かめた)
    • そのため lockfile を更新するとビルドが Could not resolve "./configUpdator" で失敗する。この変更でそれを防ぐ
  2. pnpm-lock.yaml: 全依存を範囲内の最新版に解決し直した
    • package.json は変えていない。 npm に公開される依存の範囲は今までと同じ

確かめたこと

  • pnpm audit: 77 件 → 2 件。pnpm audit --prod は 0 件
    • 残る 2 件
      • minimatch 9.0.9(moderate): @typescript-eslint 7 配下。修正版は minimatch 11 で、メジャーが変わる
      • deepmerge 4.3.1(low): jest 配下。修正版が出ていない
  • Node 22 と Node 18.20.8 の両方で、CI と同じ手順がすべて通った(pnpm install --frozen-lockfile → lint → typecheck → test --ci(12 件)→ build)
  • main でビルドした dist/index.js と、この PR でビルドしたものは同一(sourcemap の行を除いて diff なし)

注意

  • 更新後の @aws-sdk/client-cloudfront 3.1169.0 と関連パッケージは、engines に node >=20.0.0 を宣言している
    • CI の Node 18 ジョブは警告が出るだけで通る(上記のとおり手元で確かめた)
    • このライブラリは engines.node: >=18.0.0 で、実行時依存を ^3.0.0 で受けている。そのため利用者側でも、新しくインストールすれば同じ SDK が入る。これはこの PR とは関係なく、すでに起きている状態
  • コミットは build: と chore(deps): だけなので、semantic-release のリリースは走らない想定(.releaserc.json は conventionalcommits のプリセット)
  • 進行中の fix: replace the association on the same event type when attaching #38 とは触るファイルが重ならない

Generated by Claude Code

…icitly

picomatch 2.3.2, the release that fixes its extglob advisories, no longer
matches the plugin's default include pattern `**/*.ts+(|x)`, so the plugin
skips libs/*.ts and rollup fails with `Could not resolve "./configUpdator"`.
Naming `*.ts` and `**/*.ts` keeps the same files in scope and builds the
same dist/index.js with both picomatch 2.3.1 and 2.3.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BmzxkrdmVRTfR9rM1mwQ3B
`pnpm audit` on main reported 77 advisories (4 critical, 43 high), 21 of
them in runtime dependencies, including fast-xml-parser 5.2.5 under
@aws-sdk/client-cloudfront. Re-resolving every dependency to the newest
version its package.json range allows leaves 2: minimatch 9.0.9 under
@typescript-eslint 7 (fix needs minimatch 11) and deepmerge 4.3.1 under
jest (no fixed release). No runtime advisories remain.

package.json is unchanged, so the ranges published to npm stay the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BmzxkrdmVRTfR9rM1mwQ3B
@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants