dry-types v1.1.0 Release Notes

Release Date: 2019-07-02 // over 2 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, and json.symbol, all use .to_sym for coercion (waiting-for-dev)

    ๐Ÿ›  Fixed

    • Converting schema keys to maybe types (flash-gordon)
    • Using Schema#key and Array#member on constuctors (flash-gordon)
    • โš  Using meta(omittable: true) within transform_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)

    Compare v1.0.1...v1.1.0