All Versions
18
Latest Version
Avg Release Cycle
97 days
Latest Release
1049 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v0.4.0 Changes
November 04, 2017v0.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)
-
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 thenew
method (v-kolesnikov)Struct.attribute?
andStruct.attribute_names
for introspecting struct attributes (flash-gordon)- ๐
Struct# __new__
is a safe-to-use-in-gems alias forStruct#new
(flash-gordon)
-
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)
-
v0.2.1 Changes
February 27, 2017๐ Fixed
- ๐ Fixed
Dry::Struct::Value
which appeared to be broken in the last release (flash-gordon)
- ๐ Fixed
-
v0.2.0 Changes
February 26, 2017๐ Changed
- Struct attributes can be overridden in a subclass (flash-gordon)
-
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)
- ๐ Make
-
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 inType::Definition
(flash-gordon)
-
v0.0.1 Changes
July 17, 2016๐ Initial release of code imported from dry-types