Releases: vapor/leaf
4.4.1 - Fix `LeafContext.application` Casting Failure
What's Changed
Fix LeafContext.application
Casting Failure by @grantjbutler in #235
Fixes an issue where the wrong type would be set to the
application
userInfo
key when accessing the renderer directly on theApplication
(it would set a value ofApplication.Leaf
, rather thanApplication
, and then the casting would fail onLeafContext.application
).
This patch was released by @0xTim
Full Changelog: 4.4.0...4.4.1
4.4.0 - Up Swift Version to 5.8
What's Changed
Up Swift Version to 5.8 by @fpseverino in #233
- Update to latest version of LeafKit to support time zones in
#date
tag.- Update to latest version of Vapor.
- Set the minimum supported Swift version to 5.8
This patch was released by @0xTim
Full Changelog: 4.3.0...4.4.0
4.3.0 - Bump Package.swift
What's Changed
Bump Package.swift by @gwynne in #230
This package should have gotten a release after the previous update to its
Package.swift
, but it was overlooked. This one further updates the versions and should resolve version issues with the Leaf provider.
This patch was released by @gwynne
Full Changelog: 4.2.4...4.3.0
Fix Algorithms Dependency Declaration
This patch was authored by @dankinsoid and released by @0xTim.
Swift Algorithms was used in Leaf but never explicitly declared as a dependency on the target. That resulted in compiler errors in some scenarios. The dependency is now correctly declared.
Fix retain cycle(s) in encoder implementation
This patch was authored by @petrpavlik and released by @0xTim.
This PR addresses issue #215 and server as an alternative of PR #216, that somehow got stuck in it's efforts of being merged in.
I've done 2 things to discover the issue and confirm the fix
- Xcode would show a bunch of memory leaks when using it's memory graph debugger, those are gone after the changes introduced in this PR
- I've switched https://swiftpack.co, which uses leaf heavily, to using my fork with this fix. The heroku graph bellow shows significantly lower memory consumption and does not seem to be crashing, though I still do do seem to have memory leaks somewhere in the codebase.
Add Swift Algorithms as an explicit dependency
Fix behavior of Leaf context encoding and improve Leaf errors
This patch was authored and released by @gwynne.
Types which use superEncoder(forKey:)
in their Codable
conformance (such as Fluent models) can now safely be provided to Leaf views as context objects. In general, handling of context encoding is significantly improved.
LeafError
now conforms to AbortError
and DebuggableError
for improved error UI/UX.
Update Supported Swift Versions
This patch was authored and released by @0xTim.
This removes support for Swift 5.2 and Swift 5.3, making Swift 5.4 the earliest supported version as
announced
Add experimental support for iOS
This patch was authored by @BeauNouvelle and released by @0xTim.
This change allows Leaf to be used within iOS environments. Without it we get the following error:
The package product 'Vapor' requires minimum platform version 13.0 for the iOS platform, but this target supports 9.0