Releases: stubbles/stubbles-input
Releases · stubbles/stubbles-input
10.0.0 - Eight minus two
9.0.0 - Future series of cleanups
BC breaks
- raised minimum required PHP version to 8.2
- removed classes and methods deprecated since 7.0.0
stubbles\input\Paramstubbles\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\ValueErrorinstead of an\InvalidArgumentException
8.0.2 - Tidy up
- added more phpstan related type hints
- fixed minor bugs due to type offenses
8.0.1. - Not that specific, please
- Fixed problem that setting
stubbles.localeto something likede_DEdidn't fall back to using messages withde_*
8.0.0 - One up
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 morestubbles\input\filter\range\StringLengthdoesn't support instances ofstubbles\values\Secretany morestubbles\input\ValueReader::asSecret()doesn't take astubbles\input\filter\range\StringLengthany more butstubbles\input\filter\range\SecretMinLength@Request[Secret]doesn't support themaxLengthattribute any more@Request[OneOf]will throw an exception when callback specified withallowedSourcedoesn't exist or isn't callable
7.0.0 - Going forward
BC breaks
- raised minimum required PHP version to 7.0.0
- introduced scalar type hints and strict type checking
- renamed
stubbles\input\AbstractRequesttostubbles\input\ParamRequest - removed methods deprecated in 6.0.0
stubbles\input\ValueReader::asSecureString(), usestubbles\input\ValueReader::asSecret()insteadstubbles\input\ValueReader::ifSatisfiesRegex(), usestubbles\input\ValueReader::ifMatches()insteadstubbles\input\ValueValidator::satisfiesRegex(), usestubbles\input\ValueValidator::matches()instead
- removed support for
@Request[SecureString], use@Request[Secret]instead, was deprecates in 6.0.0 stubbles\input\Filteris now an abstract class, not an interfacestubbles\input\Filter::apply()now acceptsstubbles\values\Valueinstead ofstubbles\input\Paramand must return anarray
Other changes
- fixed bug that
stubbles\input\ValueReader::asSecret()removed some characters - added optional parameter
$checkdnsrrforstubbles\input\ValueReader::asExistingHttpUri()to influence which function is used for dns checks
6.0.0 - Breaking cleanup
BC breaks
- Raised minimum required PHP version to 5.6
- deprecated
stubbles\input\ValueReader::asSecureString(), usestubbles\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(), usestubbles\input\ValueReader::ifMatches()instead, will be removed with 7.0.0 - deprecated
stubbles\input\ValueValidator::satisfiesRegex(), usestubbles\input\ValueValidator::matches()instead, will be removed with 7.0.0 - removed support for
@Request[File]and@Request[Directory] - removed
stubbles\input\ValueReader::ifIsFile()andstubbles\input\ValueReader::ifIsDirectory() - moved
stubbles\input\console\ConsoleRequesttostubbles\console\input\ConsoleRequestin stubbles/console - moved
stubbles\input\console\BaseConsoleRequesttostubbles\console\input\BaseConsoleRequestin 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_INVALIDandJSON_SYNTAX_ERROR
5.2.1 - The objects you keep
stubbles\input\broker\RequestBroker::procure()now returns the procured object
5.2.0 - May the source be allowed
- allow retrieval from code source for @request[OneOf] with new attribute
allowedSource
5.1.0 - I need more details
- added
stubbles\input\errors\ParamError::details()