Skip to content

chore(deps): Payload 3.93.0, Vitest 5, vite 8 and TypeScript 6 - #1176

Merged
Ardnived merged 9 commits into
mainfrom
chore/deps-toolchain-upgrade
Nov 17, 2026
Merged

Ardnived merged 9 commits into
mainfrom
chore/deps-toolchain-upgrade

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The Payload family moves 3.92.1 (on main) to 3.93.0, one commit, eleven exact pins. SahajAtlasWeb's chore/tooling-upgrade pins 3.93.0 alongside; WeMeditateWeb's ^3.92.1 admits it, but its lockfile still resolves 3.92.1.
  • Vitest 5, @vitejs/plugin-react 6 and vite 8 land together, which lets the vite cap in overrides: go.
  • TypeScript 5.7.3 to 6.0.3, with three mechanical fixes. Playwright to 1.65.1.
  • Three upgrades are deliberately not in: ESLint 10, TypeScript 7 and @vvo/tzdb. Reasons below.

Overlap

#1165 (Payload 3.92.1) merged while this was in review. This branch merges main in and moves 3.92.1 to 3.93.0 on top of it. Its payload_3_92 migration and spec fixes are kept as merged; this PR adds no migration, because migrate:create finds nothing further for 3.93.0.

main moved again after that merge (#1167, the geojson feed). It is merged in a second time, cleanly.

Commits (each can be dropped on its own)

# Commit Contents
1 Payload 3.93.0 pins and lockfile (the overrides for nodemailer and undici already went with #1165)
2 Playwright 1.65.1 @playwright/test, playwright, playwright-core
3 Vitest 5, plugin-react 6, vite 8 vite becomes a direct devDependency, vite override removed, esbuild override narrowed
4 TypeScript 6.0.3 drops tsconfig baseUrl, one relative import, two Buffer narrowings
5 node engine floor engines.node >=22.0.0 → >=22.12.0, the floor vite 8 declares and vitest 5 starts at
6 esbuild override marking ⚠ on the entry: it forces 0.28.1 onto @esbuild-kit/core-utils's ~0.18.20, which the clause this PR cut used to exempt
7 spec title the select-unit-specs case retitled for the removed baseUrl reading

Commits 5 to 7 answer the three review threads. Each is a separate commit for the same reason the first four are.

Package changes

Package From To
payload, @payloadcms/{db-postgres, email-nodemailer, next, plugin-cloud-storage, plugin-form-builder, plugin-nested-docs, plugin-seo, richtext-lexical, ui, typescript-plugin} 3.90.2 (3.92.1 on main) 3.93.0
@playwright/test, playwright, playwright-core 1.64.1 1.65.1
vitest, @vitest/coverage-v8 4.1.12 5.1.0
@vitejs/plugin-react 4.5.2 6.3.0
vite (new direct devDependency, was an override at 7.3.7) 7.3.7 8.3.8
typescript 5.7.3 6.0.3

Payload 3.93.0

  • drizzle-kit stays at 0.31.7 (@payloadcms/[email protected] still pins it exactly), so patches/[email protected] keys and applies unchanged. It was exercised: migrate:create ran through the patched build. It stays, and the comment in pnpm-workspace.yaml remains accurate.
  • No schema change: migrate:create was run with the Cloudflare credentials stubbed, so storagePlugin is enabled, and generated nothing beyond payload_3_92. generate:types and generate:importmap change nothing.
  • nodemailer resolves to 10.6.0 and undici to 7.30.1 (plus 6.29.1 for @apidevtools/json-schema-ref-parser) with no overrides.

Overrides and pnpm audit

@vitejs/plugin-react 6 requires vite 8, which is why the vite cap existed in the first place. The vite entry is removed and vite is a direct devDependency at 8.3.8, past GHSA-587h-7wmj-h5pm. The esbuild entry could not go whole: drizzle-kit reaches esbuild 0.18 through @esbuild-kit/core-utils, and removing the entry made pnpm audit report GHSA-67mh-4wv8-2f99 (<=0.24.2). It is now 'esbuild@<=0.24.2': '0.28.1', scoped to that range.

Before After
Total 4 (1 low, 3 moderate, 0 high) 4 (1 low, 3 moderate, 0 high)
Advisories csv-parse, deepmerge, glob, minimatch the same four

Held back

  • ESLint 10 (reverted, stays ^9.39.5). It lints clean, but [email protected] (the newest release, peer range stops at 9) crashes on ESLint 10 with sourceCode.getTokenOrCommentAfter is not a function whenever import/order has anything to report, so a contributor would get a stack trace in place of a warning. The maintained fork eslint-plugin-import-x sorts parent and sibling imports differently and produced 46 warnings across 38 files, including files other work is deleting. eslint-plugin-react and eslint-plugin-jsx-a11y, both pulled in by eslint-config-next, also stop at 9. Unblocked when eslint-plugin-import ships ESLint 10 support.
  • TypeScript 7.0.2 (stopped at 6.0.3). tsc 7 typechecks src after the same fixes, but the package ships no JS compiler API, so tests/unit/client-bundle-safety.spec.ts and tests/unit/public-env-substitution.spec.ts (which call createSourceFile) fail to typecheck, and typescript-eslint declares typescript <6.1.0.
  • @vvo/tzdb 6.198.0 to 6.204.0 (reverted). The new list changes the timezone members, which turns tests/unit/timezone-options.spec.ts red 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's audit-deps batches 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.
  • Majors left for their own PRs: @sentry/nextjs 11, @types/node 26, csv-parse 7, dotenv 18, jose 6, jsdom 31, music-metadata 12, p-retry 9, rrule-temporal 2, vite-tsconfig-paths 6, lexical 0.53 (tied to Payload), payload-oapi 0.3.

Validation

Local, on Node 26.13 (the repo pins 22.17.0, which CI uses). Run before merging main in, 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:int against 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.92 findByID change 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-challenge and login-session: 15 of 15 pass. CI runs the full lane.
  • pnpm build: passes (before the merge).
  • After commits 5 to 7 and the second main merge: .claude/skills/pr-prep/check.sh (lint, format, both typechecks, test:unit) passes — 283 files, 3882 tests, 130s.

🤖 Generated with Claude Code

Ardnived and others added 4 commits November 16, 2026 11:48
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]>
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]>
@railway-app

