Skip to content

chore(deps): in-range update, clearing five advisories from the toolchain - #157

Merged
sydevs-bot merged 4 commits into
mainfrom
claude/chore-deps-routine-2026-10
Oct 5, 2026
Merged

sydevs-bot merged 4 commits into
mainfrom
claude/chore-deps-routine-2026-10

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • An in-range pnpm update takes pnpm audit from 10 high to 3.
  • Two of the three that remain are in the production graph, one in the dev graph. None has a fix this repo can take. Each is accounted for below.

Change outline

No source behaviour changes. Two shapes moved: the resolved dependency graph,
and one comment that named a version.

Contract — the advisory set

Five advisories leave, and which bump takes each. All five were in the dev
graph, and wrangler's three ran on a developer's machine every pnpm prod:

 wrangler 4.129.0 -> 4.147.0        # miniflare's own subtree
-  GHSA-rfgv-xxqx-mfg5  high  undici >=7.0.0 <7.29.1    WebSocket handshake crash
-  GHSA-w293-vg96-wgc3  high  undici >=7.24.1 <7.29.1   BalancedPool TLS bypass
-  GHSA-rgj7-g3m4-5g8c  high  sharp  <0.35.4            libheif RCE
+  undici 7.29.1, sharp 0.35.4
 eslint + typescript-eslint 8.69.0 -> 8.71.0 + @sentry/vite-plugin
-  GHSA-qhr7-859c-m2p7  high  brace-expansion  x3 lines
-  GHSA-6j4f-fj2g-mc7p  high  brace-expansion  x3 lines
+  brace-expansion 1.1.20 / 2.1.6 / 5.0.11
 STAYS — 2 production, 1 dev:
 GHSA-rfgv-xxqx-mfg5  high  undici 7.29.0   prod   # pinned exactly upstream
 GHSA-w293-vg96-wgc3  high  undici 7.29.0   prod
 GHSA-vfj7-8cjw-p6xm  high  braces <=3.0.3  dev    # no fix published

The two undici rows do not disappear — they change parent. On main the
same vulnerable 7.29.0 sat under both miniflare and payload, and the audit
report printed only the miniflare path. Fixing that one makes the payload
path the one on screen, which is why pnpm audit --prod now names two highs it
did not appear to name before. Nothing moved into production; the report stopped
hiding where it already was.

pnpm audit --prod gives the exact path:

.>@payloadcms/richtext-lexical>payload>undici

Types — declared ranges

 package.json  dependencies
-  react, react-dom   ^19.2.8       zod    ^4.5.4
+  react, react-dom   ^19.3.0       zod    ^4.6.5
-  hono    ^4.13.7                  hls.js ^1.7.2
+  hono    ^4.13.13                 hls.js ^1.7.3
-  vike    ^0.4.266                 vike-react ^0.6.26
+  vike    ^0.4.267                 vike-react ^0.6.29
-  @payloadcms/{live-preview,richtext-lexical,sdk}  ^3.88.0
+  @payloadcms/{live-preview,richtext-lexical,sdk}  ^3.90.2
-  @payloadcms/live-preview-react  3.88.0    # exact
+  @payloadcms/live-preview-react  3.90.2    # exact, moved to rejoin the set
-  @sentry/react ^10.73.0           react-hook-form ^7.87.0
+  @sentry/react ^10.76.0           react-hook-form ^7.89.0
   jose  5.10.0                              # exact — untouched
 package.json  devDependencies
-  wrangler ^4.129.0                typescript-eslint ^8.69.0
+  wrangler ^4.147.0                typescript-eslint ^8.71.0
-  @cloudflare/workers-types ^5.20260908.1   globals ^17.12.0, prettier ^3.9.6
+  @cloudflare/workers-types ^5.20261005.1   globals ^17.13.0, prettier ^3.9.9
-  @types/node ^22.20.1, @types/react ^19.2.18, @types/react-dom ^19.2.7
+  @types/node ^22.20.5, @types/react ^19.3.0,  @types/react-dom ^19.3.0

Files — one version-pinned claim, removed rather than refreshed

 hooks/usePageContext.ts    the catch around usePageContext()
-  vike-react 0.6.26 returns `undefined` off-provider rather than throwing
-  The `catch` is what keeps Ladle and the suite alive if that changes
+  The `catch` keeps Ladle and the suite alive if vike-react ever throws
+  off-provider instead of returning `undefined`

The comment named a version, so every bump had to touch it. The module JSDoc
already states the undefined behaviour, so only the catch's own reason was
left to carry. docs/rules/code-comments.md forbids pointing at a moving
target.

Preview

Test results

On 3437761:

  • Lean gate: ✓ check.sh — lint, tsc --noEmit, test:run (80 files, 809 tests).
  • Build: ✓ pnpm build, which is what the Cloudflare preview runs.
  • Dedupe: pnpm why @payloadcms/live-preview → "Found 1 version", down from 2.
  • Worker graph: after pnpm build, grep -rl 'undici\|BalancedPool' dist/server finds nothing.
  • Targeted check: pnpm exec wrangler --version → 4.147.0, and it accepts
    wrangler.toml unchanged, compatibility_date = "2025-09-06" included.

