5.1.0
5.1.0
This will be the last update specifically supporting Xcode 10.1 and Swift 4.2.
New Procedures
-
[919]: JSON Coding procedures.
This changes introduced a generic
JSONDecodingProcedureandJSONEncodingProcedurewhich can be used to decode/decode aDatarepresenting a UTF-8 encoded JSON string into a suitableCodabletype. The procedure allows full injection of theJSONDecoderwith a convenience initializer to user or override the default behavior. Additionally, theDatacan be inject from a network procedure. For decoding errors - the procedure will fail with the coding error from theJSONDecoder. This might be quite tricky to recover from and manage in production code, so in some cases it would make sense to decode into a type which can handle JSON error responses, e.g.{"message": "Failed to authorize"}.
Other Changes
- [908, 909]: Updates the parameter names in method signature named
with: Error?to includeerror. This greatly improves code completion. Thanks to @pronebird and @juliensagot for these. - [906]: Updates to the logging mechanisms.
- [918]: The
Identityproperty ofProcedurenow usesObjectIdentifierandHasherunder the hood instead of UUIDs. Thanks to - [912]: Fixes some public accessor attributes for
NetworkRecovery- thanks to @ericyanush for this one. - [923]: Added an integration point in CI to check that SwiftPM was correctly integrating.