chore(deps): Tailwind v4 + tailwind-merge v3 + Zod v4 (deferred majors)#46
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
@tailwindcss/upgradecodemod:@tailwind→@import, JS config → CSS@theme, PostCSS →@tailwindcss/postcss, autoprefixer dropped, utility renames (backdrop-blur-sm→-xs,outline-none→outline-hidden,[animation:…]→animate-[…])@theme inlineso the shadcn-style.darkCSS-variable overrides resolve at use-site@tailwindcss/typography; deletedtailwind.config.ts(content auto-detected)Zod v4 — closes #30
ZodRawShapeCompatrejected v4 schemas at compile time. Fixed by azodoverride that dedupes the tree onto a single zod 4.4.3 (SDK declareszod ^3.25 || ^4.0) — noas anycasts in the security-sensitive validation pathtsc --noEmit,bun test(10 pass), runtime schema-parse + server module load under zod 4🤖 Generated with Claude Code