Releases: php-lights/data-url
Releases · php-lights/data-url
v3.0.0
This change bumps neoncitylights/media-type from v1.0.0 to v3.1.0 with some other changes listed below to accomodate the dependency bump, and minor cleanup.
Breaking changes
- This library's minimum PHP version was bumped from v8.1 to v8.2 (
neoncitylights/media-typerequires PHP v8.2). InvalidDataUrlSyntaxExceptionwas renamed toDataUrlParserException.DataUrlParser->parse()/parseOrThrow()can now also throwMediaTypeParserExceptionif the media type cannot be parsed.
Deprecated
- Calling
DataUrlParser->parse()is now deprecated. Instead, callDataUrlParser->parseOrThrow(). This method been renamed to be more explicit in side effects (throwing an exception). - Creating a new
DataUrlParserinstance without any arguments is now deprecated. Instead, pass in an instance ofNeoncitylights\MediaType\MediaTypeParseras an argument, like so:use Neoncitylights\DataUrl\DataUrlParser; use Neoncitylights\MediaType\MediaTypeParser; $dataUrlParser = new DataUrlParser( new MediaTypeParser() );
Features
DataUrlParserhas a new instance method,parseOrNull(), which either returnsDataUrlornull. This method is an alternative toparseOrThrow().
Internal changes
- The private properties of
MediaTypeare now strongly type-hinted. Note that these were already technically typehinted since they were private, and the constructor signature was already typehinted. - The library's CI now also runs builds against PHP v8.3 and PHP v8.4 (not just PHP v8.2).
mediawiki/mediawiki-snifferwas bumped from v33.0.0 to v45.0.0.mediawiki/minus-xwas bumped from v1.1.0 to v1.1.3.php-parallel-lint/php-console-highlighterwas bumped from v0.5.0 to v1.0.0.php-parallel-lint/php-parallel-lintwas bumped from v1.2.0 to v1.4.0.phpunit/phpunitwas bumped from v9.4 to v11.5.1.
v2.0.0
Unit test for retrieving a media type parameter
v1.0.0
Cleanup library to be more compliant