Skip to content

Releases: vapor/vapor

4.83.2 - HTTPServerErrorHandler: Improve Error Handling for HTTPParserError

22 Sep 13:09
1f2b44b
Compare
Choose a tag to compare

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

22 Sep 06:16
d79fad4
Compare
Choose a tag to compare

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:

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

22 Sep 05:56
a4b0715
Compare
Choose a tag to compare

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

22 Sep 02:07
7118641
Compare
Choose a tag to compare

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

20 Sep 16:26
b70d504
Compare
Choose a tag to compare

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 of DecodingError and EncodingError 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

06 Sep 09:44
03a08f6
Compare
Choose a tag to compare

What's Changed

The swift-backtrace library is no longer needed in 5.9 by @gwynne in #3064

Per swift-server/swift-backtrace#68.

This patch was released by @gwynne

Full Changelog: 4.80.0...4.81.0

4.80.0 - Make Storage Sendable

28 Aug 14:07
d53f7fd
Compare
Choose a tag to compare

What's Changed

Make Storage Sendable by @0xTim in #3056

Make Vapor’s Storage and Application Sendable. This is a key piece in allowing Request and Response to be Sendable.

Note that types that are stored in Storage should now be Sendable. 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

18 Aug 15:37
1bb4a2e
Compare
Choose a tag to compare

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 or Application 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

16 Aug 04:26
fe973db
Compare
Choose a tag to compare

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

4.78.1 - Fix for #2574 Missing quote from value

10 Aug 23:53
474d91b
Compare
Choose a tag to compare

What's Changed

Fix for #2574 Missing quote from value by @paunik in #2839

  • now quotes are always enforced in DirectiveSerializer.serialize
  • adjusted tests

New Contributor

This patch was released by @gwynne

Full Changelog: 4.78.0...4.78.1