Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 988 Bytes

CHANGELOG.md

File metadata and controls

55 lines (42 loc) · 988 Bytes

[Unreleased]

[0.1.3] - 2024-03-02

PUBLIC RELEASE remove github actions to publish to rubygems, easier to run rake release

[0.1.2] - 2024-03-02

add github actions to publish to rubygems

[0.1.1] - 2024-03-03

Changed

  • Changed clsx to CLSX

[0.1.0] - 2024-03-02

  • Initial release

These examples should be working

Strings (variadic)

  clsx("foo", true && "bar", "baz")
  #=> "foo bar baz"

Objects

  clsx({ foo:true, bar:false, baz:is_true? })
  #=> "foo baz"

Objects (variadic)

  clsx({ foo:true }, { bar:false }, null, { "--foobar":"hello" })
  #=> "foo --foobar"

Arrays

  clsx(["foo", 0, false, "bar"])
  #=> "foo bar"

Arrays (variadic)

  clsx(["foo"], ["", 0, false, "bar"], [["baz", [["hello"], "there"]]])
  #=> "foo bar baz hello there"

Kitchen sink (with nesting)

  clsx("foo", [1 && "bar", { baz:false, bat:null }, ["hello", ["world"]]], "cya")
  #=> "foo bar hello world cya"