fix(deps): update dependency cn to ^0.5.2

RE
6d ago
+11-7

This PR contains the following updates:

PackageChangeAgeConfidence
cn (source)^0.4.0 → ^0.5.2ageconfidence

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.