|
1 | 1 | # Changelog |
| 2 | + |
2 | 3 | All notable changes to this project will be documented in this file. |
3 | 4 |
|
4 | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
5 | 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
6 | 7 |
|
7 | 8 | ## Unreleased |
8 | 9 |
|
| 10 | +## [1.1.3] - 2025-10-27 |
| 11 | + |
| 12 | +### Fixed |
| 13 | + |
| 14 | +- Fixed TypeError when using Definition.CoercibleType with certain non coercible values |
| 15 | + |
9 | 16 | ## [1.1.2] - 2024-08-22 |
| 17 | + |
10 | 18 | ### Fixed |
11 | | -- Fixed "TypeError: no _dump_data is defined for class Proc" error that ocurred when a definition model inherits from another model that uses lambda based definitions |
| 19 | + |
| 20 | +- Fixed "TypeError: no \_dump_data is defined for class Proc" error that ocurred when a definition model inherits from another model that uses lambda based definitions |
12 | 21 |
|
13 | 22 | ## [1.1.1] - 2024-05-21 |
| 23 | + |
14 | 24 | ### Fixed |
| 25 | + |
15 | 26 | - Fixed Definition::Model inheritance |
16 | 27 |
|
17 | 28 | ## [1.1.0] - 2023-11-22 |
| 29 | + |
18 | 30 | ### Changes |
| 31 | + |
19 | 32 | - Improved performance |
20 | 33 |
|
21 | 34 | ## [1.0.0] - 2023-02-14 |
| 35 | + |
22 | 36 | ### Removed |
| 37 | + |
23 | 38 | - Removed deprecated version of `GreaterThanEqual` definition that had a typo in it (GreaterThenEqual) |
24 | 39 | - Removed deprecated version of `GreaterThan` definition that had a typo in it (GreaterThen) |
25 | 40 | - Removed deprecated version of `LessThanEqual` definition that had a typo in it (LessThenEqual) |
26 | 41 | - Removed deprecated version of `LessThan` definition that had a typo in it (LessThen) |
27 | 42 |
|
28 | 43 | ## [0.8.1] - 2022-10-05 |
| 44 | + |
29 | 45 | ### Fixed |
| 46 | + |
30 | 47 | - Definition::Model#eql? returns true when comparing two models with the same content |
31 | 48 |
|
32 | 49 | ## [0.8.0] - 2022-10-05 |
| 50 | + |
33 | 51 | ### Added |
| 52 | + |
34 | 53 | - A Definition::Initializer mixin that can be used to validate keyword arguments of a class constructor |
35 | 54 |
|
36 | 55 | ### Changes |
| 56 | + |
37 | 57 | - Include more information in the internal non-translated error messages. E.g. the max size of a LessThenEqual definition |
38 | 58 | - Renamed GreaterThen, GreaterThenEqual, LessThen and LessThenEqual to fix typo (Then VS Than) Backwards compatibility is ensured |
39 | 59 |
|
40 | 60 | ### Breaking changes |
| 61 | + |
41 | 62 | - The Definition::ValueObject was removed and replaced by Definition:Model which has a nicer DSL and only works with hash data structures. See [upgrade notes](./UpgradeNotes.md) |
42 | 63 |
|
43 | 64 | ## [0.7.1] - 2022-03-04 |
| 65 | + |
44 | 66 | ### Fixed |
| 67 | + |
45 | 68 | - Float coercion: check for nil before coercion |
46 | 69 |
|
47 | 70 | ## [0.7.0] - 2022-02-25 |
| 71 | + |
48 | 72 | ### Added |
| 73 | + |
49 | 74 | - Lambda definitions can now be failed with custom error messages |
50 | 75 | - Compatibility with Ruby 3.0 |
| 76 | + |
51 | 77 | ### Fixed |
| 78 | + |
52 | 79 | - In some cases errors from nested `Keys` definitions inside `Or` definitions got lost when listing the validation errors via the `error_hash` method on the conform result object. |
| 80 | + |
53 | 81 | ### Changed |
| 82 | + |
54 | 83 | - When no sub-definition of an `Or` conforms, then only the errors of the last definition of the `Or` are collected. Previously the errors of all sub-definitions were collected. |
55 | 84 | - Translated error messages have been improved to be more suitable to be used as end user error messages |
56 | 85 |
|
57 | 86 | ## [0.6.1] - 2021-12-14 |
| 87 | + |
58 | 88 | ### Fixed |
| 89 | + |
59 | 90 | - The `Keys` definition crashed with an error if the input was not a Hash |
60 | 91 |
|
61 | 92 | ## [0.6.0] - 2020-03-21 |
| 93 | + |
62 | 94 | ### Added |
| 95 | + |
63 | 96 | - Added include method to Keys Definition that allows to inline other `Keys` Definitions into each other |
64 | 97 |
|
65 | 98 | ## [0.5.2] - 2019-06-03 |
| 99 | + |
66 | 100 | ### Fixed |
| 101 | + |
67 | 102 | - added missing require for "pathname" |
68 | 103 |
|
69 | 104 | ## [0.5.1] - 2019-04-27 |
| 105 | + |
70 | 106 | ### Fixed |
| 107 | + |
71 | 108 | - Typo in error debug output |
72 | 109 |
|
73 | 110 | ## [0.5.0] - 2019-03-28 |
| 111 | + |
74 | 112 | ### Added |
| 113 | + |
75 | 114 | - CoercibleValueObject Definition for better nesting of ValueObjects |
76 | 115 | - Nilable Definition as shortcut for nil OR some other definition |
77 | 116 | - Option for Keys Definition to ignore unexpected keys |
| 117 | + |
78 | 118 | ### Fixed |
| 119 | + |
79 | 120 | - Error hash was missing some errors in a few cases |
80 | 121 | - `ConformResult.error_hash` was empty for Definitions without any `Keys` Definition |
| 122 | + |
81 | 123 | ### Changed |
| 124 | + |
82 | 125 | - And Definition stops processing after the first failure |
83 | 126 |
|
84 | 127 | ## [0.4.0] - 2019-03-22 |
| 128 | + |
85 | 129 | ### Added |
| 130 | + |
86 | 131 | - Added support for default values to Keys Definition |
| 132 | + |
87 | 133 | ### Changed |
| 134 | + |
88 | 135 | - Errors returned from ConformResult were restructured for better debugging and usage |
89 | 136 |
|
90 | 137 | ## [0.3.0] - 2019-02-03 |
| 138 | + |
91 | 139 | ### Added |
| 140 | + |
92 | 141 | - Added I18n translation support for errors |
93 | 142 |
|
94 | 143 | ## [0.2.0] - 2019-01-13 |
| 144 | + |
95 | 145 | ### Added |
| 146 | + |
96 | 147 | - Added built in definitions for common usecases (e.g. string length validation) |
97 | 148 |
|
98 | 149 | ## [0.1.0] - 2019-01-12 |
| 150 | + |
99 | 151 | ### Added |
| 152 | + |
100 | 153 | - Initial release |
0 commit comments