Skip to content

v0.13.0

Compare
Choose a tag to compare
@dry-bot dry-bot released this 12 Sep 11:54

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)

    Dry::Configurable.warn_on_setting_constructor_block false
    Dry::Configurable.warn_on_setting_positional_default false

Fixed

  • Fixed ArgumentError for classes including Dry::Configurable whose initializer has required kwargs. (#113 by @timriley)

Changed

  • Deprecated the setting constructor provided as a block. Provide it via the constructor: keyword argument instead. (#111 by @waiting-for-dev & @timriley)

    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)

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

Compare v0.12.1...v0.13.0