14 KiB
Changelog
All notable changes to this project will be documented in this file, in reverse chronological order by release.
2.10.2 - 2018-02-01
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
Explodevalidator.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#195 adds missing
GpsPointvalidator entries to theValidatorPluginManager, ensuring they may be retrieved from it correctly. -
#212 updates the
CSRFvalidator to automatically mark any non-string values as invalid, preventing errors such as array to string conversion.
2.10.1 - 2017-08-22
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #194 modifies the
EmailAddressvalidator to omit theINTL_IDNA_VARIANT_UTS46flag toidn_to_utf8()if the constant is not defined, fixing an issue on systems using pre-2012 releases of libicu.
2.10.0 - 2017-08-14
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
Filevalidators 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
Betweenvalidator to require that both aminand amaxvalue 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
ConfigProviderto alias the service nameValidatorManagerto 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
EmailAddressvalidator handles the local part of an address, allowing it to support unicode.
2.9.2 - 2017-07-20
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\Betweenhandles 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.
2.9.1 - 2017-05-17
Added
- Nothing.
Changes
- #154 updates the
CreditCardvalidator 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
Hostnamevalidator to support.hr(Croatia) IDN domains. - #163 updates the
Ibanvalidator to support Belarus.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #168 fixes how the
ValidatorPluginManagerFactoryfactory initializes the plugin manager instance, ensuring it is injecting the relevant configuration from theconfigservice and thus seeding it with configured validator services. This means that thevalidatorsconfiguration will now be honored in non-zend-mvc contexts.
2.9.0 - 2017-03-17
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
2.8.2 - 2017-01-29
Added
- #110 adds new Mastercard 2-series BINs
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #81 registers the Uuid validator into ValidatorPluginManager.
2.8.1 - 2016-06-23
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #92 adds message
templates to the
ExcludeMimeTypevalidator, to allow differentiating validation error messages from theMimeTypevalidator.
2.8.0 - 2016-05-16
Added
- #58 adds a new
Uuidvalidator, capable of validating if Versions 1-5 UUIDs are well-formed. - #64 ports
Zend\ModuleManager\Feature\ValidatorProviderInterfacetoZend\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.
2.7.3 - 2016-05-16
Added
- #67 adds support
for Punycoded top-level domains in the
Hostnamevalidator. - #79 adds and publishes the documentation to https://zendframework.github.io/zend-validator/
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
2.7.2 - 2016-04-18
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #65 fixes the
Module::init()method to properly receive aModuleManagerinstance, and not expect aModuleEvent.
2.7.1 - 2016-04-06
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- This release updates the TLD list to the latest version from the IANA.
2.7.0 - 2016-04-06
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 aValidatorPluginManagerinstance.ConfigProvider, which maps the serviceValidatorManagerto the above factory.Module, which does the same asConfigProvider, but specifically for zend-mvc applications. It also provices a specification toZend\ModuleManager\Listener\ServiceListenerto allow modules to provide validator configuration.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
2.6.0 - 2016-02-17
Added
- #18 adds a
GpsPointvalidator for validating GPS coordinates. - #47 adds two new
classes,
Zend\Validator\Isbn\Isbn10andIsbn13; these classes are the result of an extract class refactoring, and contain the logic specific to calcualting the checksum for each ISBN style.Zend\Validator\Isbnnow instantiates the appropriate one and invokes it. - #46 updates
Zend\Validator\Db\AbstractDbto implementZend\Db\Adapter\AdapterAwareInterface, by composingZend\Db\Adapter\AdapterAwareTrait.
Deprecated
- Nothing.
Removed
- #55 removes some
checks for
safe_modewithin theMimeTypevalidator, assafe_modebecame obsolete starting with PHP 5.4.
Fixed
- #45 fixes aliases
mapping the deprecated
FloatandIntvalidators to theirIs*counterparts. - #49 #50, and #51 update the code to be forwards-compatible with zend-servicemanager and zend-stdlib v3.
- #56 fixes the regex
in the
Ipvalidator to escape.characters used as IP delimiters.
2.5.4 - 2016-02-17
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #44 corrects the
grammar on the
NOT_GREATER_INCLUSIVEvalidation error message. - #45 adds normalized aliases for the i18n isfloat/isint validators.
- Updates the hostname validator regexes per the canonical service on which they are based.
- #52 updates the
Barcodevalidator to cast empty options passed to the constructor to an empty array, fixing type mismatch errors. - #54 fixes the IP
address detection in the
Hostnamevalidator to ensure that IPv6 is detected correctly. - #56 updates the
regexes used by the
IPvalidator when comparing ipv4 addresses to ensure a literal.is tested between network segments.
2.5.3 - 2015-09-03
Added
- #30 adds tooling to ensure that the Hostname TLD list stays up-to-date as changes are pushed for the repository.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #17 and #29 provide more test coverage, and fix a number of edge cases, primarily in validator option verifications.
- #26 fixes tests for
StaticValidatorsuch that they make correct assertions now. In doing so, we determined that it was possible to pass an indexed array of options, which could lead to unexpected results, often leading to false positives when validating. To correct this situation,StaticValidator::execute()now raises anInvalidArgumentExceptionwhen an indexed array is detected for the$optionsargument. - #35 modifies the
NotEmptyvalidator to no longer treat the float0.0as an empty value for purposes of validation. - #25 fixes the
Datevalidator to check againstDateTimeImmutableand notDateTimeInterface(as PHP has restrictions currently on how the latter can be used).
2.5.2 - 2015-07-16
Added
- #8 adds a "strict" configuration option; when enabled (the default), the length of the address is checked to ensure it follows the specification.
Deprecated
- Nothing.
Removed
- Nothing.