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 considerLiteral::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 aLiteral::Tuple
in some situations.
Full Changelog: 1.3.0...1.4.0