Skip to content

v2.0.0 Alpha 3

Pre-release
Pre-release
Compare
Choose a tag to compare
@adam-fowler adam-fowler released this 20 Feb 10:19
8cb3e42

Breaking changes

  • Removed HBRequestContext.init(allocator:logger:) as a protocol requirement, removed default implementation of HBRequestContext.init(channel:logger:) requirement.
  • JobQueue protocol has associated type JobID for identifying a job.
  • Removed GracefulShutdownWaiter. Instead use try await gracefulShutdown() which is already provided by ServiceLifecycle.

Minor release changes

  • Added HBParameter.get/require function for types that conform to RawRepresentable.
  • Added HBRouterOptions. Options include
    • caseInsensitive: Route path matching is case insensitive
    • autoGenerateHeadEndpoints: Automatically generate HEAD endpoints for all GET endpoints.
  • Add primary associated type for HBRouterMethods. Thanks to @sidepelican

Patch release changes

  • Fixed HTTP2 channel cleanup
  • Replaced atomic in HTTPChannelHandler.handleHTTP with value wrapped in NIOLockedValueBox
  • Tag retroactive protocol conformances.