Releases: dry-rb/dry-types
Releases · dry-rb/dry-types
v0.12.1
v0.12.1 2017-10-11
Fixed
Constructor#try
rescuesArgumentError
(raised in cases likeInteger('foo')
) (flash-gordon)#constructor
works correctly for default and enum types (solnic)- Optional sum types work correctly in
safe
mode (GustavoCaso) - The equalizer of constrained types respects meta (flash-gordon)
v0.12.0
v0.12.0 2017-09-15
Added
- A bunch of shortcut methods for constructing types to the autogenerated module, e.g.
Types.Constructor(String, &:to_s)
(flash-gordon)
Deprecated
Types::Array#member
was deprecated in favor ofTypes::Array#of
(flash-gordon)
v0.11.1
v0.11.1 2017-08-14
Changed
- Constructors are now equalized using
fn
andmeta
too (flash-gordon)
Fixed
- Fixed
Constructor#name
withSum
-types (flash-gordon)
v0.11.0
v0.10.3
v0.10.2
v0.10.1
Added
Type#optional?
returns true if type is Sum and left is nil (GustavoCaso)Type#pristine
returns a type withoutmeta
(flash-gordon)
Fixed
meta
is used in type equality again (solnic)Any
works correctly with meta again (flash-gordon)
v0.10.0
Added
- Types can be used in
case
statements now (GustavoCaso)
Fixed
- Return original value when Date.parse raises a RangeError (jviney)
Changed
- Meta data are now stored separately from options (flash-gordon)
Types::Object
was renamed toTypes::Any
(flash-gordon)
v0.7.2
bump to 0.7.2