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
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,37 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [1.1.0] - 2026-01-15
9
+
### Added
10
+
-**Reusable Rules** - Register field-agnostic validation patterns with `DataVerify::registerRules()`
11
+
-**Validation Schemas** - Define complete validation structures with `DataVerify::registerSchema()`
12
+
- Rules support 3 syntaxes: `->rule('ruleName')`, `->rule->ruleName`, `->rule->ruleName()`
13
+
- Schemas support 3 syntaxes: `->schema('schemaName')`, `->schema->schemaName`, `->schema->schemaName()`
14
+
- Schemas support conditional logic and rule composition
15
+
-**Load from directory** - `DataVerify::loadRulesFrom()` and `DataVerify::loadSchemasFrom()` for file-based organization
16
+
-**Auto-discovery from directory** - Load custom validation strategies automatically via `LazyValidationRegistry`
17
+
- Example files for rules and schemas in `/examples` including batch registration and performance patterns
18
+
19
+
### Changed
20
+
-**Deferred Conditional Evaluation** - Conditional validations now evaluate during `verify()` instead of at definition time for more intuitive rule composition
21
+
22
+
### Refactored
23
+
- LazyValidationRegistry now auto-discovers validation directories without hardcoded configuration
24
+
- Removed legacy `conditionalValidations` system in favor of unified `allValidations` structure
25
+
- Enhanced OpenAPI documentation with Rules & Schemas sections
DataVerify supports conditional validation where validation rules are only applied when specific conditions are met. Combine conditions using `and()` and `or()` operators.
4
10
5
11
## Table of Contents
@@ -475,6 +481,12 @@ $dv->field('vat_number')
475
481
## See Also
476
482
477
483
-**[Validation Rules](VALIDATIONS.md)** - All available validation rules
484
+
-**[Rules & Schemas](RULES_AND_SCHEMAS.md)** - Reusable validation patterns with conditionals
DataVerify includes a built-in translation system for validation error messages. Built-in languages (English, French) are automatically loaded - just set the locale.
4
10
5
11
## Table of Contents
@@ -403,3 +409,10 @@ class MyStrategy extends ValidationStrategy
403
409
-**[Custom Strategies](CUSTOM_STRATEGIES.md)** - Parameter mapping for custom validations
404
410
-**[Error Handling](ERROR_HANDLING.md)** - Working with translated errors
405
411
-**[Validation Rules](VALIDATIONS.md)** - All validation rules
0 commit comments