Skip to content

Releases: vapor/vapor

4.89.0 - Add fully async entrypoints

06 Dec 18:18
3d62c0c
Compare
Choose a tag to compare

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 of run(), and/or startup() instead of start().

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

01 Dec 22:08
c710b8f
Compare
Choose a tag to compare

What's Changed

Bring back AsyncCommands by @marius-se in #3109

Brings async commands back by adding a new property asyncCommands to Application.

New Contributor

This patch was released by @0xTim

Full Changelog: 4.87.1...4.88.0

4.87.1 - General warnings and tests cleanup

21 Nov 17:10
da9c280
Compare
Choose a tag to compare

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`

21 Nov 13:34
1aeeaaf
Compare
Choose a tag to compare

What's Changed

Add public initializer for XCTHTTPRequest by @hsharghi in #3106

Add public initializer for XCTHTTPRequest
This PR will fix #3105

Add 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

07 Nov 13:14
d682e05
Compare
Choose a tag to compare

What's Changed

Make Async Request Body actually work by @0xTim in #3096

The existing implementation of adding an AsyncSequence to Request.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

07 Nov 06:39
1d075c8
Compare
Choose a tag to compare

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 create System.coreCount threads when instantiating the threadPool, and another System.coreCount threads when we instantiate the eventLoopGroup.

2x System.coreCount is still way better than System.coreCount + 64 on older devices, so while this PR does not directly address #3003, it does reduce total thread usage on init.

New Contributor

  • @dfed made their first contribution in #3092 🎉
This patch was released by @gwynne

Full Changelog: 4.86.0...4.86.1

4.86.0 - Make Request Sendable

06 Nov 11:37
3744d42
Compare
Choose a tag to compare

What's Changed

Make Request Sendable by @0xTim in #3093

Final stage of Vapor’s Sendable journey as Request is now Sendable.

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

02 Nov 16:43
0fa646e
Compare
Choose a tag to compare

What's Changed

Remove Sendable requirements on Authenticatable by @0xTim in #3095

Removes the requirement for Authenticatable types to be Sendable 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

01 Nov 15:22
3bf4e73
Compare
Choose a tag to compare

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

11 Oct 12:32
288d73a
Compare
Choose a tag to compare

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

This patch was released by @0xTim

Full Changelog: 4.84.5...4.84.6