fix(deps): update dependency cn to ^0.5.2
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| cn (source) | ^0.4.0 → ^0.5.2 |
Release Notes
shadcn-ui/cn (cn)
v0.5.2
Patch Changes
-
#162
b8c5a1bThanks @nonhana! - ExportCnFunction,Engine, andClassNameValuefromcn/config, and those plusClassValuefromcn/engine. Exporting an inferredcreateCn()result (export const cn = createCn({ ... })) no longer fails with TS2742 or TS2883 in projects that emit declarations. -
#167
6ebb4ceThanks @RaphaelFakhri! -cn buildkeeps numeric spacing such asp-4when a stylesheet declares--spacingafter a--*: initialor--spacing-*: initialreset, and keepsp-pxthrough the reset, as Tailwind does. -
#160
a805c68Thanks @mehimanshupatil! -createCn,createTwMerge, andextendTailwindMergefromcn/configaccept optional type arguments for custom class-group and theme ids, like tailwind-merge'sextendTailwindMerge<ClassGroupIds, ThemeGroupIds>. With them, unknown group keys and conflict ids are type errors. Without them, any id is still accepted.
v0.5.1
Patch Changes
- #165
5e65675Thanks @shadcn! - Group the legacybg-gradient-to-*utilities asbg-color, the same as tailwind-merge.cn("bg-background", "bg-gradient-to-r")now returnsbg-gradient-to-r, andbg-gradient-to-rno longer replacesbg-linear-to-ror an arbitrarybg-[...]image.
v0.5.0
Minor Changes
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.
cnnow requires Node 22 or later; Node 20 is no longer supported.- Fixes
cn buildhandling of numeric spacing and bg-gradient utilities, and exports additional types.