Repository navigation
chore(deps): routine minor and patch updates - #1166
Conversation
Ten in-range bumps, inside the declared caret ranges. No majors. The Payload family is pinned exact at 3.90.2 and does not move; it is #1165's to move. One of the ten does not stand on its own. @apidevtools/json-schema-ref-parser goes 15.1.3 -> 15.5.2 transitively, and 15.5.2 changed its js-yaml dependency from ^4.1.1 to ^5.2.2. The `js-yaml: ^4.3.0` override answered that with 4.3.2, which exports no `binaryTag`, and the module fails to load. Two unit suites went red on it: SyntaxError: The requested module 'js-yaml' does not provide an export named 'binaryTag' tests/unit/sanitized-config-rules.spec.ts tests/unit/meditation-transcripts-verify-run.spec.ts So the override is scoped to the major it was written for, the way picomatch, minimatch, yaml and brace-expansion already are. 4.x consumers still get >=4.3.0; json-schema-ref-parser gets js-yaml 5.5.0. The scope and the bump ship together because neither is green without the other. pnpm audit is unchanged either side of that: 0 critical, 0 high, 3 moderate, 1 low. js-yaml appears in none of them. Checked for breakage: - next 16.4.6 compresses a route handler's response when it is not already compressed. No handler under src/ sets Content-Length or Content-Encoding by hand, so none of them can disagree with it. - lucide-react crosses seven minors. tsc and eslint both pass, which is what would catch a renamed or withdrawn icon. The lockfile also deduplicates heavily: rollup 4.61.1 + 4.67.4 -> 4.68.3, ws three copies -> one, postcss two -> one, caniuse-lite three -> one, node-releases two -> one. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXRpFu9wcqcwPMxF2N
|
🚅 Deployed to the SahajCloud-pr-1166 environment in sahajcloud
1 service not affected by this PR
|
|
🤖 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 diff is the size of its problem: ten in-range bumps plus the one override line that had to move with them. The scope fix is right, reusing the file's own convention (picomatch, minimatch, yaml, brace-expansion). No code, no contract surface — src/payload-types.ts is untouched, so both type-consumer repos are unaffected. One thing first: the same latent bug sits in three more entries of this file, and the body defers it on "the next time one of them bites".
Not this PR's: eslint 9.x is deprecated in every published version, so no in-range move exists and the line gets no further security fixes. A major-bump decision across all three TS repos, and yours.
Findings
should-fix—pnpm-workspace.yaml:74: three unscoped overrides already have a next major published. Scope them here.
What was checked
pnpm-workspace.yamlread whole.nodemailerandhappy-domare ⚠ deliberately cross-major and excluded;vite/esbuildare caps, not floors. Thebraces/happy-domprose says not to re-derive it; I did not.- Lockfile against the body: 4.3.2 kept, 5.5.0 added only under
@apidevtools/[email protected];nodemailer10.3.1 → 10.6.0; the override key is the only non-version change in the header. 5.5.0 is the newest js-yaml published, so no fix sits above it. - Every unscoped override resolves to one copy, inside its major: latent, not live.
next16.4.6: nothing undersrc/writesContent-Length/Content-Encodingby hand.lucide-reactcrosses seven minors, but a dropped icon export failstsc --noEmit, which the gate ran. The admin check is rendering only.- Preview at
62dcbc4:/api/healthanswers 200 with the PR's commit./adminand/api/openapi.jsonsit behind Cloudflare Access with neither credential half here, so the ref-parser path is unverified.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
`@opentelemetry/core`, `@babel/core` and `undici` each have a next major published, so an unscoped floor answers a parent that declares one with a version below its range, silently. `undici` was already doing it. `@apidevtools/[email protected]` declares `undici: ^6.28.0` and the unscoped `^7.29.1` was answering it with 7.30.2. Scoped, it gets 6.29.1, the newest 6.x — a second copy in the tree, and the only lockfile change here. GHSA-4cwx-7wf7-3272, the advisory the entry exists for, starts at 7.0.0, so the 6.x line needs no floor of its own; `pnpm audit` is unchanged at 0 critical, 0 high, 3 moderate, 1 low. The other two were latent: both resolve to one copy inside their current major, so the lockfile does not move for them. `nodemailer` and `happy-dom` stay unscoped — both are deliberately past a declared major. `vite` and `esbuild` are exact caps, not floors, so scoping does not apply. `dompurify`, `ws`, `flatted` and `postcss` have no next major published. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVq3T5BPqVMhvqYnh7
|
Pushed af348f5. The review's one finding is built. Adopted — One premise corrected. Lean gate green on af348f5 — 282 files, 3876 tests. Body carries the new section. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Conflicts were the three manifests, against main's routine update (#1166). - package.json: this branch's 3.92.1 pins, plus main's @photostructure/tz-lookup ^11.8.0 (next ^16.4.6 merged cleanly). - pnpm-workspace.yaml: the undici and nodemailer overrides stay dropped. Main had only rescoped undici to `undici@^7.0.0`; [email protected] pins 7.30.1 itself and [email protected] no longer caps at 9.x. - pnpm-lock.yaml: main's lockfile, re-resolved with `pnpm install`. The package set equals both sides' changes combined, except undici resolves 7.30.1 (payload's exact pin) instead of main's override-driven 7.30.2. `pnpm audit --prod` reports the same four advisories as main, none undici. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
js-yamloverride scoped to the major it was written for, or two unit suites fail to load.undici, was not latent: it was already answering a^6dependency with 7.30.2.Change outline
Contract — what resolves after
pnpm installRuntime:
Dev:
Behaviour — the override that stopped being right
This is the part of the PR that is not a version number.
pnpm-workspace.yamlcarries atransitive-security override
js-yaml: '^4.3.0', unscoped, so it answers everyjs-yamldependency in the tree. That was harmless while every consumer wanted 4.x. It stopped being
harmless here:
dist/lib/parsers/yaml.js:2importsbinaryTagfromjs-yaml, which is a 5.x export. Against4.3.2 the module throws on load, and two suites went red with no test failure in them — they
failed to collect:
The fix is the convention
pnpm-workspace.yamlalready uses forpicomatch,minimatch,yamland
brace-expansion— scope the pin to the vulnerable major, and leave the other major linealone:
Who gets what afterwards:
The pin is not loosened: every 4.x consumer still gets
>=4.3.0.pnpm auditis identical onboth sides of this — 0 critical, 0 high, 3 moderate (
csv-parse,glob,minimatch), 1 low(
deepmerge) — andjs-yamlappears in none of them.Behaviour — the same shape in three more entries
@opentelemetry/core,@babel/coreandundicieach have a next major published, so each is anunscoped floor that will one day answer a parent declaring that major:
Two of the three are latent — one copy each, inside the current major, so the lockfile does not
move for them.
undiciwas not.@apidevtools/[email protected], new in thisPR, declares
undici: ^6.28.0, and the unscoped^7.29.1was answering it with 7.30.2: out ofrange, applied silently, the same failure as the
js-yamlentry above and shipped in the samecommit. Scoped, it resolves to 6.29.1, the newest 6.x, and that is the whole lockfile change here.
Nothing loses its floor. GHSA-4cwx-7wf7-3272, the advisory the
undicientry exists for, affects>=7.0.0 <7.29.0and>=8.0.0 <8.9.0, so the 6.x line sits outside it and needs no entry of itsown.
pnpm auditis unchanged either side: 0 critical, 0 high, 3 moderate, 1 low.The rest stay unscoped on purpose.
nodemailerandhappy-domare marked ⚠ as deliberately pasta declared major.
viteandesbuildare exact caps, not floors.dompurify,ws,flattedand
postcsshave no next major published, so none of them can answer one wrongly yet.Transitive — the rest of what the lockfile moves
200 package names move, 11 are new and 19 drop out. The bulk belong to the declared bumps:
@aws-sdk/*and@smithy/*(22),@rollup/rollup-*(27),@unrs/resolver-binding-*(18),@next/swc-*(8),@babel/*(14),@typescript-eslint/*8.60.0 → 8.72.2 (11, undereslint-config-next). Worth naming on their own:The tree gets tidier, not messier. Six names collapse from several copies to one:
Preview
Railway builds this preview from the PR number, so the host is known already:
Admin dashboard — the whole admin renders through
lucide-react, which crosses seven minors hereEvents list — a dense table, the densest icon surface in the app
Health endpoint — a route handler, which
next16.4.6 now compresses automaticallyOpenAPI document — built through
@apidevtools/json-schema-ref-parser, the package at the centre of the override change aboveData: not fetched. This environment holds neither
PREVIEW_ACCESS_CLIENT_IDnorPREVIEW_ACCESS_CLIENT_SECRET, so the run could not pass the Cloudflare Access gate in front of the preview.previewUrl.seedis unset for this repo, so nothing seeds it either. The links are correct for the PR number; whether they open on content is unverified here.Test results
.claude/skills/pr-prep/check.shonaf348f5—eslint . --max-warnings 0,prettier --check .,tsc --noEmit(src and tests), and the Tier 2 unit lane: 282 files, 3876 tests passed, in 70 s. Same counts as on62dcbc4.tests/unit/sanitized-config-rules.spec.tsandtests/unit/meditation-transcripts-verify-run.spec.ts, both collect and pass. Before the scope fix the same run was 280 passed / 2 failed, 3854 tests.Manual verification
lucide-reactmoved seven minors and the admin is where every icon renders./api/openapi.jsonand confirm it is valid JSON with$refs resolved — that document is what@apidevtools/json-schema-ref-parserbuilds, and it is the package whose js-yaml requirement changed.Notes for reviewer
src/components/CLAUDE.mdfor@radix-ui/react-focus-scope, where the symptom would have been silent rather than loud. The three entries with a next major published are scoped inaf348f5; the section above says which, and whyundiciwas the one already misfiring.next16.4.6 compresses route-handler responses that are not already compressed. Nothing undersrc/setsContent-LengthorContent-Encodingby hand, so no handler can disagree with it. The other two backports in 16.4.4–16.4.6 are Turbopack dev GC fixes and acreate-next-appTailwind pin, neither of which reaches this repo.@payloadcms/*andpayloadentry is pinned exact at3.90.2, sopnpm updatecannot touch them. chore(deps): bump the Payload family to 3.92.1 for the consumers #1165 is the PR that moves them, and both consumer repos wait on it — fix(deps): the live-preview pin is load-bearing, and #222 widened it to a caret WeMeditateWeb#223 is where that coupling is written down.pnpm-lock.yaml. Both rewrite it. Whichever merges second needs a rebase, which for a lockfile means re-runningpnpm installrather than resolving hunks.package.json,pnpm-lock.yamlandpnpm-workspace.yaml, and it matches none ofsecurityReview.triggerPattern. That still holds foraf348f5./simplifyor/code-reviewpass: there is no code in the diff..mdin this repo names a version that moved, and the override's reasoning lives inpnpm-workspace.yamlitself, which the change updates.Detail
Majors available, deliberately not taken. The skill batches minors and patches only; a major
gets its own PR and its changelog read.
eslintis the one worth naming.eslint@9is deprecated on npm, every version of it —npm view [email protected] deprecatedanswers "This version is no longer supported", and 9.39.5 isthe last 9.x, so there is no in-range move at all, only the major. The line gets no further fixes,
security ones included. The same is true in sydevs/SahajAtlasWeb and sydevs/WeMeditateWeb, and the
eslint family has to move together in each.
The 19 names that drop out are mostly deduplication fallout:
@types/estree,hasown,tslib,nanoid,browserslist,update-browserslist-db,base64id,debounce,tinyrainbow,pg-protocol,@babel/helper-validator-identifier,@eslint-community/eslint-utils,@types/ws, and the@emnapi/@napi-rs/@tybysWASMruntime trio that
unrs-resolver1.13.0 no longer needs on this platform. Nothing that drops isdeclared in
package.json.The 11 new names are the other half of that:
path-scurry,[email protected],@isaacs/nonrecursive-glob-match,node-exports-info,es-abstract-get,is-document.all,@humanfs/types,@swc/helpers, and three@unrs/resolver-binding-*platform binaries(loong64 gnu and musl, openharmony arm64) that 1.13.0 adds.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Mg9rjXRpFu9wcqcwPMxF2N