Skip to content

chore(deps): in-range update clears every advisory with a published fix - #249

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

sydevs-bot merged 5 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 7 high / 5 moderate / 1 low to one high.
  • pnpm audit --prod goes from 3 advisories to 0. The one left has no published fix.

Change outline

No source behaviour changes. Three shapes moved: the resolved dependency graph, one
exact pin that was habit, and four prose claims that name a version the lockfile no
longer ships.

Contract — the advisory set

What leaves the graph, and by which bump. Only dompurify was in the
production graph:

-GHSA-p98j-92pf-mc4p  low   dompurify 3.4.13-3.4.15     # PROD — the sanitizer
+                           dompurify 3.4.16
-GHSA-jg8r-5jh2-v2xj  mod   payload <=3.88.0            # PROD — no fix published
+                           payload 3.90.2, via @payloadcms/sdk
-GHSA-hrr3-gc8f-f4qj  mod   fast-uri <3.1.8
-GHSA-qhr7-859c-m2p7  high  brace-expansion  x3 lines   # dev graph
-GHSA-6j4f-fj2g-mc7p  high  brace-expansion  x3 lines   # dev graph
-GHSA-q2hr-2g5m-vwhr  mod   brace-expansion  x3 lines   # dev graph
 GHSA-vfj7-8cjw-p6xm  high  braces <=3.0.3              # STAYS — see below

GHSA-jg8r-5jh2-v2xj is the interesting one: it had no published fix and was
bounded at payload <=3.88.0, so moving @payloadcms/sdk past it took the
advisory out of the graph rather than patching it. That is the third time this
repo has exited an unpatched transitive instead of waiting it out — the note in
scripts/audit-baseline.json already records the other two.

Types — declared ranges

Floors move with the lockfile, so a fresh resolve cannot re-acquire what was
cleared. Deliberate pins are untouched, with one exception called out below:

 package.json
