Vapor v4.34.1 Release Notes

Release Date: 2020-11-02 // almost 3 years ago
  • 🚀 ###### 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 strategylet decoder = URLEncodedFormDecoder(configuration: .init(dateDecodingStrategy: .iso8601)) 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