Skip to content

Commit

Permalink
Update CHANGELOG [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon authored Jul 9, 2019
1 parent 72029ea commit 7775bb6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
## v0.7.2 - unreleased
## v0.7.2 - 2019-07-09

## Added

* `.resolve` accepts an optional fallback block, similar to how `Hash#fetch` works (flash-gordon)
* `.resolve` accepts an optional fallback block, similar to how `Hash#fetch` works ([flash-gordon](https://github.com/flash-gordon))
```ruby
container.resolve('missing_key') { :fallback } # => :fallback
```
* `.decorate` can (again) work with static values. Also, it can take a block instead of `with` ([flash-gordon](https://github.com/flash-gordon))
```ruby
container.register('key', 'value')
container.decorate('key') { |v| "<'#{v}'>" }
container.resolve('key') # => "<'value'>"
```

[Compare v0.7.1...0.7.2](https://github.com/dry-rb/dry-container/compare/v0.7.1...v0.7.2)

## v0.7.1 - 2019-06-07

Expand Down

0 comments on commit 7775bb6

Please sign in to comment.