Skip to content

Commit d249610

Browse files
committed
Update package config and changelog
1 parent c5b436c commit d249610

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ All Notable changes to `bakame/http-strucured-fields` will be documented in this
77
### Added
88

99
- Support for `Stringable` instance added to `Item::from`, the instances will be converted to the string data type.
10-
- Support for the upcoming `Date` data type in `Item`. It is represented as a `DateTimeImmutable` object. (see https://httpwg.org/http-extensions/draft-ietf-httpbis-sfbis.html)
10+
- Support for the upcoming `Date` data type in `Item`. (see https://httpwg.org/http-extensions/draft-ietf-httpbis-sfbis.html)
11+
- Represented as a `DateTimeImmutable` object.
12+
- `Item::isDate` tells whether the instance represents a `Date` DataType.
1113
- `ParameterAccess` interface updated with 3 new methods to ease parameter members modification.
1214
- `Parameter::create` named constructor to create a new instance without any parameter.
1315
- `Dictionnary::create` named constructor to create a new instance without any parameter.
1416

1517
### Fixed
1618

19+
- `Item::fromHttpValue` now internally uses the `Parser` previously it was using its own parsing rules.
1720
- **[BC Break]** `::fromAssociative`, `::fromList`, `::fromPairs` methods require iterable arguments without default value.
18-
- **[BC Break]** `Item::value` method returns the Item (returns value can be `float|int|string|bool|ByteSequence|Token`).
21+
- **[BC Break]** `Item::value` method returns the Item (returns value can be `float|int|string|bool|ByteSequence|DateTimeImmutable|Token`).
1922
- **[BC Break]** `InnerList::parameters` is no longer accessible as a public readonly property.
2023

2124
### Deprecated

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ parameters:
1010
ignoreErrors:
1111
reportUnmatchedIgnoredErrors: true
1212
typeAliases:
13-
DataType: '\Bakame\Http\StructuredFields\ByteSequence|\Bakame\Http\StructuredFields\Token|\DateTimeInterface|\Stringable|bool|int|float|string'
13+
DataType: '\Bakame\Http\StructuredFields\ByteSequence|\Bakame\Http\StructuredFields\Token|\DateTimeInterface|\Stringable|string|int|float|bool'

0 commit comments

Comments
 (0)