Skip to content

Releases: apocolipse/Thrift-Swift

Updates

22 Jun 16:22
69c2862
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.0...1.2.0

Minor updates

29 Aug 18:34
Compare
Choose a tag to compare

Minor updates to squash warnings with newer versions of Swift/Xcode

Support for Swift 4.1

10 Apr 22:25
4b5ba42
Compare
Choose a tag to compare
Merge pull request #20 from apocolipse/unit-tests

Added unit tests

BREAKING CHANGES!!!!!

12 Jun 20:32
Compare
Choose a tag to compare

This release has an update to how TEnum's work to address issues when new enum cases are added to services. Previously an error would be thrown if an unknown enum value was read from protocol. The generator now has a safe_enums flag that will now add an .unknown(Int32) case such that you can still serialize the value, and even interact with it without losing it (in case you need to send it back to the service) safe_enums is opt-in in the generator so you must be explicit if you want to use it.

Changes:

TEnum No longer RawRepresentable
TEnum.read(from:) has been removed from the library and is now generated
Please use the updated Thrift generator (commit d30a39620cc609a7f4f11fe12087f211cebe69db or after at http://github.com/apocolipse/thrift) with this version or any version after.

Please note that the only breaking changes are with the generator+library combo, it should remain fully compatible with existing code (rawValue still available and init?(rawValue:) added for convenience/compatibility)

1.0.6

31 May 16:15
Compare
Choose a tag to compare
  • Fix TFramedTransport
  • Add Secure option to TSSLSocketTransport
  • Fix empty TMap on TCompactProtocol
  • Add missing completion handler on error case in THTTPSessionTransport