railway-app Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1176 environment in sahajcloud

Service Status Web Updated
SahajCloud ✅ Success (View Logs) Web Nov 16, 2026 at 11:01 pm UTC
1 service not affected by this PR
  • mailpit

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]>
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1176 November 16, 2026 18:58 Destroyed
@Ardnived
Ardnived marked this pull request as ready for review November 16, 2026 22:39
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot

sydevs-bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 22:48Z address-review · attempt 1 · session · done
  • 22:48Z address-review · attempt 1 · session
  • 22:39Z review-pr · attempt 1 · session · done
  • 22:39Z review-pr · attempt 1 · session

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

@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 16, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧐 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.node is 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 baseUrl reading.

What was checked

  • Lockfile. One [email protected], so the two-copies hazard the workspace comment names stays clear. One [email protected]. esbuild resolves 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.
  • baseUrl removal is complete. Every bare seeds|scripts|src|tests specifier on the branch was grepped: only tests/* remains, and it has a paths entry.
  • 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

Comment thread package.json Resolved
Comment thread pnpm-workspace.yaml Resolved
Comment thread scripts/select-unit-specs.mjs Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot sydevs-bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 16, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 16, 2026
sydevs-bot and others added 3 commits November 16, 2026 22:52
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
@sydevs-bot

Copy link
Copy Markdown
Contributor

Three critic threads, all adopted and resolved. main merged in again first (#1167), cleanly.

  • engines.node → >=22.12.0 in 2b060f2, the floor vite 8.3.8 declares and vitest 5.1.0 starts at.
  • esbuild override → ⚠ in 3052e11. The force onto @esbuild-kit/core-utils's ~0.18.20 predates this PR; only its marking was missing.
  • spec title → retitled in cbc5925 to match the rewritten docstring.

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

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 16, 2026
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1176 November 16, 2026 22:58 Destroyed
@sydevs-bot
sydevs-bot enabled auto-merge November 16, 2026 23:15
@Ardnived
Ardnived disabled auto-merge November 17, 2026 00:40
@Ardnived
Ardnived merged commit b6f5a90 into main Nov 17, 2026
8 of 9 checks passed
@Ardnived
Ardnived deleted the chore/deps-toolchain-upgrade branch November 17, 2026 00:40
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 17, 2026
sydevs-bot added a commit that referenced this pull request Nov 17, 2026
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

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1176 — cbc5925a Deployed Nov 16, 2026 by railway-app[bot]
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.

2 participants