Skip to content

Fix behavior of Leaf context encoding and improve Leaf errors

Compare
Choose a tag to compare
@VaporBot VaporBot released this 17 Aug 06:32
· 14 commits to main since this release
04f262e
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.