You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: changelog.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,21 @@
1
1
# CHANGELOG
2
2
3
+
## 2.1.0
4
+
5
+
*`feature` : Added `constraintProfiles` to allow you to define which fields to validate according to defined profiles: https://github.com/coldbox-modules/cbvalidation/issues/37
6
+
*`feature` : Updated `RequiredUnless` and `RequiredIf` to use struct literal notation instead of the weird parsing we did.
7
+
*`feature` : Added the `Unique` validator thanks to @elpete!
8
+
*`improvement` : Added `null` support for the `RequiredIf,RequiredUnless` validator values
9
+
3
10
## 2.0.0
4
11
5
12
### Features
6
13
7
14
* No more manual discovery of validators, automated registration and lookup process, cleaned lots of code on this one!
8
15
* New Validator: `Accepted` - The field under validation must be yes, on, 1, or true. This is useful for validating "Terms of Service" acceptance.
9
16
* New Validator: `Alpha` - Only allows alphabetic characters
10
-
* New Validator: `RequiredUnless` with validation data: `anotherField:value,...` - The field under validation must be present and not empty unless the `anotherfield` field is equal to the passed `value`.
11
-
* New Validator: `RequiredIf` with validation data: `anotherField:value,...` - The field under validation must be present and not empty if the `anotherfield` field is equal to the passed `value`.
17
+
* New Validator: `RequiredUnless` with validation data as a struct literal `{ anotherField:value,... }` - The field under validation must be present and not empty unless the `anotherfield` field is equal to the passed `value`.
18
+
* New Validator: `RequiredIf` with validation data as a struct literal `{ anotherField:value,... }` - The field under validation must be present and not empty if the `anotherfield` field is equal to the passed `value`.
12
19
* Accelerated validation by removing type checks. ACF chokes on interface checks
0 commit comments