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

Releases: zendframework/zend-inputfilter

zend-inputfilter 2.10.1

28 Aug 19:48
release-2.10.1
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #185 fixes validation response on invalid file upload request.

  • #181 fixes missing abstract service factory registration in Module as per the latest documentation. In particular, it ensures that the InputFilterAbstractFactory is registered under the input_filters configuration.

  • #180 fixes attaching validators on creation of InputFilter - priority value is now used.

zend-inputfilter 2.10.0

30 Jan 16:59
Compare
Choose a tag to compare

Added

  • #176 adds the interface UnfilteredDataInterface, with the following methods:

    public function getUnfilteredData() : array|object;
    public function setUnfilteredData(array|object $data) : $this;

    By default, the BaseInputFilter now implements this interface.

    The primary purpose of the interface is to allow the ability to access ALL
    original raw data, and not just the data the input filter knows about. This is
    particularly useful with collections.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-inputfilter 2.9.1

07 Jan 17:54
Compare
Choose a tag to compare

Added

  • #174 adds support for PHP 7.3.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #175 fixes a regression introduced in 2.9.0 when overriding the default
    validator of a FileInput. 2.9.0 changed the default to use the
    fully-qualified class name of Zend\Validator\File\Upload as the service,
    instead of the previous 'fileuploadfile`; this release returns to the original
    behavior.

zend-inputfilter 2.9.0

17 Dec 21:30
Compare
Choose a tag to compare

Added

  • #172 adds support for PSR-7 UploadedFileInterface to Zend\InputFilter\FileInput.
    It adds a new interface, Zend\InputFilter\FileInput\FileInputDecoratorInterface,
    which defines methods required for validating and filtering file uploads. It
    also provides two implementations of it, one for standard SAPI file uploads,
    and the other for PSR-7 uploads. The FileInput class does detection on the
    value being tested and decorates itself using the appropriate decorator, which
    then performs the work of validating and filtering the upload or uploads.

  • #170 adds the ability to set a "required" message on a CollectionInputFilter.
    By default, such instances will lazy-load a NotEmpty validator, and use its
    messages to report that the collection was empty if it is marked as required.
    If you wish to set a different message, you have two options:

    • provide a custom NotEmpty validator via the new method
      setNotEmptyValidator().

    • if using a factory, provide the key required_message as a sibling to
      required, containing the custom message. This will replace the typical
      IS_EMPTY message.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-inputfilter 2.8.3

13 Dec 22:53
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #167 fixes the combination of marking an ArrayInput required, and passing an
    empty array for validation; it now correctly detects these as invalid.

zend-inputfilter 2.8.2

14 May 17:39
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #163 adds code to BaseInputFilter::populate() to detect non-iterable,
    non-null values passed as a value for a composed input filter. Previously, these would trigger
    an exception; they now instead result in an empty array being used to populate the
    input filter, which will generally result in invalidation without causing an
    exception.

  • #162 fixes incorrect abstract service factory registration in ConfigProvideras per
    the latest documentation. In particular, it ensures that the InputFilterAbstractFactory
    is registered under the input_filters configuration instead of the
    dependencies configuration.

zend-inputfilter 2.8.1

22 Jan 19:43
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #160 adds zend-servicemanager as a direct requirement, rather than a suggestion. The package has not worked without it since #67 was merged for the 2.6.1 release.

  • #161 fixes an issue whereby an input filter receiving a null value to setData() would raise an exception, instead of being treated as an empty data set.

zend-inputfilter 2.8.0

04 Dec 21:26
Compare
Choose a tag to compare

Added

  • #135 adds Zend\InputFilter\OptionalInputFilter, which allows defining optional sets of data. This acts like a standard input filter, but is considered valid if no data, null data, or empty data sets are provided to it; if a non-empty data set is provided, it will run normal validations.

  • #142 adds support for PHP 7.2.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • #142 removes support for HHVM.

Fixed

  • Nothing.

zend-inputfilter 2.7.6

04 Dec 20:53
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #156 fixes an issue introduced in 2.7.5 whereby the filter and validator chains composed in inputs pulled from the InputFilterPluginManager were not receiving the default filter and validator plugin manager instances. A solution was created that preserves the original behavior as well as the bugfix that created the regression.

zend-inputfilter 2.7.5

07 Nov 17:10
Compare
Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #151 fixes an issue in Factory::createInput() introduced in #2 whereby an input pulled from the input filter manager would be injected with the default filter and validator chains, overwriting any chains that were set during instantiation and/or init(). They are now never overwritten.

  • #149 fixes an issue with how error messages for collection input field items were reported; previously, as soon as one item in the collection failed, the same validation message was propagated to all other items. This is now resolved.

  • #131 fixes a regression introduced in version 2.2.6 within BaseInputFilter::setValidatorGroup() whereby it began emitting exceptions if a given input was not an input filter. This raises issues when mixing input filters and inputs in the same validator group specification, as you will generally provide the input names as keys instead of values. The patch provide ensures both styles work going forwards.