Skip to content

Refactor components to use 'cn' and update dependencies - #54

Merged
Barata-Ribeiro merged 6 commits into
mainfrom
refact/migrate-to-cn
Sep 16, 2026
Merged

Barata-Ribeiro merged 6 commits into
mainfrom
refact/migrate-to-cn

Conversation

@Barata-Ribeiro

Copy link
Copy Markdown
Owner

This pull request migrates the codebase from using the clsx and tailwind-merge libraries to the new cn utility package for class name merging. It also updates several dependencies to their latest patch or minor versions. The most significant changes are grouped below.

Migration to cn utility for class name merging:

  • Replaced imports and usage of clsx and tailwind-merge with the new cn package throughout the codebase, including updates to the cn utility function and its consumers in UI components and hooks. (app/lib/utils.ts, app/components/pages/calculators/bmi.tsx, app/components/pages/calculators/general-calculator.tsx, app/components/reui/number-field.tsx) [1] [2] [3] [4] [5]

  • Updated package.json and pnpm-lock.yaml to remove clsx and tailwind-merge dependencies and add the new cn package. (package.json, pnpm-lock.yaml) [1] [2] [3] [4]

Dependency upgrades:

  • Upgraded several dependencies to their latest versions, including lucide-react, react-dropzone, zod, and various internal and dev dependencies. (package.json, pnpm-lock.yaml) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Build and tooling updates:

  • Updated the pnpm package manager version and corresponding lockfile references. (package.json, pnpm-lock.yaml) [1] [2]

Code style and type improvements:

  • Minor formatting and typing improvements, such as formatting union types for event listeners for better readability. (app/hooks/use-event-listener.ts)

Summary:
This PR modernizes and simplifies class name handling by consolidating on the cn utility, reduces dependency bloat, and keeps the project up to date with the latest dependency versions.

@Barata-Ribeiro Barata-Ribeiro self-assigned this Sep 15, 2026
@Barata-Ribeiro Barata-Ribeiro added the chore Handle config, moving etc. label Sep 15, 2026
@vercel

vercel Bot commented Sep 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
utilities-webapp Ready Ready Preview Sep 15, 2026 12:41pm UTC

@Barata-Ribeiro
Barata-Ribeiro merged commit 40e605f into main Sep 16, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 27221461 Deployed Sep 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Handle config, moving etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant