docsite/source/index.html.md in dry-struct-1.1.1 vs docsite/source/index.html.md in dry-struct-1.2.0

- old
+ new

@@ -37,10 +37,12 @@ user.age # => 21 ``` ### Value +:warning: `Dry::Struct::Value` is deprecated in 1.2.0. Structs are already meant to be immutable, freezing them doesn't add any value (no pun intended) beyond a bad example of defensive programming. + You can define value objects which will behave like structs but will be *deeply frozen*: ``` ruby class Location < Dry::Struct::Value attribute :lat, Types::Float @@ -57,10 +59,10 @@ # true ``` ### Hash Schemas -`Dry::Struct` out of the box uses [hash schemas](/gems/dry-types/hash-schemas) from `dry-types` for processing input hashes. `with_type_transform` and `with_key_transform` are exposed as `transform_types` and `transform_keys`: +`Dry::Struct` out of the box uses [hash schemas](/gems/dry-types/1.0/hash-schemas) from `dry-types` for processing input hashes. `with_type_transform` and `with_key_transform` are exposed as `transform_types` and `transform_keys`: ```ruby class User < Dry::Struct transform_keys(&:to_sym)