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 2
2
3
3
All Notable changes to ` bakame/http-strucured-fields ` will be documented in this file.
4
4
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
6
6
7
7
### Added
8
8
9
9
- Support for the ` DisplayString ` type
10
10
- ` ByteSequence::tryFromEncoded `
11
11
- ` Token::tryFromString `
12
12
- ` OuterList::fromPairs `
13
- - ` DataType ` is now part of the public API
13
+ - ` DataType ` enum
14
14
- ` Type::fromVariable `
15
15
- ` Type::tryFromVariable `
16
- - the ` Type ` enum is now a baked string Enum.
17
16
- ` Parser::new ` to simplify parser usage.
18
17
19
18
### Fixed
20
19
21
20
- 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.
23
23
24
24
### Deprecated
25
25
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ use Bakame\Http\StructuredFields\Type;
250
250
echo Type::fromVariable(42)->value; // returns 'integer'
251
251
echo Type::fromVariable(42.0)->name; // returns 'Decimal'
252
252
echo Type::fromVariable(new SplTempFileObject()); // throws InvalidArgument
253
- echo Type::tryFromValue (new SplTempFileObject()); // returns null
253
+ echo Type::tryFromVariable (new SplTempFileObject()); // returns null
254
254
```
255
255
256
256
To ease validation a ` Type::equals ` method is exposed to check if the ` Item ` has
Original file line number Diff line number Diff line change 28
28
"ext-json" : " *"
29
29
},
30
30
"require-dev" : {
31
- "friendsofphp/php-cs-fixer" : " ^v3.15.1 " ,
31
+ "friendsofphp/php-cs-fixer" : " ^v3.45.0 " ,
32
32
"httpwg/structured-field-tests" : " *@dev" ,
33
33
"phpstan/phpstan" : " ^1.10.50" ,
34
34
"phpstan/phpstan-strict-rules" : " ^1.5.2" ,
35
35
"phpstan/phpstan-phpunit" : " ^1.3.15" ,
36
36
"phpstan/phpstan-deprecation-rules" : " ^1.1.4" ,
37
- "phpunit/phpunit" : " ^10.5.3 " ,
37
+ "phpunit/phpunit" : " ^10.5.5 " ,
38
38
"phpbench/phpbench" : " ^1.2.15" ,
39
39
"symfony/var-dumper" : " ^6.4.0"
40
40
},
You can’t perform that action at this time.
0 commit comments