Skip to content

chore(deps): Tailwind v4 + tailwind-merge v3 + Zod v4 (deferred majors)#46

Merged
admin-raintree merged 2 commits into
mainfrom
deps/tailwind4-zod4
Jun 4, 2026
Merged

chore(deps): Tailwind v4 + tailwind-merge v3 + Zod v4 (deferred majors)#46
admin-raintree merged 2 commits into
mainfrom
deps/tailwind4-zod4

Conversation

@admin-raintree

Copy link
Copy Markdown
Contributor

The three deferred major upgrades, in one PR as requested. Each was held earlier for risk; all are now migrated and verified.

Tailwind CSS v4 (+ tailwind-merge v3) — closes #36, #34

  • Ran the official @tailwindcss/upgrade codemod: @tailwind@import, JS config → CSS @theme, PostCSS → @tailwindcss/postcss, autoprefixer dropped, utility renames (backdrop-blur-sm-xs, outline-noneoutline-hidden, [animation:…]animate-[…])
  • Switched to @theme inline so the shadcn-style .dark CSS-variable overrides resolve at use-site
  • Removed unused @tailwindcss/typography; deleted tailwind.config.ts (content auto-detected)
  • tailwind-merge 2 → 3 (its majors track Tailwind's)
  • Verified: build + lint + typecheck, and visual QA of the homepage in both light and dark mode — backgrounds, text, glass, buttons, icons all faithful

Zod v4 — closes #30

  • zod 3.22 → 4.4.3. The MCP SDK 1.29.0 bundles a nested zod 3, so its ZodRawShapeCompat rejected v4 schemas at compile time. Fixed by a zod override that dedupes the tree onto a single zod 4.4.3 (SDK declares zod ^3.25 || ^4.0) — no as any casts in the security-sensitive validation path
  • Verified: tsc --noEmit, bun test (10 pass), runtime schema-parse + server module load under zod 4

🤖 Generated with Claude Code

admin-raintree and others added 2 commits June 3, 2026 19:50
Ran the official @tailwindcss/upgrade codemod, then finished by hand:
- @tailwind directives -> @import "tailwindcss"; JS config -> CSS @theme (the
  shadcn HSL design tokens preserved), PostCSS -> @tailwindcss/postcss,
  autoprefixer dropped (built into v4)
- utility renames: backdrop-blur-sm -> -xs, outline-none -> outline-hidden,
  [animation:...] -> animate-[...], bg-foreground/[0.06] -> /6
- @theme **inline** so the .dark CSS-variable overrides resolve at use-site
- tailwind-merge 2 -> 3 (its majors track Tailwind's), removed unused
  @tailwindcss/typography, deleted tailwind.config.ts (content auto-detected)

Closes #36, #34.

Verified: next build (all routes static), eslint, tsc --noEmit, and a visual
check of the homepage in **both light and dark mode** (backgrounds, text,
glass, buttons, GitHub icon all faithful).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
zod 3.22 -> 4.4.3. The MCP SDK 1.29.0 (latest) bundles its own nested zod 3, so
its ZodRawShapeCompat typed the five server.tool() schemas against zod 3 and
rejected zod-4 schemas at compile time (runtime was fine). Added a `zod`
override to dedupe the whole tree onto a single zod 4.4.3 — the SDK declares
`zod ^3.25 || ^4.0`, so it runs on v4 — which fixes the types with no `as any`
casts in the validation path.

Closes #30.

Verified: tsc --noEmit clean, bun test (10 pass / 0 fail), and runtime smoke
(schema parse + embeddings/server module load under zod 4).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docpull Ready Ready Preview, Comment Jun 4, 2026 2:54am

Request Review

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​tailwindcss@​3.4.19 ⏵ 4.3.0100 +310084 -298100
Updatednpm/​tailwind-merge@​2.6.1 ⏵ 3.6.010010086 +195100
Updatednpm/​hono@​4.12.22 ⏵ 4.12.2399 +110097 +195 -1100
Addedpypi/​urllib3@​2.7.097100100100100
Addednpm/​@​tailwindcss/​postcss@​4.3.010010010098100
Addedpypi/​wheel@​0.47.099100100100100

View full report

@admin-raintree admin-raintree merged commit 8a1579f into main Jun 4, 2026
17 checks passed
@admin-raintree admin-raintree deleted the deps/tailwind4-zod4 branch June 4, 2026 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant