Skip to content

1.4.0

Latest
Compare
Choose a tag to compare
@joeldrapper joeldrapper released this 10 Dec 14:00
· 22 commits to main since this release

What’s Changed

  • Fixed an issue that meant you couldn’t have a property named property.
  • Fixed an issue when subclassing Literal::Data classes. Previously if you defined a property in the subclass, you would lose all the properties in the parent class.
  • Literal::Enum#to_h now yields the member when passed a block. When called without a block, it now returns a Hash from member to value.
  • Literal::Enum objects must be unique by value.
  • Literal::Data no longer duplicates and freezes its properties — this caused compatibility issues with certain objects. We cannot consider Literal::Data to be deeply frozen going forward.
  • Various improvements to Literal::Array, which is still experimental and incomplete.
  • Introduced Literal::Tuple, which is still experimental and incomplete. Literal::Array#product now returns a Literal::Tuple in some situations.

Full Changelog: 1.3.0...1.4.0