Manual verification

  1. Run pnpm prod once. This is the only path the wrangler bump touches, and
    it is the one thing no automated gate here exercises — CI runs pnpm build,
    not the Workers runtime. Confirm the Worker boots and a page renders.

Notes for reviewer

The judgement call worth checking: I did not add an undici override. The
two undici highs stay because payload pins undici at exactly 7.29.0, and
3.90.2 — the newest release — still does, so only a pnpm.overrides entry could
move it. They sit in the production graph, under
@payloadcms/richtext-lexical > payload. SahajAtlasWeb already carries that
exact override, so copying it would have looked like the house pattern.

I left it out on evidence: after pnpm build, grep -rl undici dist/server
finds nothing, so undici never reaches the Worker. Absent, not merely
unreferenced. Forcing payload onto a patch version it does not declare, to
clear an audit row for code that does not ship, is a cost with no matching
benefit. Neither advisory is reachable regardless — we open no WebSocket through
undici and use no BalancedPool. Say the word and I will add the override
anyway if you would rather pnpm audit --prod read clean.

braces has no fix at all. pnpm audit names >=3.0.4 as its patched
range, and 3.0.3 is the newest version ever published, so that range is empty.
It arrives through @ladle/react's glob walker, on patterns we author — dev
only.

@payloadcms/* moved 3.88.0 → 3.90.2 but server/payload-types.ts is
untouched.
That file is a committed copy of SahajCloud's, re-synced by
pnpm types:cms in its own bot PR when the producer moves — not by a client
package bump. No contract surface is in this diff.

Detail

Commits, one per behaviour:

  1. chore(deps) — the lockfile and the declared floors.
  2. docs(hooks) — the vike-react version claim. Superseded by 4.
  3. fix(hooks) — drop the version from that comment entirely.
  4. fix(deps) — rejoin live-preview-react to the Payload set.

Why live-preview-react moved. Its three siblings went to ^3.90.2 while
the exact pin stayed at 3.88.0, so the lockfile carried
@payloadcms/live-preview at both 3.88.0 (under the react wrapper) and 3.90.2
(direct) where main carried one. I fetched both npm tarballs of both packages
and diffed them: identical across 3.88.0 → 3.90.2 bar their own version strings
and their payload peer reference. #63 introduced the pin and records no reason
for it.

How the vike-react claim was verified, before it was deleted. Read off the
installed 0.6.29: the React context is still created with an undefined default
and usePageContext() still returns it unguarded. The 809 passing tests render
components bare, with no provider, so they exercise it too.

No security review ran, correctly. This repo's
securityReview.triggerPattern covers server/, pages/preview/,
wrangler.toml, vite.config.ts, the Sentry configs, scripts/, .env and
.dev.vars. The diff touches package.json, pnpm-lock.yaml and
hooks/usePageContext.ts, so it does not match. The supply-chain question the
pattern would have asked is answered above instead, against the built Worker
rather than the lockfile.

Reviewed with /code-review-class reading of the full branch diff plus
comment-lint.mjs --base origin/main (no banned comment added). The
/pr-review-toolkit plugin is not installed in a routine session.

Not taken in this PR. Everything else pnpm outdated lists is a major:
eslint 10, typescript 7, vite 8, vitest 5, @sentry/* 11,
@vitejs/plugin-react 6, jose 6, @types/node 26. Each needs its own PR with
its changelog read, and none may be batched or combined with a security fix.


🤖 Generated with Claude Code

https://claude.ai/code/session_012mJHFSsgnE2qC52UjswTR4

claude added 2 commits October 5, 2026 08:30
…hain

`pnpm audit` goes from 10 high to 3. The three that remain are examined below
— none has a fix this repo can take.

Cleared, all in the dev graph:

- wrangler 4.129.0 -> 4.147.0 — miniflare's undici 7.29.0 -> 7.29.1
  (GHSA-rfgv-xxqx-mfg5, GHSA-w293-vg96-wgc3) and sharp 0.35.2 -> 0.35.4
  (GHSA-rgj7-g3m4-5g8c, the libheif RCE). wrangler is how `pnpm prod` runs the
  Worker locally, so these ran on a developer's machine. 4.147.0 accepts
  wrangler.toml unchanged, compatibility_date included.
- eslint, typescript-eslint 8.69.0 -> 8.71.0 and @sentry/vite-plugin —
  brace-expansion's three vulnerable lines (GHSA-qhr7-859c-m2p7,
  GHSA-6j4f-fj2g-mc7p).

Routine, no advisory: react and react-dom 19.2.8 -> 19.3.0, zod 4.5.4 -> 4.6.5,
hono 4.13.7 -> 4.13.13, vike 0.4.266 -> 0.4.267, vike-react 0.6.26 -> 0.6.29,
hls.js, react-hook-form, @sentry/react, the three @payloadcms packages
3.88.0 -> 3.90.2, @cloudflare/workers-types, prettier, globals and the @types.

Not fixed, and why:

- undici 7.29.0 stays in the graph through payload, which pins it exactly at
  7.29.0 — 3.90.2, the newest release, still does. Only an override could move
  it, and it does not earn one: `grep -rl undici dist/server` finds nothing
  after `pnpm build`, so undici never reaches the Worker. Neither advisory is
  reachable anyway — we open no WebSocket through it and use no `BalancedPool`.
- braces GHSA-vfj7-8cjw-p6xm has no published fix. 3.0.3 is the newest version,
  so the ">=3.0.4" the advisory names does not exist. It arrives through
  @ladle/react's glob walker, on our own patterns.

@payloadcms/live-preview-react stays pinned at 3.88.0, and jose at 5.10.0.

Gate: lint, tsc --noEmit, 809 tests, and `pnpm build`.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013mJ9STzQPdTkjih1pGWRWX
The note says 0.6.26 returns `undefined` off-provider rather than throwing.
Re-read at 0.6.29: the React context is still created with an `undefined`
default and `usePageContext` still returns it unguarded, so the behaviour and
the `catch` guarding it are both unchanged.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013mJ9STzQPdTkjih1pGWRWX
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-web 3437761 Commit Preview URL

Branch Preview URL
Oct 05 2026, 08:50 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Deploying wemeditate-design with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3437761
Status: ✅  Deploy successful!
Preview URL: https://70946555.wm-design.pages.dev
Branch Preview URL: https://claude-chore-deps-routine-20.wm-design.pages.dev

View logs

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 5, 2026
@sydevs-bot

sydevs-bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 08:44Z address-review · attempt 1 · session · done
  • 08:44Z address-review · attempt 1 · session
  • 08:34Z adversarial-review · attempt 1 · session · done
  • 08:34Z adversarial-review · attempt 1 · session

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🧐 Adversarial review

Shape is right — in-range refresh, majors deferred, accounting accurate.

Your judgement call holds, on stronger evidence. After pnpm build, dist/server carries no undici, BalancedPool or RetryHandler, while @payloadcms/* sits in four chunks. Absent, not unreferenced. Skip the override.

Findings

  • should-fix — package.json:31: the untouched pin ships @payloadcms/live-preview twice; main shipped one. Both versions are byte-identical.
  • should-fix — hooks/usePageContext.ts:19: the comment names a version, the only reason commit 2 exists.
  • should-fix — Summary calls all 3 highs dev-graph. Two are production, under payload ← @payloadcms/sdk.

What was checked

  • Built 56b6447, grepped dist/server. pnpm audit: 3 highs, braces patched range empty.
  • Diffed npm tarballs of both live-preview packages, 3.88.0 against 3.90.2.
  • @payloadcms/live-preview lock entries: 1 on main, 2 here.
  • Read usePageContext.ts and live-preview/document.tsx; the latter imports a type only.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread hooks/usePageContext.ts Resolved
Comment thread package.json Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 5, 2026
claude added 2 commits October 5, 2026 08:47
The line named `vike-react 0.6.29`, so every bump had to touch it — the
moving target `docs/rules/code-comments.md` forbids. The module JSDoc
already states that `usePageContext()` returns `undefined` off-provider,
so only the `catch`'s own reason was left to carry.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012mJHFSsgnE2qC52UjswTR4
Its three siblings moved to ^3.90.2 while this exact pin stayed at
3.88.0, so the lockfile carried `@payloadcms/live-preview` twice where
main carried it once. `pnpm why` now reports one version again.

Both tarballs are byte-identical across 3.88.0 -> 3.90.2 bar their own
version strings, and #63 recorded no reason for the exact pin.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012mJHFSsgnE2qC52UjswTR4
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

All three adversarial findings adopted. Pushed 3437761.

  • package.json:31 — pinned live-preview-react to 3.90.2 in 3437761. pnpm why reports one version of @payloadcms/live-preview again, down from two. Resolved.
  • hooks/usePageContext.ts:19 — dropped the version from the comment in bb8b1ee. Resolved.
  • The dev-graph claim had no thread. The body now says two of the three remaining highs are production, under @payloadcms/richtext-lexical > payload.

Nothing rebutted, nothing asked.

Re-verified on 3437761: lean gate green, pnpm build green, and grep -rl 'undici\|BalancedPool' dist/server still finds nothing. The no-override judgement holds.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 5, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review October 5, 2026 08:53
@sydevs-bot
sydevs-bot requested a review from Ardnived October 5, 2026 08:53
@sydevs-bot
sydevs-bot enabled auto-merge October 5, 2026 08:53
@sydevs-bot sydevs-bot moved this from Revising to Approved in SYDevelopers Technical Roadmap Oct 5, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 5, 2026
Merged via the queue into main with commit c9c19b4 Oct 5, 2026
49 of 50 checks passed
@sydevs-bot
sydevs-bot deleted the claude/chore-deps-routine-2026-10 branch October 5, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants