Skip to content

Commit

Permalink
[devtools] sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dry-bot committed Sep 12, 2021
1 parent c7f63e8 commit e726802
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,36 @@
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->

## unreleased
## 0.13.0 2021-09-12


### Added

- Added flags to determine whether to warn on the API usage deprecated in this release (see "Changed" section below). Set these to `false` to suppress the warnings. (#124 by @timriley)

```ruby
Dry::Configurable.warn_on_setting_constructor_block = false
Dry::Configurable.warn_on_setting_positional_default = false
```

### Fixed

- Fix `ArgumentError` for classes including `Dry::Configurable` whose `initializer` has required kwargs. (#113 by @timriley)
- Remove implicit `to_hash` conversion from `Config`. (#114 by @timriley)
- Fixed `ArgumentError` for classes including `Dry::Configurable` whose `initializer` has required kwargs. (#113 by @timriley)

### Changed

- Deprecate constructor as a block. Providing `constructor:` kwarg is now the only accepted way. (#111 by @waiting-for-dev & @timriley)
- Use `default:` kwarg instead of second positional argument for the default value. (#112 by @waiting-for-dev & @timriley)
- Deprecated the setting constructor provided as a block. Provide it via the `constructor:` keyword argument instead. (#111 by @waiting-for-dev & @timriley)

```ruby
setting :path, constructor: -> path { Pathname(path) }
```
- Deprecated the setting default provided as the second positional argument. Provide it via the `default:` keyword argument instead. (#112 and #121 by @waiting-for-dev & @timriley)

```ruby
setting :path, default: "some/default/path"
```
- [BREAKING] Removed implicit `to_hash` conversion from `Config`. (#114 by @timriley)

[Compare v0.12.1...master](https://github.com/dry-rb/dry-configurable/compare/v0.12.1...master)
[Compare v0.12.1...v0.13.0](https://github.com/dry-rb/dry-configurable/compare/v0.12.1...v0.13.0)

## 0.12.1 2021-02-15

Expand Down

0 comments on commit e726802

Please sign in to comment.