Repository navigation
chore(deps): Payload 3.93.0, Vitest 5, vite 8 and TypeScript 6 - #1176
Conversation
Eleven exact pins move 3.90.2 to 3.93.0. drizzle-kit stays at 0.31.7, so the patch still keys. 3.93 adds one btree index per localized table, shipped as a migration. The nodemailer and undici overrides are dropped: the adapter now declares nodemailer ^10 and payload pins undici 7.30.1. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
The vite cap existed because @vitejs/plugin-react 4.5.2 could not take vite 8. plugin-react 6 requires it, so vite becomes a direct devDependency at 8.3.8 and the vite override goes. The esbuild override narrows to the drizzle-kit transitive that GHSA-67mh-4wv8-2f99 names. ESLint stays on 9: see the PR. Co-Authored-By: Claude Fable 5.2 <[email protected]>
TypeScript 7 typechecks src cleanly after the same fixes, but ships no JS compiler API, which two unit specs and typescript-eslint (<6.1) need, so the newest green version is 6.0.3. 6 removed tsconfig baseUrl: a bare 'seeds/env' import becomes relative, and Buffer is no longer assignable to BlobPart without narrowing its ArrayBuffer. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
🚅 Deployed to the SahajCloud-pr-1176 environment in sahajcloud
1 service not affected by this PR
|
main landed the 3.92.1 family bump and its payload_3_92 migration. This branch keeps 3.93.0, takes main's two spec fixes and drops its own duplicate migration: migrate:create finds nothing further to generate for 3.93.0. Co-Authored-By: Claude Fable 5.2 <[email protected]>
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Four version bumps, three one-line source adaptations, two comment edits. The diff is the size of its problem and adds no file, helper, type or config knob. The ladder finds nothing elective: vite as a direct devDependency is forced (vitest 5 declares it a required peer, ^6.4.0 || ^7.0.0 || ^8.0.0), both as Uint8Array<ArrayBuffer> casts are forced by BufferSource, and the new ../env import matches what seeds/storyblok/import.ts already does. ## Held back names a blocker per hold-back.
Contracts hold: src/payload-types.ts is unchanged, so neither consumer owes a types:cms sync. One caveat on "the two consumer repos align to this version" — SahajAtlasWeb's chore/tooling-upgrade pins 3.93.0, but WeMeditateWeb is ^3.92.1 on main and on chore/deps-major-upgrades, and its lockfile resolves 3.92.1.
Findings — all consider, none blocking
- package.json:115 —
engines.nodeis below what vitest 5 and vite 8 accept. - pnpm-workspace.yaml:63 — the esbuild entry is now an unmarked exception to the file's own ⚠ rule.
- scripts/select-unit-specs.mjs:52 — its spec title still narrates the removed
baseUrlreading.
What was checked
- Lockfile. One
[email protected], so the two-copies hazard the workspace comment names stays clear. One[email protected].esbuildresolves to 0.25.12 and 0.28.1 only — no 0.18 copy survives, so the scoped override does what its comment claims. The[email protected]patch hash is unchanged. baseUrlremoval is complete. Every bareseeds|scripts|src|testsspecifier on the branch was grepped: onlytests/*remains, and it has apathsentry.- Read whole:
pnpm-workspace.yaml, both tsconfigs,vitest.config.mts,select-unit-specs.mjs, both storage adapters, both consumers' manifests and lockfiles. - Railway preview deployed; CI green on 93213ac.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
vitest 5.1.0 declares node ^22.12.0 || ^24.0.0 || >=26.0.0 and vite 8.3.8 declares ^20.19.0 || >=22.12.0, so 22.0 through 22.11 no longer installs or runs the test lane. engines.node still admitted that range, and .node-version and CI sit above it, so nothing went red while a contributor on 22.9 passed the gate and failed later. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjV3Y12VW7iobmnaBcK
The clause that exempted it — "vite/esbuild are caps, not floors" — went with the vite entry, leaving a cross-major force unmarked against the block's own rule. @esbuild-kit/[email protected] asks ~0.18.20 and gets 0.28.1. The force itself is unchanged; only its marking was missing. Also drops the "floor" wording, which the block defines as name@^N.0.0-scoped. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjV3Y12VW7iobmnaBcK
resolveSpecifier no longer reads from the repo root — tsconfig baseUrl is gone and the docstring says so. The spec title still narrated the old reading. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjV3Y12VW7iobmnaBcK
|
Three critic threads, all adopted and resolved.
Lean gate green: lint, format, both typechecks, 283 files / 3882 tests. No security-review trigger path touched. Docs checked, nothing stale. Body refreshed: the three commits, the second merge, and the consumer-alignment caveat — WeMeditateWeb's lockfile still resolves 3.92.1. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
One conflict, in seeds/meditations/import.ts. #1176 rewrote its bare `seeds/env` specifier as relative, because TypeScript 6 dropped tsconfig baseUrl. This branch retires that importer, so the deletion stands: the rewrite has nothing left to apply to, and no bare `seeds/` specifier survives anywhere in the merged tree. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjViXHyBCzw9pvSLoQS
Summary
main) to 3.93.0, one commit, eleven exact pins. SahajAtlasWeb'schore/tooling-upgradepins 3.93.0 alongside; WeMeditateWeb's^3.92.1admits it, but its lockfile still resolves 3.92.1.@vitejs/plugin-react6 and vite 8 land together, which lets the vite cap inoverrides:go.@vvo/tzdb. Reasons below.Overlap
#1165 (Payload 3.92.1) merged while this was in review. This branch merges
mainin and moves 3.92.1 to 3.93.0 on top of it. Itspayload_3_92migration and spec fixes are kept as merged; this PR adds no migration, becausemigrate:createfinds nothing further for 3.93.0.mainmoved again after that merge (#1167, the geojson feed). It is merged in a second time, cleanly.Commits (each can be dropped on its own)
nodemailerandundicialready went with #1165)@playwright/test,playwright,playwright-corevitebecomes a direct devDependency,viteoverride removed,esbuildoverride narrowedbaseUrl, one relative import, twoBuffernarrowingsengines.node>=22.0.0→>=22.12.0, the floor vite 8 declares and vitest 5 starts at@esbuild-kit/core-utils's~0.18.20, which the clause this PR cut used to exemptselect-unit-specscase retitled for the removedbaseUrlreadingCommits 5 to 7 answer the three review threads. Each is a separate commit for the same reason the first four are.
Package changes
payload,@payloadcms/{db-postgres, email-nodemailer, next, plugin-cloud-storage, plugin-form-builder, plugin-nested-docs, plugin-seo, richtext-lexical, ui, typescript-plugin}@playwright/test,playwright,playwright-corevitest,@vitest/coverage-v8@vitejs/plugin-reactvite(new direct devDependency, was an override at 7.3.7)typescriptPayload 3.93.0
drizzle-kitstays at 0.31.7 (@payloadcms/[email protected]still pins it exactly), sopatches/[email protected]keys and applies unchanged. It was exercised:migrate:createran through the patched build. It stays, and the comment inpnpm-workspace.yamlremains accurate.migrate:createwas run with the Cloudflare credentials stubbed, sostoragePluginis enabled, and generated nothing beyondpayload_3_92.generate:typesandgenerate:importmapchange nothing.nodemailerresolves to 10.6.0 andundicito 7.30.1 (plus 6.29.1 for@apidevtools/json-schema-ref-parser) with no overrides.Overrides and
pnpm audit@vitejs/plugin-react6 requires vite 8, which is why the vite cap existed in the first place. Theviteentry is removed and vite is a direct devDependency at 8.3.8, past GHSA-587h-7wmj-h5pm. Theesbuildentry could not go whole: drizzle-kit reaches esbuild 0.18 through@esbuild-kit/core-utils, and removing the entry madepnpm auditreport GHSA-67mh-4wv8-2f99 (<=0.24.2). It is now'esbuild@<=0.24.2': '0.28.1', scoped to that range.csv-parse,deepmerge,glob,minimatchHeld back
^9.39.5). It lints clean, but[email protected](the newest release, peer range stops at 9) crashes on ESLint 10 withsourceCode.getTokenOrCommentAfter is not a functionwheneverimport/orderhas anything to report, so a contributor would get a stack trace in place of a warning. The maintained forkeslint-plugin-import-xsorts parent and sibling imports differently and produced 46 warnings across 38 files, including files other work is deleting.eslint-plugin-reactandeslint-plugin-jsx-a11y, both pulled in byeslint-config-next, also stop at 9. Unblocked wheneslint-plugin-importships ESLint 10 support.tsc7 typecheckssrcafter the same fixes, but the package ships no JS compiler API, sotests/unit/client-bundle-safety.spec.tsandtests/unit/public-env-substitution.spec.ts(which callcreateSourceFile) fail to typecheck, andtypescript-eslintdeclarestypescript <6.1.0.@vvo/tzdb6.198.0 to 6.204.0 (reverted). The new list changes the timezone members, which turnstests/unit/timezone-options.spec.tsred and would need an enum migration with its pin. That is a schema change, not a toolchain bump..github/dependabot.yml(not added). The repo manages routine updates deliberately another way: the loop'saudit-depsbatches minor and patch updates on alternate Mondays and does majors one at a time, and Dependabot is used for security alerts only. A version-update config would open parallel PRs against exact-pinned families (the Payload packages must move together) and the drizzle-kit patch. No sibling repo has one either.@sentry/nextjs11,@types/node26,csv-parse7,dotenv18,jose6,jsdom31,music-metadata12,p-retry9,rrule-temporal2,vite-tsconfig-paths6,lexical0.53 (tied to Payload),payload-oapi0.3.Validation
Local, on Node 26.13 (the repo pins 22.17.0, which CI uses). Run before merging
mainin, then re-run after:pnpm lint,pnpm format:check,pnpm typecheck,pnpm typecheck:tests: pass, before and after the merge.pnpm test:unit: 283 files, 3882 tests pass after the merge.pnpm test:intagainst a database of its own, before the merge: 109 files; 103 passed and 6 failed on the first run. Five of the six (atlas-challenge,atlas-drop-time-in-place,atlas-sidebar,image-orientation,login-session) failed on query errors while the whole lane ran in parallel and passed when re-run alone. The sixth,database-cast-errors, was the 3.92findByIDchange that chore(deps): bump the Payload family to 3.92.1 for the consumers #1165 has since fixed. Re-run of those six files: 26 of 26 pass. After the merge,database-cast-errors,atlas-challengeandlogin-session: 15 of 15 pass. CI runs the full lane.pnpm build: passes (before the merge).mainmerge:.claude/skills/pr-prep/check.sh(lint, format, both typechecks,test:unit) passes — 283 files, 3882 tests, 130s.🤖 Generated with Claude Code