Releases: zendframework/zend-validator
zend-validator 2.13.0
Added
-
#275 adds a new
strict
option toZend\Validator\Date
; whentrue
, the value being validated must both be a date AND in the same format as provided via theformat
option. -
#264 adds
Zend\Validator\UndisclosedPassword
, which can be used to determine if a password has been exposed in a known data breach as reported on the Have I Been Pwned? website. Documentation -
#266 adds a new option to the
File\Extension
andFile\ExcludeExtension
validators,allowNonExistentFile
. When set totrue
, the validators will continue validating the extension of the filename given even if the file does not exist. The default isfalse
, to preserve backwards compatibility with previous versions.
Changed
-
#264 bumps the minimum supported PHP version to 7.1.0.
-
#279 updates the
magic.mime
file used for file validations.
Deprecated
- Nothing.
Removed
- #264 removes support for PHP versions prior to 7.1.0.
Fixed
- Nothing.
zend-validator 2.12.2
zend-validator 2.12.1
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#272 changes
curly braces in array and string offset access to square brackets
in order to prevent issues under the upcoming PHP 7.4 release. -
#231 fixes validation of input hashes in
Zend\Validator\File\Hash
validator when provided as array.
Only string hashes are allowed. If different type is providedZend\Validator\Exception\InvalidArgumentException
is thrown.
zend-validator 2.12.0
Added
- #250 adds support for PHP 7.3.
Changed
- #251 updates the logic of each of the various
Zend\Validator\File
validators
to allow validating against PSR-7UploadedFileInterface
instances, expanding
the support originally provided in version 2.11.0.
Deprecated
- Nothing.
Removed
- #250 removes support for zend-stdlib v2 releases.
Fixed
- Nothing.
zend-validator 2.11.1
Added
- #249 adds support in the hostname validator for the
.rs
TLD.
Changed
- #253 updates the list of allowed characters for a
DE
domain name to match those published by IDN.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #256 fixes hostname validation when omitting the TLD from verification,
ensuring validation of the domain segment considers all URI criteria.
zend-validator 2.11.0
Added
-
#237 adds support for the PSR-7 UploadedFileInterface
to each of theUpload
andUploadFile
validators. -
#220 adds image/webp to the list of known image types for the
IsImage
validator.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-validator 2.10.3
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
zend-validator 2.10.2
Added
-
#202 adds the ability to use custom constant types in extensions of
Zend\Validator\CreditCard
, fixing an issue where users were unable to add new brands as they are created. -
#203 adds support for the new Russian bank card "Mir".
-
#204 adds support to the IBAN validator for performing SEPA validation against Croatia and San Marino.
-
#209 adds documentation for the
Explode
validator.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
zend-validator 2.10.1
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #194 modifies the
EmailAddress
validator to omit theINTL_IDNA_VARIANT_UTS46
flag toidn_to_utf8()
if the constant is not defined, fixing an issue on systems using pre-2012 releases of libicu.
zend-validator 2.10.0
Added
-
#175 adds support for PHP 7.2 (conditionally, as PHP 7.2 is currently in beta1).
-
#157 adds a new validator,
IsCountable
, which allows validating:- if a value is countable
- if a countable value exactly matches a configured count
- if a countable value is greater than a configured minimum count
- if a countable value is less than a configured maximum count
- if a countable value is between configured minimum and maximum counts
Changed
-
#169 modifies how the various
File
validators check for readable files. Previously, they usedstream_resolve_include_path
, which led to false negative checks when the files did not exist within aninclude_path
(which is often the case within a web application). These now useis_readable()
instead. -
#185 updates the zend-session requirement (during development, and in the suggestions) to 2.8+, to ensure compatibility with the upcoming PHP 7.2 release.
-
#187 updates the
Between
validator to require that both amin
and amax
value are provided to the constructor, and that both are of the same type (both integer/float values and/or both string values). This fixes issues that could previously occur when one or the other was not set, but means an exception will now be raised during instantiation (versus runtime duringisValid()
). -
#188 updates the
ConfigProvider
to alias the service nameValidatorManager
to the classZend\Validator\ValidatorPluginManager
, and now maps the the latter class to theValidatorPluginManagerFactory
. Previously, we mapped the service name directly to the factory. Usage should not change for anybody at this point.
Deprecated
- Nothing.
Removed
- #175 removes support for HHVM.
Fixed
- #160 fixes how the
EmailAddress
validator handles the local part of an address, allowing it to support unicode.