Skip to content

Releases: Anviking/Decodable

0.6.0: Swift 4

29 Sep 18:30
Compare
Choose a tag to compare

This release contains no other changes than updated project settings to target Swift 4.

Coming from earlier versions you will be faced with errors like 'Decodable' is ambiguous for type lookup in this context. Unfortunately you have to use the following import-syntax to get around it:

import protocol Decodable.Decodable

where you can also import other structs and enums as required.

v0.5.1

02 Oct 17:33
Compare
Choose a tag to compare

This release mainly contains the following changes:

  • #127 URL is DynamicDecodable and Decodable
  • #131 Fix for SPM
  • #126 Updated documentation comments

v0.5: Any

12 Sep 18:13
Compare
Choose a tag to compare

Some significant changes:

  • #108 Every default implementation of Decodable can be overridden
  • #79 Errors are once again enums
  • #117 Any instead of AnyObject
  • #101, #99 New KeyPath ad OptionalKeyPath structs.

Please see v0.5.0 migration guide and the new readme for more information.

v0.4.4: The Remnant

09 Jul 01:30
Compare
Choose a tag to compare
  • Project settings upgraded to support Xcode 8 with legacy Swift 2.3 support.

Note: Unsure if this works with Xcode 7 or if you explicitly have to target v0.4.3. And if you've clicked on the releases page and wonder where the Swift 3 support is, it's on the master branch. Stable releases are coming.

v0.4.3: Last of its kind

15 Jun 22:04
Compare
Choose a tag to compare

This is the final planned Swift 2 release

  • Added decodeOneOf and decodeArrayAsOneOf (Thanks @Qata! #84)
  • Readme tweaks
  • Minor test coverage improvements

v0.4.2: Code Generation

22 Mar 16:55
Compare
Choose a tag to compare
  • Code generation = more overloads
  • Removed use of currying, so no more warnings about that
  • #78 More safe NSNumber decoding (Thanks @bdolman!)

v0.4.1

23 Jan 00:38
Compare
Choose a tag to compare
  • =>? now accepts null as it was intended to
  • receivedType typo fix (Thanks @JaviSoto!)
  • RawRepresentableInitializationError not RawRepresentableInitializationFailure

v0.4: Age of Errors

16 Jan 20:19
Compare
Choose a tag to compare
  • Added NSValueCastable protocol for decoding [U]Int8, [U]Int16
  • (Re)added =>?, this time only for accepting TypeMismatches.
  • Errors are now structs conforming to DecodingError

v0.3.4

16 Dec 16:42
Compare
Choose a tag to compare
  • Added support for Dictionary decoding. Added => overloads returning [String: T], [String: T]? and [Decodable: AnyObject]?
  • Extension for NSArray
  • Added [T?]?-returning overload
  • Support for Swift Package Manager (#54 @neonichu)
  • Explicit deployment target for tvOS and watchOS (#55 @NachoSoto)

Death of Redundancy

26 Oct 20:16
Compare
Choose a tag to compare
  • =>? operator is removed, use either [T].decode(json, ignoreInvalidObjects: true) or try? json => "key"
  • => overload without inferred return-type will no longer be decoded as NSDictionary. It now returns AnyObject instead (no decoding at all).
  • Fixes the semiserious #34
  • A lot of target/platform/bitcode changes contributed by a lot of nice people. WatchOS, tvOS, and iOS should be supported with bitcode and Mac, as before, without it. However all of them should now work with CocoaPods.