Releases: hummingbird-project/hummingbird
Releases · hummingbird-project/hummingbird
v0.14.0
v0.13.3
Minor release changes
- Added
HBMediaType.withParameter
to create new media type with a parameter.
Patch release changes
- Optimisations
- Don't capture all of
HBRequest
inHTTPResponder.respond
closures. - Don't patch
HBResponse
if no patch has been setup - Added
final
to class definitions
- Don't capture all of
v0.13.2
- Fixed parsing of media types with non-alphanumeric characters in their names eg
multipart/form-data
v0.13.1
Patch release changes
- Ensure concurrency code is only compiled when _Concurrency framework is available
- Remove _NIOConcurrency imports as NIO functions have been moved into NIOCore
- URLEncodedForm.NodeValue is now a struct
Other changes
- Use swift:5.5 docker images in CI
v0.13.0 (Async/Await)
Breaking changes
HBRequest
andHBResponse
have been changed from classes to structs. This is in a bid to reduce race conditions during async calls. This will impact any code where you are mutating either of these, but should make it clearer where edits are being made.bodyCollation
parameter in route handler functions has been changed into a set of options which include.streamBody
.- Added option
.editResponse
which indicates you are going to edit a route response viaHBRequest.response
. Not setting this will cause a crash.
Minor release changes
- Added support for async/await in Swift 5.5
- Added async route handlers
- Added
HBAsyncMiddleware
protocol - Added
HBAsyncRouteHandler
for async versions ofHBRouteHandler
- Added async versions of persist framework functions.
- Added
HBApplication.Configuration.with()
to generate new configuration with edited change. - XCT test framework binds to port zero by default.
Patch release changes
- Add more informative messaging for when an extension doesn’t exist.
HBRequest.cookies
returns a temporary object instead of caching the cookies in an ‘HBRequest` extension.- Replace
import NIO
withNIOCore
orNIOPosix
where applicable.
v0.12.1
- XCT test framework now binds test server to port 0
- Conform
HBParameters
toCollection
v0.12.0
- Update to v0.11.0 of hummingbird-core
v0.11.4
- Minor optimization: Remove one unnecessary
EventLoopFuture.map
for routes that return anEventLoopFuture
- Minor optimization: Metrics middleware uses
whenComplete
instead offlatMap
/map
v0.11.3
- Use
HBXCTClient
from HummingbirdCoreXCT for testing instead of AsyncHTTPClient - Fix memory leaks associated with
HBDateCache
andHBXCTLive
v0.11.2
HBRequest.Persist.create
throws an error if the key already exists.- XCT calls run on
EmbeddedEventLoop
to ensure allsubmit
andexecute
calls are run HBRequest
logger stores id as.stringConvertible
instead of.string
- Setup up a performance executable for testing framework performance