All Versions
64
Latest Version
Avg Release Cycle
53 days
Latest Release
126 days ago

Changelog History
Page 5

  • v0.10.3 Changes

    September 27, 2016

    ๐Ÿ›  Fixed

    • Custom predicates work correctly with each macro (solnic)

    Compare v0.10.2...v0.10.3

  • v0.10.2 Changes

    September 23, 2016

    ๐Ÿ›  Fixed

    • Constrained types + hints work again (solnic)

    Compare v0.10.1...v0.10.2

  • v0.10.1 Changes

    September 22, 2016

    ๐Ÿ›  Fixed

    • โœ‚ Remove obsolete require of dry/struct which is now an optional extension (flash-gordon)

    Compare v0.10.0...v0.10.1

  • v0.10.0 Changes

    September 21, 2016

    โž• Added

    • ๐Ÿ‘Œ Support for validate DSL which accepts an arbitratry validation block that gets executed in the context of a schema object and is treated as a custom predicate (solnic)
    • ๐Ÿ‘Œ Support for or error messages ie "must be a string or must be an integer" (solnic)
    • ๐Ÿ‘Œ Support for retrieving error messages exclusively via schema.(input).errors (solnic)
    • ๐Ÿ‘Œ Support for retrieving hint messages exclusively via schema.(input).hints (solnic)
    • Support for opt-in extensions loaded via Dry::Validation.load_extensions(:my_ext) (flash-gordon)
    • โž• Add :monads extension which transforms a result instance to Either monad, schema.(input).to_either (flash-gordon)
    • โž• Add dry-struct integration via an extension activated by Dry::Validation.load_extensions(:struct) (flash-gordon)

    ๐Ÿ›  Fixed

    • Input rules (defined via input macro) are now lazy-initialized which makes it work with predicates defined on the schema object (solnic)
    • Hints are properly generated based on argument type in cases like size?, where the message should be different for strings (uses "length") or other types (uses "size") (solnic)
    • Defining nested keys without schema blocks results in ArgumentError (solnic)

    ๐Ÿ”„ Changed

    • ๐Ÿ‘ [BREAKING] when macro no longer supports multiple disconnected rules in its block, whatever the block returns will be used for the implication (solnic)
    • [BREAKING] rule(some_name: %i(some keys)) will always use :some_name as the key for failure messages (solnic)

    Compare v0.9.5...v0.10.0

  • v0.9.5 Changes

    August 16, 2016

    ๐Ÿ›  Fixed

    • Infering multiple predicates with options works as expected ie value(:str?, min_size?: 3, max_size?: 6) (solnic)
    • ๐Ÿ”ง Default locale configured in I18n is now respected by the messages compiler (agustin + cavi21)

    Compare v0.9.4...v0.9.5

  • v0.9.4 Changes

    August 11, 2016

    ๐Ÿ›  Fixed

    • Error messages for sibling deeply nested schemas are nested correctly (timriley)

    Compare v0.9.3...v0.9.4

  • v0.9.3 Changes

    July 22, 2016

    โž• Added

    • Support for range arg in error messages for excluded_from? and included_in? (mrbongiolo)
    • Result#message_set returns raw message set object (solnic)

    ๐Ÿ›  Fixed

    • Error messages for high-level rules in nested schemas are nested correctly (solnic)
    • Dumping error messages works with high-level rules relying on the same value (solnic)

    ๐Ÿ”„ Changed

    • #messages is no longer memoized (solnic)

    Compare v0.9.2...v0.9.3

  • v0.9.2 Changes

    July 13, 2016

    ๐Ÿ›  Fixed

    • Constrained types now work with each macro (solnic)
    • Array coercion without member type works now ie required(:arr).maybe(:array?) (solnic)

    Compare v0.9.1...v0.9.2

  • v0.9.1 Changes

    July 11, 2016

    ๐Ÿ›  Fixed

    • 0๏ธโƒฃ I18n backend is no longer required and set by default (solnic)

    Compare v0.9.0...v0.9.1

  • v0.9.0 Changes

    July 08, 2016

    โž• Added

    • ๐Ÿ‘Œ Support for defining maybe-schemas via maybe { schema { .. } } (solnic)
    • ๐Ÿ‘Œ Support for interpolation of custom failure messages for custom rules (solnic)
    • Support for defining a base schema class with config and rules (solnic)
    • ๐Ÿ‘Œ Support for more than 1 predicate in input macro (solnic)
    • Class-level define! API for defining rules on a class (solnic)
    • ๐Ÿ”€ :i18n messages support merging from other paths via messages_file setting (solnic)
    • ๐Ÿ‘Œ Support for message token transformations in custom predicates (fran-worley)
    • [EXPERIMENTAL] Ability to compose predicates that accept dynamic args provided by the schema (solnic)

    ๐Ÿ›  Fixed

    • Duped key names in nested schemas no longer result in invalid error messages structure (solnic)
    • Error message structure for deeply nested each/schema rules (solnic)
    • Values from option are passed down to nested schemas when using Schema#with (solnic)
    • Hints now work with array elements too (solnic)
    • Hints for elements are no longer provided for an array when the value is not an array (solnic)
    • input macro no longer messes up error messages for nested structures (solnic)

    ๐Ÿ”„ Changed

    • Tokens for size? were renamed left => size_left and right => size_right (fran-worley)

    Compare v0.8.0...v0.9.0