File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
33All Notable changes to ` bakame/http-strucured-fields ` will be documented in this file.
44
5- ## [ Next ] - TBD
5+ ## [ 1.2.0 ] ( https://github.com/bakame-php/http-structured-fields/compare/1.1.0...1.2.0 ) - 2023-12-30
66
77### Added
88
99- Support for the ` DisplayString ` type
1010- ` ByteSequence::tryFromEncoded `
1111- ` Token::tryFromString `
1212- ` OuterList::fromPairs `
13- - ` DataType ` is now part of the public API
13+ - ` DataType ` enum
1414- ` Type::fromVariable `
1515- ` Type::tryFromVariable `
16- - the ` Type ` enum is now a baked string Enum.
1716- ` Parser::new ` to simplify parser usage.
1817
1918### Fixed
2019
2120- Tests file moved under the ` /tests ` directory
22- - Fix ` Type::tryFromValue ` to correctly detect string type derivative.
21+ - Fix ` Type::tryFromVariable ` to correctly detect string type derivative.
22+ - the ` Type ` enum is now a baked string Enum.
2323
2424### Deprecated
2525
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ use Bakame\Http\StructuredFields\Type;
250250echo Type::fromVariable(42)->value; // returns 'integer'
251251echo Type::fromVariable(42.0)->name; // returns 'Decimal'
252252echo Type::fromVariable(new SplTempFileObject()); // throws InvalidArgument
253- echo Type::tryFromValue (new SplTempFileObject()); // returns null
253+ echo Type::tryFromVariable (new SplTempFileObject()); // returns null
254254```
255255
256256To ease validation a ` Type::equals ` method is exposed to check if the ` Item ` has
Original file line number Diff line number Diff line change 2828 "ext-json" : " *"
2929 },
3030 "require-dev" : {
31- "friendsofphp/php-cs-fixer" : " ^v3.15.1 " ,
31+ "friendsofphp/php-cs-fixer" : " ^v3.45.0 " ,
3232 "httpwg/structured-field-tests" : " *@dev" ,
3333 "phpstan/phpstan" : " ^1.10.50" ,
3434 "phpstan/phpstan-strict-rules" : " ^1.5.2" ,
3535 "phpstan/phpstan-phpunit" : " ^1.3.15" ,
3636 "phpstan/phpstan-deprecation-rules" : " ^1.1.4" ,
37- "phpunit/phpunit" : " ^10.5.3 " ,
37+ "phpunit/phpunit" : " ^10.5.5 " ,
3838 "phpbench/phpbench" : " ^1.2.15" ,
3939 "symfony/var-dumper" : " ^6.4.0"
4040 },
You can’t perform that action at this time.
0 commit comments