Skip to content

v0.2.0

Compare
Choose a tag to compare
@nicoburniske nicoburniske released this 02 Apr 14:16
· 10 commits to main since this release

What's Changed

Variant API Improvements by @nicoburniske in #17

  • MaybeIntoTailwindClass trait is now replaced by AsTailwindClass
    • Removes support for Option in tw_join! and tw_merge!
  • TwVariant macro will force implement Copy and Clone
  • Remove impl of IntoTailwindClass for TwVariant in favor of AsTailwindClass because we don't want to needlessly allocate strings
    • Enables usage with tw_join! and tw_merge! macros
  • Improved TwClass builder pattern
    • .builder() will create builder instance (instead of variant() which was confusing)
    • .build() (NEW) will convert builder instance into TwClass type
    • From Builder -> T
    • From T -> Builder
    • Builder will be Copy and Clone
  • TwClass struct can be Copy and Clone, and is not implemented automatically. User can decide by applying derive macros themselves.

Full Changelog: v0.1.1...v0.2.0