All Versions
Latest Version
Avg Release Cycle
97 days
Latest Release
1049 days ago

Changelog History
Page 2

  • v0.4.0 Changes

    November 04, 2017

    v0.4.0 2017-11-04

    ๐Ÿ”„ Changed

    • Attribute readers don't override existing instance methods (solnic)
    • Struct#new uses raw attributes instead of method calls, this makes the behavior consistent with the change above (flash-gordon)
    • constructor_type now actively rejects :weak and :symbolized values (GustavoCaso)

    ๐Ÿ›  Fixed

    • Struct#new doesn't call .to_hash recursively (flash-gordon)

    Compare v0.3.1...v0.4.0

  • v0.3.1 Changes

    June 30, 2017

    โž• Added

    • Struct.constructor that makes dry-struct more aligned with dry-types; now you can have a struct with a custom constructor that will be called before calling the new method (v-kolesnikov)
    • Struct.attribute? and Struct.attribute_names for introspecting struct attributes (flash-gordon)
    • ๐Ÿ†• Struct# __new__ is a safe-to-use-in-gems alias for Struct#new (flash-gordon)

    Compare v0.3.0...v0.3.1

  • v0.3.0 Changes

    May 05, 2017

    โž• Added

    • Dry::Struct#new method to return new instance with applied changeset (Kukunin)

    ๐Ÿ›  Fixed

    • .[] and .call does not coerce subclass to superclass anymore (Kukunin)
    • Raise ArgumentError when attribute type is a string and no value provided is for new (GustavoCaso)

    ๐Ÿ”„ Changed

    • 0๏ธโƒฃ .new without arguments doesn't use nil as an input for non-default types anymore (flash-gordon)

    Compare v0.2.1...v0.3.0

  • v0.2.1 Changes

    February 27, 2017

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed Dry::Struct::Value which appeared to be broken in the last release (flash-gordon)

    Compare v0.2.0...v0.2.1

  • v0.2.0 Changes

    February 26, 2017

    ๐Ÿ”„ Changed

    • Struct attributes can be overridden in a subclass (flash-gordon)

    Compare v0.1.1...v0.2.0

  • v0.1.1 Changes

    November 13, 2016

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Make Dry::Struct act as a constrained type. This fixes the behavior of sum types containing structs (flash-gordon)

    Compare v0.1.0...v0.1.1

  • v0.1.0 Changes

    September 21, 2016

    โž• Added

    • :strict_with_defaults constructor type (backus)

    ๐Ÿ”„ Changed

    • [BREAKING] :strict was renamed to :permissive as it ignores missing keys (backus)
    • [BREAKING] :strict now raises on unexpected keys (backus)
    • Structs no longer auto-register themselves in the types container as they implement Type interface and we don't have to wrap them in Type::Definition (flash-gordon)

    Compare v0.0.1...v0.1.0

  • v0.0.1 Changes

    July 17, 2016

    ๐ŸŽ‰ Initial release of code imported from dry-types