dry-types v1.1.0 Release Notes
Release Date: 2019-07-02 // almost 5 years ago-
โ Added
- ๐ New builder method
Interface
constructs a type which accepts objects that respond to the given methods (waiting-for-dev)ruby Types = Dry.Types() Types::Callable = Types.Interface(:call) Types::Callable.valid?(Object.new) # => false Types::Callable.valid?(proc {}) # => true
- ๐ New types:
coercible.symbol
,params.symbol
, andjson.symbol
, all use.to_sym
for coercion (waiting-for-dev)
๐ Fixed
- Converting schema keys to maybe types (flash-gordon)
- Using
Schema#key
andArray#member
on constuctors (flash-gordon) - โ Using
meta(omittable: true)
withintransform_types
works again but produces a warning, please migrate to.omittable
or.required(false)
(flash-gordon) - ๐ Bug with a constructror defined on top of enum (flash-gordon)
- ๐ New builder method