Releases: auraphp/Aura.Filter
Releases · auraphp/Aura.Filter
2.3.1
2.3.0
2.2.0
This release adds new validation and sanitizing rules:
lowerCase
for all-lower-case valuesupperCase
for all-upper-case valuestitleCase
for title-cased valueslowerCaseFirst
for values where the first character is lower-caseupperCaseFirst
for values where the first character is upper-case
2.1.0
2.0.0
2.0.0-beta3
Third beta release.
- (BRK) Due to new blank-checking in ValidateSpec::applyRule(), remove 'blank' validation rule, and add 'isBlank()' validation spec method.
- (FIX) Filter arguments using arrays, resources, and objects (including closures) no longer cause errors when creating the default filter message.
- (ADD) Validation now fails on missing (unset or null) fields.
- (DOC) Update documentation.
2.0.0-beta2
Second beta release.
- (ADD) Add UTF-8 support in Alpha, Alnum, Strlen*, and Word filters with help from @mivanov93.
- All string-length filters are now multi-byte aware using either
mbstring
oriconv
extensions. - In alnum and alpha rules, use unicode letters and digits instead of ctype.
- In word rules, use unicode letters and digits instead of \w and \W.
- All string-length filters are now multi-byte aware using either
- (ADD) More robust email validation based on is_email() from @dominicsayers, plus IDN support as suggested by @dg via the
intl
extension. - (TEST) Update Travis-CI config to use containers.
- (DOCS) Update relevant documentation.
2.0.0-beta1
First 2.0 beta release.
- BREAK: Renamed class Filter to SubjectFilter.
- BREAK: Removed method SubjectFilter::strict() and all "strict" behavior, as get_object_vars() is not guaranteed in some objects (e.g. magic get/set vs public properties)
- BREAK: Replaced method SubjectFilter::getMessages() et al with getFailures(); failures are now reported as a FailureCollection instead of as an array of text messages.
- BREAK: Removed classes Rule\Validate\Ipv4 and Ipv6 in favor of allowing flags on
Rule\Validate\Ip. - BREAK: Removed class Rule\Validate\InTableColumn entirely, as it requires a PDO connection. This is better implemented as part of a group of database-related filters, rather than as a special case herein.
- BREAK: Moved namespace Rule\Locator to Locator.
- BREAK: Renamed class Spec\AbstractSpec to Spec\Spec.
- BREAK: Removed method Spec\Spec::getFailureMode().
- BREAK: Moved constants from SubjectFilter to Spec\Spec.
- BREAK: Removed methods ValueFilter::assert() and setExceptionClass().
- ADD: Class FilterFactory now takes two constructor params, $validate_factories and $sanitize_factories, to allow injection of rule factories at construction time.
- ADD: Class AbstractStaticFilter to allow users to create static value filters.
2.0.0-alpha1
First 2.0 dev release; breaking changes are coming.