dry-struct v1.2.0 Release Notes
Release Date: 2019-12-20 // over 6 years ago-
1.2.0 2019-12-20
🔄 Changed
Dry::Struct::Valueis deprecated.Dry::Structinstances were never meant to be mutable, we have no support for this. The only difference betweenDry::StructandDry::Struct::Valueis that the latter is deeply frozen. Freezing objects slows the code down and gives you very little benefit in return. If you have a use case forValue, it won't be hard to roll your own solution using ice_nine (flash-gordon)- In the thread of the previous change, structs now use immutable equalizer. This means
Struct#hashmemoizes its value after the first invocation. Depending on the case, this may speed up your code significantly (flash-gordon)