Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: vapor/vapor

Tags

4.117.0

Toggle 4.117.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix warnings in 6.2 (#3361)

* Fix a bunch of warnings in 6.2

* Fix test warnings

* Numptie

* Extra retroactive

4.116.0

Toggle 4.116.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Allow initializing Vapor.Application with a Logger (#3359)

4.115.1

Toggle 4.115.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add Sendable annotations to the OTP types (#3345)

Add some missing Sendable annotations

4.115.0

Toggle 4.115.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Improve `VaporTesting`'s `withApp` method (#3332)

* Improve `VaporTesting`'s `withApp` method
* Don't break API

4.114.1

Toggle 4.114.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Correct SessionData's Codable conformance (#3317)

4.114.0

Toggle 4.114.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added a cache policy for file middleware (#3314)

4.113.2

Toggle 4.113.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix warning in service fix (#3303)

4.113.1

Toggle 4.113.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Prevent stack overflow by using `NIOLock` instead of `NIOLockedValueB…

…ox` during service initialization (#3302)

* Prevent stack overflow by using `NIOLock` instead of `NIOLockedValueBox` during service initialization

At first glance, one could think that using a `NIOLockedValueBox<(@sendable (Application) -> ServiceType)?>` for `makeService` would be sufficient here. However, for some reason, calling `self.storage.makeService.withLockedValue({ $0 })` repeatedly in `Service.service` causes each subsequent call to the function stored inside the locked value to perform one (or several) more "trampoline" function calls, slowing down the execution and eventually leading to a stack overflow. This is why we use a `NIOLock` here instead; it seems to avoid the `{ $0 }` issue above despite still accessing `_makeService` from within a closure (`{ self._makeService }`).

- Replace `NIOLockedValueBox` with `NIOLock` to avoid adding trampoline function calls
- Add detailed comment explaining the rationale behind the locking mechanism change
- Simplify service initialization with direct fatalError instead of optional handling
- Remove redundant nil checks in service getter

* Add tests.

4.113.0

Toggle 4.113.0's commit message

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
Fix warnings from NIO 2.79.0 (#3285)

* Start migrating to NIOFileSystem and deprecating old APIs

* Fix all the FileSystem deprecations

* Don't run tracing tests on port 8080

* Match existing write behaviour

* Fix warnings in HTTPServer

* Fix more warnings

* Fix warnings in client tests

* Fix test

* Reduce test time

* Remove auth test warnings

* Fix a bunch more warnings in tests

* Fix a bunch more test warnings

* Migrate environment tests

* More test warnings

* Remove final warnings

* Fix subtle little upgrade bug

* Pull in new NIO release

* Fix tracing test

* Apply suggestions from code review

Co-authored-by: Gwynne Raskind <[email protected]>

* PR reviews

* Remove dodgy test

* PR feedback and migrate client tests to Swift Testing

---------

Co-authored-by: Gwynne Raskind <[email protected]>

4.112.2

Toggle 4.112.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Android support (#3282)

Co-authored-by: Tim Condon <[email protected]>