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
* 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.
* 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`.
Copy file name to clipboardExpand all lines: changelog.md
+20-5Lines changed: 20 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,29 @@
2
2
3
3
## 2.0.0
4
4
5
-
*`Features` : Removed all interface usages since all cfml engines suck on it.
6
-
*`Improvements` : Consistency on all validators to ignore null or empty values except the `Required` validator
7
-
*`Improvements` : Formatting consistencies
8
-
*`Improvements` : Improve error messages to describe better validation
9
-
*`Improvements` : Get away from `evaluate()` instead use `invoke()`
5
+
### Features
6
+
7
+
* No more manual discovery of validators, automated registration and lookup process, cleaned lots of code on this one!
8
+
* New Validator: `Accepted` - The field under validation must be yes, on, 1, or true. This is useful for validating "Terms of Service" acceptance.
9
+
* 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`.
12
+
13
+
### Improvements
14
+
15
+
* Consistency on all validators to ignore null or empty values except the `Required` validator
16
+
* Formatting consistencies
17
+
* Improve error messages to describe better validation
18
+
* Get away from `evaluate()` instead use `invoke()`
19
+
20
+
### Compat & Bugs
21
+
10
22
*`Bugs` : Fixed lots of wrong type exceptions
11
23
*`Compat` : Remove ACF11 support
12
24
25
+
`requiredUnless=role,test
26
+
---
27
+
13
28
## 1.5.2
14
29
15
30
*`bug` : Added `float` to the type validator which was missing
0 commit comments