-  @payloadcms/sdk   ^3.88.0        dompurify   ^3.4.15
+  @payloadcms/sdk   ^3.90.2        dompurify   ^3.4.16
-  mapbox-gl         ^3.30.0        react-router ^7.18.3
+  mapbox-gl         ^3.32.0        react-router ^7.18.4
-  @sentry/browser   ^10.73.0       @tanstack/react-query ^5.102.8
+  @sentry/browser   ^10.76.0       @tanstack/react-query ^5.104.1
-  react-hook-form   ^7.87.0        vite        ^8.2.2
+  react-hook-form   ^7.89.0        vite        ^8.3.2
-  @types/luxon      ^3.7.5         @types/node ^22.20.1
+  @types/luxon      ^3.7.6         @types/node ^22.20.5
-  @payloadcms/live-preview-react  3.88.0       # exact, and skewed — see below
+  @payloadcms/live-preview-react  3.90.2       # exact, now = SahajCloud's payload
   @schedule-x/*     2.36.0         # pinned — untouched
   lucide-react      1.35.0         # exact — untouched
   prettier, typescript, @typescript-eslint/*, postcss   # exact — untouched

Files — four version-pinned claims, re-measured not renumbered

Each names a version that moved, and each was checked against the new one:

 docs/rules/mapbox.md       "Each line below was read off the installed version"
-  mapbox-gl 3.30.0 … two document.fullscreenElement reads belong to FullscreenControl
+  mapbox-gl 3.32.0 … the two reads have two different reasons: one inline in
+                     _changeIcon() on a control we never render, one in the
+                     isFullscreen() helper whose three callers are all
+                     cooperative-gestures blockers
 src/components/organisms/EventDetails/sanitize.ts   the USE_PROFILES override
-  dompurify 3.4.13 … html profile = 119 tags, 118 attributes
+  dompurify 3.4.16 … still 119 / 118, and USE_PROFILES still REPLACES ALLOWED_TAGS
 src/hooks/use-mapbox.ts    the first-camera-command jump
-  mapbox-gl 3.9.2 … jumpTo keeps padding; fitBounds needs linear + animate:false
+  mapbox-gl 3.32.0 … all four mechanics re-read and unchanged
 src/lib/shape/event.ts     the DateTime[] annotation
-  @types/luxon 3.7.5 narrows setZone's return
+  @types/luxon 3.7.6 narrows setZone's return   # still load-bearing

Preview

Both Cloudflare projects deployed this branch:

Test results

Re-run on the current head after the review round:

  • Lean gate: ✓ check.sh --full — lint, typecheck (app + tests), test:run
    (1665 tests, 135 files), production build, and pnpm size.
  • pnpm size: ✓ all three graphs inside budget, and identical to the
    pre-review run
    — standalone 308.7 KiB / 318, loader 2.8 / 3.5,
    embed 310.5 / 318. No budget was touched.
  • pnpm audit:check: ✓ 0 advisories in production dependencies, 0 new above high.
  • pnpm ladle:build: ✓ including assert:maps across 163 emitted files.
  • Targeted specs: sanitize.test.ts is the one that matters for dompurify —
    it pins ALLOWED_TAGS against lexicalToHtml in both directions and passes.

Notes for reviewer

The judgement call worth checking: braces stays. 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 — "a fix exists" is what the audit output
implies and not what is true. It reaches us only through @ladle/react's glob
walker, on glob patterns we author. scripts/audit-baseline.json already
records that the exit for this exact advisory is to leave the graph, not to wait
for a patch, so I did not re-add the baseline entry #246 deleted.

dompurify is the one bump with production behaviour behind it. The
sanitizer's allowlist is load-bearing and has been silently overridden once
before (#101, USE_PROFILES). I did not change the config. The patch release
only fixes the advisory, and the precedence the docblock warns about was
re-measured at 3.4.16: with ALLOWED_TAGS: ['p'] beside USE_PROFILES,
div, img, form and input all still survive, so USE_PROFILES still
replaces rather than narrows. sanitize.test.ts passing in both directions is
the evidence the contract is intact.

@payloadcms/live-preview-react moved off an exact pin that had no reason
behind it.
4a333b5 (#208) re-adopted the library and typed 3.88.0 with
nothing in the repo saying why, so it would have trailed @payloadcms/sdk by
two minors of one upstream monorepo. It now tracks the version that actually
constrains it: SahajCloud pins payload to exactly 3.90.2, and this library
merges a message that CMS mints. The bump is version identity only —
@payloadcms/live-preview-react and its one dependency
@payloadcms/live-preview both diff byte-identical between 3.88.0 and
3.90.2, the lockfile gains no transitive, and all three size graphs are
unchanged to 0.1 KiB. The pin stays exact, and docs/rules/data-layer.md now
records why: a caret would let a fresh resolve carry the merge semantics ahead
of the CMS that produces them.

The mapbox.md correction went one round deeper than a version refresh, and
the first attempt at it was wrong. The pre-review version said both
document.fullscreenElement reads sat behind one isFullscreen() helper shared
by FullscreenControl. Read off 3.32.0's own dist/mapbox-gl-dev.js, that is
wrong twice: isFullscreen() has exactly three callers and all three are
cooperative-gestures blockers behind a _cooperativeGestures guard, while the
second read is inline in FullscreenControl._changeIcon(), which never calls
the helper. The verdict survives — neither read can run here — but now for two
stated reasons instead of one wrong one.

Detail

Commits, one per behaviour:

  1. chore(deps) — the lockfile and the declared floors.
  2. docs(deps) — the two version-pinned claims the bump invalidated.
  3. fix(docs) — splits the two fullscreen reads apart (review thread 1).
  4. chore(deps) — live-preview-react onto SahajCloud's payload version, with
    the reason for the exact pin recorded (review thread 2).
  5. docs(deps) — re-measures the two older version-pinned claims the first
    sweep skipped.

How each claim was verified, not assumed.

  • mapbox-gl 3.32.0, read off the dev bundle: elementFromPoint 0
    occurrences, document.body 0, ownerDocument 0, attachShadow 0,
    document.fullscreenElement exactly 2 — one in isFullscreen() at
    mapbox-gl-dev.js:8971, one in _changeIcon() at :113396. The helper's
    three call sites are :95538, :95777 and :96218, each inside a
    this._map._cooperativeGestures branch. grep -rn 'FullscreenControl\|cooperativeGestures' src/
    returns nothing, so we render neither path.
  • use-mapbox.ts's four mechanics at 3.32.0: flyTo opens with
    if (this._prefersReducedMotion(options)) and delegates to jumpTo through
    an index.pick list that still carries padding and retainPadding;
    _fitInternal is still options.linear ? this.easeTo(…) : this.flyTo(…);
    easeTo still has if (options.animate === false || …) options.duration = 0;
    _cameraForBounds still clamps with Math.min(tr.scaleZoom(…), options.maxZoom).
  • dompurify 3.4.16: the html tag and attribute tables in dist/purify.cjs.js
    count 119 and 118, unchanged. Precedence re-measured by running the sanitizer
    rather than reading it.
  • @types/luxon 3.7.6: dropping the DateTime[] annotation still fails
    typecheck with TS2322: Type 'DateTime<boolean>' is not assignable to type 'DateTime<true> | DateTime<false>'. The annotation is still load-bearing, so
    the comment keeps its claim and only its version changed.

Supply chain. The lockfile adds two packages beyond version identity:
sax (a new payload transitive) and micromark-util-edit-map (an internal
micromark split). Neither carries an advisory. The three
patchedDependencies — [email protected], @radix-ui/[email protected],
[email protected] — still resolve to the exact versions their patch filenames
name, which is why pnpm install succeeded. The existing undici: ^7.29.1
override resolves to 7.30.0, above its patched floor.

Security review ran. package.json and pnpm-lock.yaml both match this
repo's securityReview.triggerPattern, so the pass was not skipped. No
findings: the diff is dependency versions plus prose version refreshes, and
the one behaviour-bearing bump is itself a security fix whose contract is pinned
by a passing test.

Not taken in this PR. Every remaining pnpm outdated entry is a major:
React 19, @schedule-x 4, framer-motion 14, react-router 8, i18next 26,
zod 4, swiper 14, typescript 7, eslint 10 and the rest. 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_01ACFLPqetwEAjT37C9D5pWD

claude added 2 commits October 5, 2026 08:25
`pnpm audit` goes from 7 high / 5 moderate / 1 low to one high with no fix
published. `pnpm audit --prod` goes from 3 advisories to 0.

What moved, and why:

- dompurify 3.4.15 -> 3.4.16 — GHSA-p98j-92pf-mc4p. The only advisory of the
  set that was in the production graph, and it sits under the one component
  that sanitizes CMS prose. `sanitize.test.ts` pins ALLOWED_TAGS against
  `lexicalToHtml` in both directions and still passes, so the allowlist
  contract is unchanged.
- @payloadcms/sdk 3.88.0 -> 3.90.2 — clears GHSA-jg8r-5jh2-v2xj, which had no
  fix published and left the graph instead: it bounded payload at <=3.88.0.
  Adds `sax` as a payload transitive, which carries no advisory.
- mapbox-gl 3.30.0 -> 3.32.0 — routine. Re-read against the shadow-boundary
  audit in docs/rules/mapbox.md: `elementFromPoint`, `document.body` and
  `ownerDocument` are all still absent, and the two `document.fullscreenElement`
  reads are still the only ones.
- @sentry/browser 10.73.0 -> 10.76.0, @tanstack/react-query 5.102.8 -> 5.104.1,
  react-hook-form 7.87.0 -> 7.89.0, react-router 7.18.3 -> 7.18.4,
  vite 8.2.2 -> 8.3.2, @types/node 22.20.1 -> 22.20.5,
  @types/luxon 3.7.5 -> 3.7.6 — routine. The six brace-expansion highs and the
  fast-uri moderate leave the dev graph with these.

braces GHSA-vfj7-8cjw-p6xm stays. 3.0.3 is the newest published version, so
the ">=3.0.4" the advisory names does not exist. It reaches us only through
@ladle/react's glob walker, and scripts/audit-baseline.json already records
that the exit is to leave the graph, not to wait.

Deliberate pins left alone: @schedule-x/* at 2.36.0, lucide-react, prettier,
typescript, the two @typescript-eslint packages, postcss,
@payloadcms/live-preview-react, and the three patchedDependencies, which still
resolve to the versions their patches name.

Gate: lint, typecheck, test:run, build, `pnpm size` (all three graphs inside
budget), and `ladle:build`.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013mJ9STzQPdTkjih1pGWRWX
Both name a version the lockfile no longer ships, and both were re-read
against the new one rather than assumed.

docs/rules/mapbox.md's shadow-boundary audit says each line was read off the
installed version. At 3.32.0 the conclusion holds, but the reason given for
the `document.fullscreenElement` pair did not: both reads sit behind one
`isFullscreen()` helper that `FullscreenControl` shares with the
cooperative-gestures blocker alerts, which is code we do render. We set no
`cooperativeGestures`, so the guard short-circuits and neither read runs.

`src/lib/shape/event.ts`'s annotation is still load-bearing at @types/luxon
3.7.6 — dropping it still fails with TS2322 on `DateTime<boolean>`.

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

@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8be573f
Status: ✅  Deploy successful!
Preview URL: https://127b11e5.sahajatlas.pages.dev
Branch Preview URL: https://claude-chore-deps-routine-20.sahajatlas.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:45Z address-review · attempt 1 · session · done
  • 08:45Z 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

The shape is right — October's batched minor/patch update, no majors, nothing extra. The braces call holds. 3.0.3 is the newest version ever published, so the audit's >=3.0.4 range is empty, and the gate audits --prod only.

The prose sweep is the weak part. It refreshed only the claims this bump broke. Two older ones name packages it bumps. EventDetails/sanitize.ts:68 says dompurify 3.4.13, and use-mapbox.ts:61 says mapbox-gl 3.9.2. The first is this PR's one production-behaviour surface. Nothing here gates mapbox-gl at runtime either, and both previews are live now.

Findings

  • should-fix — docs/rules/mapbox.md:309, the fullscreen sentence misreads 3.32.0.
  • consider — package.json:39, live-preview-react trails the sdk by two minors.

Checked. [email protected]'s dist/mapbox-gl.js, for all five counts the doc claims and the callers of both fullscreen reads. Both lockfiles, for the braces paths and the single payload 3.90.2 resolution. check-audit.mjs and git grep for stale version literals.

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


Generated by Claude Code

Comment thread docs/rules/mapbox.md 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 3 commits October 5, 2026 08:49
Read off 3.32.0's own `dist/mapbox-gl-dev.js`: only one of the two
`document.fullscreenElement` reads is in the shared `isFullscreen()` helper, and
its three callers are all behind a `_cooperativeGestures` guard. The other is
inline in `FullscreenControl._changeIcon()`, which never calls the helper.

The verdict is unchanged — neither read can run here — but the old sentence
attributed both to one helper shared by the control, which is wrong twice. A doc
whose stated point is that it was read off the installed version has to be right
about what it read.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ACFLPqetwEAjT37C9D5pWD
The pin was habit, not intent: 4a333b5 (#208) re-adopted the library and typed an
exact version with no reason recorded anywhere in the repo.

It now tracks the version that actually constrains it. SahajCloud pins `payload`
to exactly 3.90.2, and this library merges a message that CMS mints, so trailing
it by two minors of one upstream monorepo had nothing behind it.

Both dists are byte-identical between 3.88.0 and 3.90.2 — `@payloadcms/live-preview-react`
and its only dependency `@payloadcms/live-preview` both diff empty — so this is
version identity and no behaviour. The lockfile gains no transitive.

The pin stays exact, and `docs/rules/data-layer.md` now says why: a caret would let
a fresh resolve carry the merge semantics ahead of the CMS that produces them.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ACFLPqetwEAjT37C9D5pWD
Both name a package this branch bumps, and the first prose sweep refreshed only
the claims the bump had broken. Each was re-measured against the installed
version rather than renumbered.

`sanitize.ts` — dompurify 3.4.16. The html profile is still 119 tags and 118
attributes, counted off `dist/purify.cjs.js`, and `USE_PROFILES` still REPLACES
`ALLOWED_TAGS`: with `ALLOWED_TAGS: ['p']` beside it, `div`, `img`, `form` and
`input` all survive. This is the PR's one production-behaviour surface, so the
version it claims to have been verified against has to be the one in the tree.

`use-mapbox.ts` — mapbox-gl 3.32.0. All four mechanics hold. `flyTo`'s
reduced-motion branch still delegates to `jumpTo` through a `pick` list carrying
`padding` and `retainPadding`; `_fitInternal` still reads
`options.linear ? easeTo : flyTo`; `easeTo` still zeroes `duration` on
`animate: false`; `_cameraForBounds` still clamps to `options.maxZoom`.

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

Copy link
Copy Markdown
Contributor Author

Both review threads adopted. Head is 8be573f.

  • Adopted — mapbox.md:309 in 7fe1175. The finding was right twice over: isFullscreen()'s three callers are all cooperative-gestures blockers, and _changeIcon() reads document.fullscreenElement inline without ever calling the helper. Each read now carries its own reason.
  • Adopted — package.json:39 in 41f7a59. The pin was habit. It now sits at 3.90.2, SahajCloud's own exact payload version, still exact, with the reason recorded in docs/rules/data-layer.md. Both dists diff byte-identical, so no behaviour moved.

Also took the review summary's other half, in 8be573f: sanitize.ts and use-mapbox.ts each named a version this branch bumps. Re-measured against 3.4.16 and 3.32.0 rather than renumbered — every claim holds.

Full gate green on the new head, size identical to before.

🤖 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:59
@sydevs-bot
sydevs-bot requested a review from Ardnived October 5, 2026 08:59
@sydevs-bot
sydevs-bot enabled auto-merge October 5, 2026 08:59
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 5, 2026
Merged via the queue into main with commit 802e788 Oct 5, 2026
49 of 50 checks passed
@sydevs-bot
sydevs-bot deleted the claude/chore-deps-routine-2026-10 branch October 5, 2026 16:40
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