Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v0.5.0
This PR finalizes the features for the v0.5.0 release of Valar. This update introduces asynchronous validation, a standardized extensibility pattern, and a performance benchmark suite.
Key Features & Improvements
Asynchronous Validation
AsyncValidatortypeclass andAsyncValidator.derivemacro to support non-blocking, Future-based validation for I/O-bound rules. The derivation logic seamlessly mixes synchronous and asynchronous validators.Extensibility Framework
ValidationObservertrait to valar-core as a standard, zero-cost pattern for integrating with external systems like logging and metrics.valar-translatormodule provides aTranslatortypeclass for internationalization (i18n) of error messages.Performance Benchmarking
valar-benchmarksmodule with a JMH suite has been added to measure performance and guard against regressions. Initial results establish a performance baseline for sync (~45-400ns) and async (~13-16µs) validation paths.Enhanced Testing
ValarSuitein thevalar-munitmodule has been updated with additional assertion helpers to improve the testing experience.Internal Refactoring
internal.Derivation), reducing code duplication and improving maintainability.Build & CI
valar-translatorandvalar-benchmarksmodules.Breaking Changes
API Refinement
Validator.deriveValidatorMacrotoValidator.derivefor consistency with the newAsyncValidator.derive. TheMIGRATION.mdguide has been updated to reflect this change.This release completes the planned work for the v0.5.0 milestone and provides a solid foundation for future development.