Skip to content

chore: upgrade tailwind-merge and hookform resolvers - #31

Merged
kahlstrm merged 1 commit into
mainfrom
chore/tailwind-merge-hookform
Aug 2, 2026
Merged

kahlstrm merged 1 commit into
mainfrom
chore/tailwind-merge-hookform

Conversation

@kahlstrm

@kahlstrm kahlstrm commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • tailwind-merge 1.14.0 -> 3.6.0 — one call site, cn() in lib/utils.ts
  • @hookform/resolvers 3.10.0 -> 5.5.7 — one call site, zodResolver in UrlForm

Neither needed a code change.

Closes a real coverage gap

zodResolver is the seam between zod 4 and resolvers 5 — the only place the two majors meet — and nothing covered it. UrlForm sits behind authentication, so the e2e suite cannot reach it.

lib/resolver.test.mts now tests the adapter directly: valid input passes through, an invalid scheme surfaces the schema's own message on the right field, and a missing url is reported rather than thrown.

Verified non-vacuous — changing the expected message makes it fail (17 pass / 1 fail), restoring it returns 18.

Not covered

tailwind-merge only affects class-string merging, which no test exercises. The risk is visual rather than functional, and cn() is a single pass-through, so I did not add a test for it.

Testing

  • pnpm test:unit — 18 passed (3 new)
  • pnpm test:e2e — 9 passed
  • pnpm lint / pnpm format:check — clean
  • pnpm build — compiles

@vercel

vercel Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
next-shortener Ready Ready Preview Aug 2, 2026 6:15pm

@kahlstrm
kahlstrm merged commit 614d548 into main Aug 2, 2026
4 checks passed
@kahlstrm
kahlstrm deleted the chore/tailwind-merge-hookform branch August 2, 2026 18:43

This branch was successfully deployed

1 active deployment
Preview — b55a9d78 Deployed Aug 2, 2026 by vercel[bot]
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