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
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,31 @@
1
1
# CHANGELOG
2
2
3
+
## 2.0.0
4
+
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
+
* Accelerated validation by removing type checks. ACF chokes on interface checks
13
+
14
+
### Improvements
15
+
16
+
* Consistency on all validators to ignore null or empty values except the `Required` validator
17
+
* Formatting consistencies
18
+
* Improve error messages to describe better validation
19
+
* Get away from `evaluate()` instead use `invoke()`
20
+
21
+
### Compat & Bugs
22
+
23
+
*`Bugs` : Fixed lots of wrong type exceptions
24
+
*`Compat` : Remove ACF11 support
25
+
26
+
`requiredUnless=role,test
27
+
---
28
+
3
29
## 1.5.2
4
30
5
31
*`bug` : Added `float` to the type validator which was missing
0 commit comments