Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Releases: zendframework/zend-validator

zend-validator 2.13.0

28 Dec 04:07
release-2.13.0
Compare
Choose a tag to compare

Added

  • #275 adds a new strict option to Zend\Validator\Date; when true, the value being validated must both be a date AND in the same format as provided via the format 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 and File\ExcludeExtension validators, allowNonExistentFile. When set to true, the validators will continue validating the extension of the filename given even if the file does not exist. The default is false, 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

29 Oct 08:34
release-2.12.2
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #277 fixes File\Hash validator in case
    when the file hash contains only digits.

  • #277 fixes File\Hash validator to match
    hash with the given hashing algorithm.

zend-validator 2.12.1

12 Oct 12:19
release-2.12.1
Compare
Choose a tag to compare

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 provided Zend\Validator\Exception\InvalidArgumentException is thrown.

zend-validator 2.12.0

30 Jan 14:26
Compare
Choose a tag to compare

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-7 UploadedFileInterface 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

29 Jan 22:27
Compare
Choose a tag to compare

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

13 Dec 21:24
Compare
Choose a tag to compare

Added

  • #237 adds support for the PSR-7 UploadedFileInterface
    to each of the Upload and UploadFile 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

13 Dec 17:17
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #241 has the Hostname validator return an invalid result early when an empty
    domain segment is detected.

  • #232 updates the Hostname validator to allow underscores in subdomains.

  • #218 fixes a precision issue with the Step validator.

zend-validator 2.10.2

01 Feb 17:08
Compare
Choose a tag to compare

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

  • #195 adds missing GpsPoint validator entries to the ValidatorPluginManager, ensuring they may be retrieved from it correctly.

  • #212 updates the CSRF validator to automatically mark any non-string values as invalid, preventing errors such as array to string conversion.

zend-validator 2.10.1

22 Aug 14:22
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #194 modifies the EmailAddress validator to omit the INTL_IDNA_VARIANT_UTS46 flag to idn_to_utf8() if the constant is not defined, fixing an issue on systems using pre-2012 releases of libicu.

zend-validator 2.10.0

14 Aug 20:39
Compare
Choose a tag to compare

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 used stream_resolve_include_path, which led to false negative checks when the files did not exist within an include_path (which is often the case within a web application). These now use is_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 a min and a max 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 during isValid()).

  • #188 updates the ConfigProvider to alias the service name ValidatorManager to the class Zend\Validator\ValidatorPluginManager, and now maps the the latter class to the ValidatorPluginManagerFactory. 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.