This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
Releases: zendframework/zend-validator
Releases · zendframework/zend-validator
zend-validator 2.9.2
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #180 fixes how
Zend\Validator\File\MimeType
"closes" the open FileInfo handle for the file being validated, usingunset()
instead offinfo_close()
; this resolves a segfault that occurs on older PHP versions. - #174 fixes how
Zend\Validator\Between
handles two situations: (1) when a non-numeric value is validated against numeric min/max values, and (2) when a numeric value is validated against non-numeric min/max values. Previously, these incorrectly validated as true; now they are marked invalid.
zend-validator 2.9.1
Added
- Nothing.
Changes
- #154 updates the
CreditCard
validator to allow 19 digit Discover card values, and 13 and 19 digit Visa card values, which are now allowed (see https://en.wikipedia.org/wiki/Payment_card_number). - #162 updates the
Hostname
validator to support.hr
(Croatia) IDN domains. - #163 updates the
Iban
validator to support Belarus.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #168 fixes how the
ValidatorPluginManagerFactory
factory initializes the plugin manager instance, ensuring it is injecting the relevant configuration from theconfig
service and thus seeding it with configured validator services. This means that thevalidators
configuration will now be honored in non-zend-mvc contexts.
zend-validator 2.9.0
Added
- #78 added
%length%
as an optional message variable in StringLength validator
Deprecated
- Nothing.
Removed
- #151 dropped php 5.5 support
Fixed
- #147
#148 adds further"suggest"
clauses incomposer.json
, since some dependencies are not always required, and may lead to runtime failures. - #66 fixed EmailAddress validator applying IDNA conversion to local part
- #88 fixed NotEmpty validator incorrectly applying types bitmaps
- #150 fixed Hostname validator not allowing some characters in .dk IDN
zend-validator 2.8.2
zend-validator 2.8.1
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #92 adds message templates to the
ExcludeMimeType
validator, to allow differentiating validation error messages from theMimeType
validator.
zend-validator 2.8.0
Added
- #58 adds a new
Uuid
validator, capable of validating if Versions 1-5 UUIDs are well-formed. - #64 ports
Zend\ModuleManager\Feature\ValidatorProviderInterface
toZend\Validator\ValidatorProviderInterface
, and updates theModule::init()
to typehint against the new interface instead of the one from zend-modulemanager. Applications targeting zend-mvc v3 can start updating their code to implement the new interface, or simply duck-type against it.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-validator 2.7.3
Added
- #67 adds support for Punycoded top-level domains in the
Hostname
validator. - #79 adds and publishes the documentation to https://zendframework.github.io/zend-validator/
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-validator 2.7.2
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #65 fixes the
Module::init()
method to properly receive aModuleManager
instance, and not expect aModuleEvent
.
zend-validator 2.7.1
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- This release updates the TLD list to the latest version from the IANA.
zend-validator 2.7.0
Added
- #63 exposes the package as a ZF component and/or generic configuration provider, by adding the following:
ValidatorPluginManagerFactory
, which can be consumed by container-interop / zend-servicemanager to create and return aValidatorPluginManager
instance.ConfigProvider
, which maps the serviceValidatorManager
to the above factory.Module
, which does the same asConfigProvider
, but specifically for zend-mvc applications. It also provices a specification toZend\ModuleManager\Listener\ServiceListener
to allow modules to provide validator configuration.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.