Skip to content

v0.22.0-RC1

Pre-release
Pre-release
Compare
Choose a tag to compare
@rossabaker rossabaker released this 27 May 00:15
· 6698 commits to main since this release

Includes the changes of 0.21.24, including the vulnerability fix to StaticFile.fromUrl. This release is incorrectly referenced as 0.22.0-M9 in the GHSA.

http4s-core

Breaking changes

  • #4787: Various header selection refinements:
    • Header.Select#toRaw now takes an F[A] and returns a NonEmptyList[Header.Raw]. This is necessary because headers without a Semigroup (e.g., Set-Cookie) can't be combined into a single header value.
    • The old Header.Select#toRaw is renamed to toRaw1. This version still accepts a single value and returns a single raw header.
    • Header.Select#from now returns an Option[Ior[NonEmptyList[ParseFailure], NonEmptyList[A]]]. The Ior lets us return both a value and "warnings" when a repeating header contains both valid and invalid entries.
    • Add Headers#getWithWarnings to return the Ior result.
  • #4788: Extend ServerSentEvent with comments. The data field is now optional. retry is changed from a Long to a FiniteDuration. data spanning multiple lines are now rendered as multiple data: fields per the spec.

Bugfixes

  • #4873: Catch exceptions in ParseResult.fromParser. Don't throw when parsing a media range in the Content-Type parser.

Dependency updates

  • blaze-0.15.1
  • circe-0.14.1
  • play-json-2.9.2 (downgrade)