Repository navigation
chore(deps): in-range update clears every advisory with a published fix - #249
Conversation
`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
Deploying sahajatlas-design with
|
| Latest commit: |
8be573f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ca9da489.sahajatlas-design.pages.dev |
| Branch Preview URL: | https://claude-chore-deps-routine-20.sahajatlas-design.pages.dev |
Deploying sahajatlas with
|
| 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 |
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 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
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
|
Both review threads adopted. Head is 8be573f.
Also took the review summary's other half, in 8be573f: Full gate green on the new head, 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Summary
pnpm updatetakespnpm auditfrom 7 high / 5 moderate / 1 low to one high.pnpm audit --prodgoes 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
dompurifywas in theproduction graph:
GHSA-jg8r-5jh2-v2xjis the interesting one: it had no published fix and wasbounded at
payload <=3.88.0, so moving@payloadcms/sdkpast it took theadvisory 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.jsonalready 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:
Files — four version-pinned claims, re-measured not renumbered
Each names a version that moved, and each was checked against the new one:
Preview
Both Cloudflare projects deployed this branch:
Test results
Re-run on the current head after the review round:
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 thepre-review run —
standalone308.7 KiB / 318,loader2.8 / 3.5,embed310.5 / 318. No budget was touched.pnpm audit:check: ✓ 0 advisories in production dependencies, 0 new above high.pnpm ladle:build: ✓ includingassert:mapsacross 163 emitted files.sanitize.test.tsis the one that matters fordompurify—it pins
ALLOWED_TAGSagainstlexicalToHtmlin both directions and passes.Notes for reviewer
The judgement call worth checking:
bracesstays.pnpm auditnames>=3.0.4as its patched range, and 3.0.3 is the newest version everpublished, 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 globwalker, on glob patterns we author.
scripts/audit-baseline.jsonalreadyrecords 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.
dompurifyis the one bump with production behaviour behind it. Thesanitizer's allowlist is load-bearing and has been silently overridden once
before (#101,
USE_PROFILES). I did not change the config. The patch releaseonly fixes the advisory, and the precedence the docblock warns about was
re-measured at 3.4.16: with
ALLOWED_TAGS: ['p']besideUSE_PROFILES,div,img,formandinputall still survive, soUSE_PROFILESstillreplaces rather than narrows.
sanitize.test.tspassing in both directions isthe evidence the contract is intact.
@payloadcms/live-preview-reactmoved off an exact pin that had no reasonbehind it. 4a333b5 (#208) re-adopted the library and typed
3.88.0withnothing in the repo saying why, so it would have trailed
@payloadcms/sdkbytwo minors of one upstream monorepo. It now tracks the version that actually
constrains it: SahajCloud pins
payloadto exactly 3.90.2, and this librarymerges a message that CMS mints. The bump is version identity only —
@payloadcms/live-preview-reactand its one dependency@payloadcms/live-previewboth diff byte-identical between 3.88.0 and3.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.mdnowrecords why: a caret would let a fresh resolve carry the merge semantics ahead
of the CMS that produces them.
The
mapbox.mdcorrection went one round deeper than a version refresh, andthe first attempt at it was wrong. The pre-review version said both
document.fullscreenElementreads sat behind oneisFullscreen()helper sharedby
FullscreenControl. Read off 3.32.0's owndist/mapbox-gl-dev.js, that iswrong twice:
isFullscreen()has exactly three callers and all three arecooperative-gestures blockers behind a
_cooperativeGesturesguard, while thesecond read is inline in
FullscreenControl._changeIcon(), which never callsthe 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:
chore(deps)— the lockfile and the declared floors.docs(deps)— the two version-pinned claims the bump invalidated.fix(docs)— splits the two fullscreen reads apart (review thread 1).chore(deps)— live-preview-react onto SahajCloud's payload version, withthe reason for the exact pin recorded (review thread 2).
docs(deps)— re-measures the two older version-pinned claims the firstsweep skipped.
How each claim was verified, not assumed.
mapbox-gl3.32.0, read off the dev bundle:elementFromPoint0occurrences,
document.body0,ownerDocument0,attachShadow0,document.fullscreenElementexactly 2 — one inisFullscreen()atmapbox-gl-dev.js:8971, one in_changeIcon()at:113396. The helper'sthree call sites are
:95538,:95777and:96218, each inside athis._map._cooperativeGesturesbranch.grep -rn 'FullscreenControl\|cooperativeGestures' src/returns nothing, so we render neither path.
use-mapbox.ts's four mechanics at 3.32.0:flyToopens withif (this._prefersReducedMotion(options))and delegates tojumpTothroughan
index.picklist that still carriespaddingandretainPadding;_fitInternalis stilloptions.linear ? this.easeTo(…) : this.flyTo(…);easeTostill hasif (options.animate === false || …) options.duration = 0;_cameraForBoundsstill clamps withMath.min(tr.scaleZoom(…), options.maxZoom).dompurify3.4.16: the html tag and attribute tables indist/purify.cjs.jscount 119 and 118, unchanged. Precedence re-measured by running the sanitizer
rather than reading it.
@types/luxon3.7.6: dropping theDateTime[]annotation still failstypecheck with
TS2322: Type 'DateTime<boolean>' is not assignable to type 'DateTime<true> | DateTime<false>'. The annotation is still load-bearing, sothe comment keeps its claim and only its version changed.
Supply chain. The lockfile adds two packages beyond version identity:
sax(a newpayloadtransitive) andmicromark-util-edit-map(an internalmicromarksplit). Neither carries an advisory. The threepatchedDependencies—[email protected],@radix-ui/[email protected],[email protected]— still resolve to the exact versions their patch filenamesname, which is why
pnpm installsucceeded. The existingundici: ^7.29.1override resolves to 7.30.0, above its patched floor.
Security review ran.
package.jsonandpnpm-lock.yamlboth match thisrepo's
securityReview.triggerPattern, so the pass was not skipped. Nofindings: 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 outdatedentry is a major:React 19,
@schedule-x4,framer-motion14,react-router8,i18next26,zod4,swiper14,typescript7,eslint10 and the rest. Each needs itsown 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