Skip to content

Commit 058477c

Browse files
committed
Prepare version 0.7.0
1 parent 6611766 commit 058477c

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Changelog
22

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

5-
## [Next] - TBD
5+
## [0.7.0] - 2023-02-06
66

77
### Added
88

99
- Support for `Stringable` instances added to `Item::from`, the instances will be converted to the string data type.
1010
- Support for the upcoming `Date` data type in `Item` represented as a `DateTimeImmutable` object. (see https://httpwg.org/http-extensions/draft-ietf-httpbis-sfbis.html)
11-
- `ParameterAccess` interface updated with new methods to ease parameter members modification.
11+
- `SupportsParameters` interface with new methods to ease parameter members modification.
1212
- `Parameter::create` named constructor to create a new instance without any parameter.
1313
- `Dictionnary::create` named constructor to create a new instance without any parameter.
1414
- `Type` Enum of all supported datatype.
@@ -37,6 +37,7 @@ All Notable changes to `bakame/http-strucured-fields` will be documented in this
3737
- **[BC Break]** `Item::is*` methods are removed; the enum `Type` is used instead.
3838
- **[BC Break]** `MemberContainer::clear` method is removed without replacement.
3939
- **[BC Break]** `MemberOrderedMap::set` and `MemberOrderedMap::delete` methods remonved; use `MemberOrderedMap::add` and `MemberOrderedMap::remove` instead
40+
- **[BC Break]** `ParameterAccess` renamed `SupportsParameters`.
4041

4142
## [0.6.0] - 2022-11-12
4243

@@ -193,7 +194,7 @@ All Notable changes to `bakame/http-strucured-fields` will be documented in this
193194

194195
**Initial release!**
195196

196-
[Next]: https://github.com/bakame-php/http-structured-fields/compare/0.6.0...master
197+
[0.7.0]: https://github.com/bakame-php/http-structured-fields/compare/0.6.0...0.7.0
197198
[0.6.0]: https://github.com/bakame-php/http-structured-fields/compare/0.5.0...0.6.0
198199
[0.5.0]: https://github.com/bakame-php/http-structured-fields/compare/0.4.0...0.5.0
199200
[0.4.0]: https://github.com/bakame-php/http-structured-fields/compare/0.3.0...0.4.0

src/InnerList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function withoutParameter(string ...$keys): static
7979
return $this->withParameters($this->parameters()->remove(...$keys));
8080
}
8181

82-
public function clearParameters(): static
82+
public function withoutAllParameters(): static
8383
{
8484
return $this->withParameters(Parameters::create());
8585
}

src/InnerListTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function it_can_create_via_parameters_access_methods_a_new_object(): void
196196
$instance3 = $instance1->prependParameter('a', false);
197197
$instance4 = $instance1->withoutParameter('b');
198198
$instance5 = $instance1->withoutParameter('a');
199-
$instance6 = $instance1->clearParameters();
199+
$instance6 = $instance1->withoutAllParameters();
200200

201201
self::assertSame($instance1, $instance2);
202202
self::assertSame($instance1, $instance7);

src/Item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function appendParameter(string $key, StructuredField|Token|ByteSequence|
223223
return $this->withParameters($this->parameters()->append($key, $member));
224224
}
225225

226-
public function clearParameters(): static
226+
public function withoutAllParameters(): static
227227
{
228228
return $this->withParameters(Parameters::create());
229229
}

src/ItemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function it_can_create_via_parameters_access_methods_a_new_object(): void
329329
$instance3 = $instance1->prependParameter('a', false);
330330
$instance4 = $instance1->withoutParameter('b');
331331
$instance5 = $instance1->withoutParameter('a');
332-
$instance6 = $instance1->clearParameters();
332+
$instance6 = $instance1->withoutAllParameters();
333333

334334
self::assertSame($instance1, $instance2);
335335
self::assertSame($instance1, $instance7);

src/ParameterAccess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function withoutParameter(string ...$keys): static;
5555
* This method MUST retain the state of the current instance, and return
5656
* an instance that contains the specified parameter change.
5757
*/
58-
public function clearParameters(): static;
58+
public function withoutAllParameters(): static;
5959

6060
/**
6161
* Returns a new instance with the newly associated parameter instance.

0 commit comments

Comments
 (0)