Releases: vapor/vapor
4.89.0 - Add fully async entrypoints
What's Changed
Add fully async entrypoints by @gwynne in #3114
Pretty much what it says on the tin. Use the new
execute()
API instead ofrun()
, and/orstartup()
instead ofstart()
.
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 4.88.0...4.89.0
4.88.0 - Bring back AsyncCommands
What's Changed
Bring back AsyncCommands by @marius-se in #3109
Brings async commands back by adding a new property
asyncCommands
toApplication
.
New Contributor
- @marius-se made their first contribution in #3109 🎉
This patch was released by @0xTim
Full Changelog: 4.87.1...4.88.0
4.87.1 - General warnings and tests cleanup
What's Changed
General warnings and tests cleanup by @gwynne in #3107
These changes fix almost all of the extant warnings in Vapor, and clean up some issues in the tests, which can now run fully parallelized. There are no functional changes.
This patch was released by @gwynne
Full Changelog: 4.87.0...4.87.1
4.87.0 - Add public initializer for `XCTHTTPRequest`
What's Changed
Add public initializer for XCTHTTPRequest
by @hsharghi in #3106
Add public initializer for
XCTHTTPRequest
This PR will fix #3105Add public initializer for
XCTHTTPRequest
New Contributor
This patch was released by @gwynne
Full Changelog: 4.86.2...4.87.0
4.86.2 - Make Async Request Body actually work
What's Changed
Make Async Request Body actually work by @0xTim in #3096
The existing implementation of adding an
AsyncSequence
toRequest.Body
had two issues:
- it didn’t ensure code was being called from the correct event loop which broke
Sendable
guarantees and was unsafe- it would hit a precondition failure in the implementation if backpressure was triggered because the initial state was not accounted for
This fixes that
Reviewers
Thanks to the reviewers for their help:
This patch was released by @0xTim
Full Changelog: 4.86.1...4.86.2
4.86.1 - Create a thread pool of System.coreCount rather than 64 when initializing an Application
What's Changed
Create a thread pool of System.coreCount rather than 64 when initializing an Application by @dfed in #3092
Following this recommendation, this PR simply changes the default number of cores when initializing an
Application
from 64 to the current number of cores.This means that initializing an
Application
with default arguments now spins up 2x the number of threads as cores on device. We’ll createSystem.coreCount
threads when instantiating thethreadPool
, and anotherSystem.coreCount
threads when we instantiate theeventLoopGroup
.2x
System.coreCount
is still way better thanSystem.coreCount + 64
on older devices, so while this PR does not directly address #3003, it does reduce total thread usage oninit
.
New Contributor
This patch was released by @gwynne
Full Changelog: 4.86.0...4.86.1
4.86.0 - Make Request Sendable
What's Changed
Make Request Sendable by @0xTim in #3093
Final stage of Vapor’s
Sendable
journey asRequest
is nowSendable
.There should be no more Sendable warnings in Vapor, even with complete concurrency checking turned on.
Reviewers
Thanks to the reviewers for their help:
This patch was released by @0xTim
Full Changelog: 4.85.1...4.86.0
4.85.1 - Remove Sendable requirements on Authenticatable
What's Changed
Remove Sendable requirements on Authenticatable by @0xTim in #3095
Removes the requirement for
Authenticatable
types to beSendable
which was causing issues with Fluent models (and any reference types) and wasn’t solvable in a non-breaking way.This uses an unsafe box to wrap the
Authenticatable
types which removes compiler checking on usage of the box but should not be an issue due to the way Vapor’s auth is implemented
This patch was released by @0xTim
Full Changelog: 4.85.0...4.85.1
4.85.0 - Sendable Response
What's Changed
Sendable Response by @0xTim in #3082
Make
Response
Sendable
Reviewers
Thanks to the reviewers for their help:
This patch was released by @0xTim
Full Changelog: 4.84.6...4.85.0
4.84.6 - Handle query parameters in FileMiddleware redirects
What's Changed
Handle query parameters in FileMiddleware redirects by @Captain-Kirkie in #3077
Correctly handle query parameters when using the redirect functionality in
FileMiddleware
.
New Contributor
- @Captain-Kirkie made their first contribution in #3077 🎉
This patch was released by @0xTim
Full Changelog: 4.84.5...4.84.6