Skip to content

Commit 6d16012

Browse files
Improve release notes.
1 parent 022b2d0 commit 6d16012

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

releases.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
## Unreleased
44

5-
- Introduce `Header::*.parse(value)` which converts a string representation to a header instance.
6-
- Introduce `Header::*.coerce(value)` which converts a rich representation (e.g. `Array`) to a header instance.
7-
- `Header::*#initialize` still implements parse-like behaviour, but it's considered deprecated.
8-
- Update `Headers#[]=` to use `parse(value)` for conversion. This provides better symmetry with `Headers#[]`.
5+
- Introduce `Header::*.parse(value)` which parses a raw header value string into a header instance.
6+
- Introduce `Header::*.coerce(value)` which coerces any value (`String`, `Array`, etc.) into a header instance with normalization.
7+
- `Header::*#initialize` now accepts arrays without normalization for efficiency, or strings for backward compatibility.
8+
- Update `Headers#[]=` to use `coerce(value)` for smart conversion of user input.
9+
- Normalization (e.g., lowercasing) is applied by `parse`, `coerce`, and `<<` methods, but not by `new` when given arrays.
910

1011
## v0.55.0
1112

0 commit comments

Comments
 (0)