Skip to content

fix(deps): update dependency cn to ^0.5.2 - #607

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cn-0.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cn-0.x

Conversation

@renovate

@renovate renovate Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
cn (source) ^0.4.0 → ^0.5.2 age confidence

Release Notes

shadcn-ui/cn (cn)

v0.5.2

Compare Source

Patch Changes
  • #​162 b8c5a1b Thanks @​nonhana! - Export CnFunction, Engine, and ClassNameValue from cn/config, and those plus ClassValue from cn/engine. Exporting an inferred createCn() result (export const cn = createCn({ ... })) no longer fails with TS2742 or TS2883 in projects that emit declarations.

  • #​167 6ebb4ce Thanks @​RaphaelFakhri! - cn build keeps numeric spacing such as p-4 when a stylesheet declares --spacing after a --*: initial or --spacing-*: initial reset, and keeps p-px through the reset, as Tailwind does.

  • #​160 a805c68 Thanks @​mehimanshupatil! - createCn, createTwMerge, and extendTailwindMerge from cn/config accept optional type arguments for custom class-group and theme ids, like tailwind-merge's extendTailwindMerge<ClassGroupIds, ThemeGroupIds>. With them, unknown group keys and conflict ids are type errors. Without them, any id is still accepted.

v0.5.1

Compare Source

Patch Changes
  • #​165 5e65675 Thanks @​shadcn! - Group the legacy bg-gradient-to-* utilities as bg-color, the same as tailwind-merge. cn("bg-background", "bg-gradient-to-r") now returns bg-gradient-to-r, and bg-gradient-to-r no longer replaces bg-linear-to-r or an arbitrary bg-[...] image.

v0.5.0

Compare Source

Minor Changes
  • #​157 663adea Thanks @​shadcn! - Drop Node 20, which reached end of life, and require Node 22 or later.

  • #​164 64aa1d0 Thanks @​shadcn! - cn build now follows package @imports, reads @theme declarations after nested blocks such as @keyframes, and drops names declared before a --*: initial reset.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


Summary by cubic

Updates the cn package from ^0.4.0 to ^0.5.2 in packages/ui.

  • cn now requires Node 22 or later; Node 20 is no longer supported.
  • Fixes cn build handling of numeric spacing and bg-gradient utilities, and exports additional types.

Written for commit 2f00155. Summary will update on new commits.

View guided diff Turn on auto-fix

@vercel

vercel Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
domainstack Ready Ready Preview Nov 8, 2026 11:25am UTC

Request Review

@codecov

codecov Bot commented Nov 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.00%. Comparing base (a411ea9) to head (2f00155).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #607      +/-   ##
==========================================
- Coverage   73.15%   73.00%   -0.16%     
==========================================
  Files         225      225              
  Lines        5227     5227              
  Branches     1492     1492              
==========================================
- Hits         3824     3816       -8     
- Misses        951      959       +8     
  Partials      452      452              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch was successfully deployed

1 active deployment
Preview — 2f001554 Deployed Nov 8, 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.

0 participants