Vapor: 4.34.1 Release

Release date:
November 2, 2020
Previous version:
4.34.0 (released October 27, 2020)
Magnitude:
257 Diff Delta
Contributors:
2 total committers
Data confidence:
Commits:

Top Contributors in 4.34.1

andtie
gwynne

Directory Browser for 4.34.1

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

This patch was authored by @andtie and released by @0xTim.

Honor the configuration for Date Decoding & Encoding in URLEncodedFormDecoder / URLEncodedFormEncoder (fixes #2518).

// Configure a non-default date decoding strategy
let decoder = URLEncodedFormDecoder(configuration: .init(dateDecodingStrategy: .iso8601))
ContentConfiguration.global.use(urlDecoder: decoder)

// allow to use optional date-parameters in a request 
let after = try req.query.get(Date?.self, at: "after") ?? .distantPast

// => dates with the expected format (e.g. "...?after=2020-10-28T10:31:14Z") are correctly parsed