Releases: vapor/vapor
4.83.2 - HTTPServerErrorHandler: Improve Error Handling for HTTPParserError
What's Changed
HTTPServerErrorHandler: Improve Error Handling for HTTPParserError by @fred-sch in #2922
Invalid HTTP previously just closed the connection, but did not actually handle the errors.
This PR uses an adapted version of https://github.com/apple/swift-nio/blob/main/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift to properly catch exceptions if they occur.
New Contributor
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 4.83.1...4.83.2
4.83.1 - Pass X-Request-Id if present
What's Changed
Pass X-Request-Id if present by @paunik in #3072
Pass the value from the X-Request-Id to the logger context
- pass the X-Request-Id header value if present, pass generated UUID if the header not present
Mentioned:
Why:
- We needed a way to trace router -> web -> worker on the logger on the heroku and we found this https://devcenter.heroku.com/articles/http-request-id
Inspiration:
New Contributor
This patch was released by @gwynne
Full Changelog: 4.83.0...4.83.1
4.83.0 - Support Crypto 3.0.0 in the other package manifest
What's Changed
Support Crypto 3.0.0 in the other package manifest by @gwynne in #3073
Fixes an oversight made by both Tim and myself in #3070. Full credit to @gregcotten for catching the omission.
This patch was released by @gwynne
Full Changelog: 4.82.0...4.83.0
4.82.0 - Add support for Swift Crypto 3.0.0
What's Changed
Add support for Swift Crypto 3.0.0 by @0xTim in #3070
See https://forums.swift.org/t/swift-crypto-3-0-0/67387 for more details
This patch was released by @gwynne
Full Changelog: 4.81.1...4.82.0
4.81.1 - `Logger.report()` should handle `LocalizedError`, `DecodingError`, and `EncodingError` identically to other errors
What's Changed
Logger.report()
should handle LocalizedError
, DecodingError
, and EncodingError
identically to other errors by @MahdiBM in #3068
LocalizedError.localizedDesceiption
is useless. We shouldn’t use it.
The special handling ofDecodingError
andEncodingError
also doesn’t do much.
This patch was released by @gwynne
Full Changelog: 4.81.0...4.81.1
4.81.0 - The swift-backtrace library is no longer needed in 5.9
What's Changed
The swift-backtrace library is no longer needed in 5.9 by @gwynne in #3064
This patch was released by @gwynne
Full Changelog: 4.80.0...4.81.0
4.80.0 - Make Storage Sendable
What's Changed
Make Storage Sendable by @0xTim in #3056
Make Vapor’s
Storage
andApplication
Sendable
. This is a key piece in allowingRequest
andResponse
to beSendable
.Note that types that are stored in
Storage
should now beSendable
. If you get any warnings, you may need to update your code for this new change.
This patch was released by @0xTim
Full Changelog: 4.79.0...4.80.0
4.79.0 - Add Sendable Conformances to underlying types
What's Changed
Add Sendable Conformances to underlying types by @0xTim in #3054
This adds Sendable annotations to many of Vapor’s types and APIs, including the request handlers.
APIs are marked
@preconcurrency
where it makes sense to reduce warnings for anyone using the release. To fix your code and see the warnings, you can enable strict concurrency checking.Note: this PR does not touch
Request
,Response
orApplication
as they require fundamental changes that are larger in scope and will be done in a future release.
Reviewers
Thanks to the reviewers for their help:
This patch was released by @0xTim
Full Changelog: 4.78.2...4.79.0
4.78.2 - Resolve issue #2650
What's Changed
Resolve issue #2650 by @paunik in #2674
In order to prevent 5xx internal error we try to:
- validate number of parameters in FormDataDecoder so we can detect when only boundary is present.
New Contributor
This patch was released by @gwynne
Full Changelog: 4.78.1...4.78.2