CHANGELOG.md in dry-struct-0.5.1 vs CHANGELOG.md in dry-struct-0.6.0

- old
+ new

@@ -1,4 +1,28 @@ +# v0.6.0 2018-10-24 + +## BREAKING CHANGES + +* `Struct.attribute?` in the old sense is deprecated, use `has_attribute?` as a replacement + +## Added + +* `Struct.attribute?` is an easy way to define omittable attributes (flash-gordon): + + ```ruby + class User < Dry::Struct + attribute :name, Types::Strict::String + attribute? :email, Types::Strict::String + end + # User.new(name: 'John') # => #<User name="John"> + ``` + +## Fixed + +* `Struct#to_h` recursively converts hash values to hashes, this was done to be consistent with current behavior for arrays (oeoeaio + ZimbiX) + +[Compare v0.5.1...v0.6.0](https://github.com/dry-rb/dry-struct/compare/v0.5.1...v0.6.0) + # v0.5.1 2018-08-11 ## Fixed * Constant resolution is now restricted to the current module when structs are automatically defined using the block syntax. This shouldn't break any existing code (piktur)