Skip to content

Releases: stubbles/stubbles-input

9.0.0 - Future series of cleanups

16 Jan 20:31
v9.0.0
3f86c32
Compare
Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 8.2
  • removed classes and methods deprecated since 7.0.0
    • stubbles\input\Param
    • stubbles\input\ValueReader::forParam()
    • stubbles\input\broker\param\ParamBroker::procureParam()
      • stubbles\input\broker\param\CustomDatespanParamBroker::procureParam()
      • stubbles\input\broker\param\ultipleSourceParamBroker::procureParam()
  • stubbles\input\filter\range\StringLength::truncate() now throws an \ValueError instead of an \InvalidArgumentException

8.0.2 - Tidy up

16 Dec 12:30
Compare
Choose a tag to compare
  • added more phpstan related type hints
  • fixed minor bugs due to type offenses

8.0.1. - Not that specific, please

06 Dec 10:01
Compare
Choose a tag to compare
  • Fixed problem that setting stubbles.locale to something like de_DE didn't fall back to using messages with de_*

8.0.0 - One up

07 Nov 12:53
Compare
Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 7.3
  • stubbles\input\broker\RequestBroker::procure() doesn't return the given and procured object instance any more
  • stubbles\input\filter\range\StringLength doesn't support instances of stubbles\values\Secret any more
  • stubbles\input\ValueReader::asSecret() doesn't take a stubbles\input\filter\range\StringLength any more but stubbles\input\filter\range\SecretMinLength
  • @Request[Secret] doesn't support the maxLength attribute any more
  • @Request[OneOf] will throw an exception when callback specified with allowedSource doesn't exist or isn't callable

7.0.0 - Going forward

31 Jul 11:14
Compare
Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 7.0.0
  • introduced scalar type hints and strict type checking
  • renamed stubbles\input\AbstractRequest to stubbles\input\ParamRequest
  • removed methods deprecated in 6.0.0
    • stubbles\input\ValueReader::asSecureString(), use stubbles\input\ValueReader::asSecret() instead
    • stubbles\input\ValueReader::ifSatisfiesRegex(), use stubbles\input\ValueReader::ifMatches() instead
    • stubbles\input\ValueValidator::satisfiesRegex(), use stubbles\input\ValueValidator::matches() instead
  • removed support for @Request[SecureString], use @Request[Secret] instead, was deprecates in 6.0.0
  • stubbles\input\Filter is now an abstract class, not an interface
  • stubbles\input\Filter::apply() now accepts stubbles\values\Value instead of stubbles\input\Param and must return an array

Other changes

  • fixed bug that stubbles\input\ValueReader::asSecret() removed some characters
  • added optional parameter $checkdnsrr for stubbles\input\ValueReader::asExistingHttpUri() to influence which function is used for dns checks

6.0.0 - Breaking cleanup

12 Jun 12:57
Compare
Choose a tag to compare

BC breaks

  • Raised minimum required PHP version to 5.6
  • deprecated stubbles\input\ValueReader::asSecureString(), use stubbles\input\ValueReader::asSecret() instead, will be removed with 7.0.0
  • deprecated @Request[SecureString], use @Request[Secret] instead, will be removed with 7.0.0
  • removed stubbles\input\ValueReader::asEnum()
  • deprecated stubbles\input\ValueReader::ifSatisfiesRegex(), use stubbles\input\ValueReader::ifMatches() instead, will be removed with 7.0.0
  • deprecated stubbles\input\ValueValidator::satisfiesRegex(), use stubbles\input\ValueValidator::matches() instead, will be removed with 7.0.0
  • removed support for @Request[File] and @Request[Directory]
  • removed stubbles\input\ValueReader::ifIsFile() and stubbles\input\ValueReader::ifIsDirectory()
  • moved stubbles\input\console\ConsoleRequest to stubbles\console\input\ConsoleRequest in stubbles/console
  • moved stubbles\input\console\BaseConsoleRequest to stubbles\console\input\BaseConsoleRequest in stubbles/console

Other changes

  • stubbles\input\ValueReader::asJson() now allows to specify the allowed maximum length of the JSON input
  • added proper error message texts for JSON filter errors JSON_INPUT_TOO_BIG, JSON_INVALID and JSON_SYNTAX_ERROR

5.2.1 - The objects you keep

01 Jan 09:23
Compare
Choose a tag to compare
  • stubbles\input\broker\RequestBroker::procure() now returns the procured object

5.2.0 - May the source be allowed

01 Jan 09:22
Compare
Choose a tag to compare
  • allow retrieval from code source for @request[OneOf] with new attribute allowedSource

5.1.0 - I need more details

01 Jan 09:21
Compare
Choose a tag to compare
  • added stubbles\input\errors\ParamError::details()

5.0.0 - Finally divorced

01 Jan 09:21
Compare
Choose a tag to compare
  • removed stubbles\input\web, deprecated since 4.4.0
  • upgrade stubbles/core to 6.0
  • added stubbles\input\filter\EnumFilter
  • added stubbles\input\ValueReader::asEnum()
  • added stubbles\input\broker\param\EnumParamBroker