Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Sep 9, 2025

Bumps tailwind-variants from 0.3.0 to 3.1.1.

Release notes

Sourced from tailwind-variants's releases.

v3.1.1

   🐞 Bug Fixes

    View changes on GitHub

v3.1.0

   🚀 Features

    View changes on GitHub

v3.0.0

What's new?

   🚀 Features

Resolves heroui-inc/tailwind-variants#262, resolves heroui-inc/tailwind-variants#259, resolves heroui-inc/tailwind-variants#258, resolves heroui-inc/tailwind-variants#246

Problem with v2

#262, #246: slot names that match JS String prototype methods cause cnBase to produce corrupted class output.

#259: since cnBase no longer goes through twMerge, template strings aren’t formatted correctly.

#258: lazy-loading tailwind-merge prevents some classes from merging on the first render, but after HMR triggers.

Solution

#258: instead of using lazy-loading, we could split tv into two versions, the lite version no longer imports tailwind-merge, while the original version keeps a static import of tailwind-merge. This avoids the first-render merge issue caused by lazy-loading. An alternative would be making tv async to wait for lazy-loading, but that introduces a larger breaking change and worse dx.

#262, #246, #258: cnBase was enhanced to support functionality similar to classnames / clsx, it now properly filters and handles various input types and formats the final result (e.g., removing extra spaces or newlines), which was previously handled by twMerge.

Technical Details

  • Extracted tailwind-merge and related config logic into tw-merge.js, state.js, package exports (., ./lite) support tree-shaking during build.
  • Original and lite versions share the same core code and type declarations.
  • Moved cnBase to utils and renamed it to cn.
  • Lite version exports cn / cnBase without any tw-merge logic; original (index) exports retain the original behavior.
  • Tailwind merge's cache state is now maintained in state.js.

Testing

  • Covered utils/cn with comprehensive tests.

... (truncated)

Changelog

Sourced from tailwind-variants's changelog.

3.1.1 (2025-09-08)

Bug Fixes

  • use 'type' for type-only imports and specify file extensions (#272) (58aa71e)

3.1.0 (2025-08-25)

Features

3.0.0 (2025-08-24)

Features

  • split tv into original and lite versions (#264) (0eb65ba)

2.1.0 (2025-07-31)

Features

  • implement lazy loading for tailwind-merge module (#257) (e80c23a)

2.0.1 (2025-07-28)

2.0.0 (2025-07-27)

2.0.0 (2025-07-27)

Changelog

... (truncated)

Commits
  • 1b67c1a chore: release v3.1.1
  • 58aa71e fix: use 'type' for type-only imports and specify file extensions (#272)
  • 92e4874 chore: release v3.1.0
  • 5fd06fa feat: export config types (#267)
  • 2a93c87 chore: release v3.0.0
  • 0eb65ba feat: split tv into original and lite versions (#264)
  • 1a43cdc chore: release v2.1.0
  • e80c23a feat: implement lazy loading for tailwind-merge module (#257)
  • c04aac7 chore: release v2.0.1
  • ab50269 chore: update tsup configuration to enable cleaning and minification
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [tailwind-variants](https://github.com/heroui-inc/tailwind-variants) from 0.3.0 to 3.1.1.
- [Release notes](https://github.com/heroui-inc/tailwind-variants/releases)
- [Changelog](https://github.com/heroui-inc/tailwind-variants/blob/main/CHANGELOG.md)
- [Commits](heroui-inc/tailwind-variants@v0.3.0...v3.1.1)

---
updated-dependencies:
- dependency-name: tailwind-variants
  dependency-version: 3.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant