Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Dec 20, 2019
1 parent 6c5405a commit 93aeb2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# 1.2.0 unreleased
# 1.2.0 2019-12-20

## Changed

- `Dry::Struct::Value` is deprecated. `Dry::Struct` instances were never meant to be mutable, we have no support for this. The only difference between `Dry::Struct` and `Dry::Struct::Value` is 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 for `Value`, it won't be hard to roll your own solution using [ice_nine](https://github.com/dkubb/ice_nine) (flash-gordon)
- In the thread of the previous change, structs now use immutable equalizer. This means `Struct#hash` memoizes its value after the first invokation. Depending on the case, this may speed up your code significantly (flash-gordon)

[Compare v1.1.1...master](https://github.com/dry-rb/dry-struct/compare/v1.1.1...master)
[Compare v1.1.1...v1.2.0](https://github.com/dry-rb/dry-struct/compare/v1.1.1...v.1.2.0)

# 1.1.1 2019-10-13

Expand Down

0 comments on commit 93aeb2a

Please sign in to comment.