Skip to content

Commit

Permalink
Prepare new release
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Dec 30, 2023
1 parent 04c5834 commit 899a151
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

All Notable changes to `bakame/http-strucured-fields` will be documented in this file.

## [Next] - TBD
## [1.2.0](https://github.com/bakame-php/http-structured-fields/compare/1.1.0...1.2.0) - 2023-12-30

### Added

- Support for the `DisplayString` type
- `ByteSequence::tryFromEncoded`
- `Token::tryFromString`
- `OuterList::fromPairs`
- `DataType` is now part of the public API
- `DataType` enum
- `Type::fromVariable`
- `Type::tryFromVariable`
- the `Type` enum is now a baked string Enum.
- `Parser::new` to simplify parser usage.

### Fixed

- Tests file moved under the `/tests` directory
- Fix `Type::tryFromValue` to correctly detect string type derivative.
- Fix `Type::tryFromVariable` to correctly detect string type derivative.
- the `Type` enum is now a baked string Enum.

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ use Bakame\Http\StructuredFields\Type;
echo Type::fromVariable(42)->value; // returns 'integer'
echo Type::fromVariable(42.0)->name; // returns 'Decimal'
echo Type::fromVariable(new SplTempFileObject()); // throws InvalidArgument
echo Type::tryFromValue(new SplTempFileObject()); // returns null
echo Type::tryFromVariable(new SplTempFileObject()); // returns null
```

To ease validation a `Type::equals` method is exposed to check if the `Item` has
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"ext-json": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^v3.15.1",
"friendsofphp/php-cs-fixer": "^v3.45.0",
"httpwg/structured-field-tests": "*@dev",
"phpstan/phpstan": "^1.10.50",
"phpstan/phpstan-strict-rules": "^1.5.2",
"phpstan/phpstan-phpunit": "^1.3.15",
"phpstan/phpstan-deprecation-rules": "^1.1.4",
"phpunit/phpunit": "^10.5.3",
"phpunit/phpunit": "^10.5.5",
"phpbench/phpbench": "^1.2.15",
"symfony/var-dumper": "^6.4.0"
},
Expand Down

0 comments on commit 899a151

Please sign in to comment.