Skip to content

Releases: contentful/contentful.swift

1.0.0-beta5

09 Jan 07:40
0d92519
Compare
Choose a tag to compare

Added

  • Instance method for mutating a query by appending a LinkQuery

Fixed

  • When generating a url from the helper methods that append ImageOptions, the 'https' scheme will always be applied.
  • The Location type is now an Objective-C that conforms to NSCoding class so that it may be stored in CoreData as an attribute on an NSManagedObject

1.0.0-beta4

19 Dec 10:47
69311f9
Compare
Choose a tag to compare

Fixed

  • Accessibility identifiers for the width and height properties of the ImageInfo for an Asset are now public so they can be used. Thanks to @ErikLuimes for the pull request: #157
  • The Location type is now an Objective-C class so that it may be stored in CoreData as an attribute on an NSManagedObject

1.0.0-beta3

27 Nov 17:05
5b9e4e3
Compare
Choose a tag to compare

Fixed

  • Issue where true would be decoded to Int with value 1 when decoding JSON to [String: Any]. The SDK now attempts to decode Bool before Int to prevent this error.

1.0.0-beta2

03 Nov 16:29
808d7fc
Compare
Choose a tag to compare

Fixed

  • Deprecation warnings that appeared starting with Xcode9.1
  • Incorrect assertion that asserted that all link were resolved since it is possible for unresolvable links to retured from CDA
  • If an entry was of a content type not known to the Client, the SDK would enter an infinite loop.

1.0.0-beta1

24 Oct 19:20
Compare
Choose a tag to compare

Added

  • ResourceQueryable protocol to enable safer queries via the QueryOn query type.
  • SyncSpace.SyncableType enum for specifying which Contentful types should be synced.
  • A description property to ContentType
  • A ContentTypeQuery for syncing content types.
  • ArrayResponseError type as a member of all array responses to inform you when your links are not resolvable because the target resources are unpubished.

Improved

  • All Error types now have better debug descriptions so that the most relevant info is given to you while debugging.

Fixed

  • Multiple link resolution callbacks can now be stored for one link in case multiple entries are linking to the same resource.

Changed

  • BREAKING: The helper methods for resolving links on the fields JSON container no longer requires passing in the current locale.
  • BREAKING: The parameter names have been made consistent accross all fetch method names. The parameter signatures for all fetch methods are now: (matching:then:).
  • BREAKING: All query initializers have been changed to static methods so that the syntax exactly matches the syntax of the instance methods.
  • BREAKING: Various methods for creating and mutating queries no longer throw errors and so the need to call them in a do catch block has been obviated.
  • BREAKING: QueryOperation is now called Query.Operation.

Removed

  • BREAKING: All fetch methods that previously took dictionary arguments have been removed. Use fetch methods that take query types instead.
  • BREAKING: Now unnecessary QueryErrors.

0.11.0

10 Oct 16:16
Compare
Choose a tag to compare

Changed

  • BREAKING: EntryModellable is now called EntryDecodable and extends Decodable from the Swift 4 Foundation standard library. There are convenience methods for deserializing fields in the "fields" container for an entry.
  • BREAKING: The MappedContent type no longer exists. If requesting heterogeneous collections (by hitting "/entries" with no query paramters for intance), you will get a Result<MixedMappedArrayResponse> and it is up to you to filter the array by the contained types.

Fixed

  • #132 EntryDecodable not synthesizing arrays of links
  • #133 EntryDecodable not allowing properties that are implicit optionals

0.10.2

06 Oct 21:29
Compare
Choose a tag to compare

Fixed

  • Compile error due to incorrect protection level setting

0.10.1

03 Oct 16:44
Compare
Choose a tag to compare

Added

  • API for retreiving a JSONDecoder from the SDK and configuring it with localization information from your Contentful space.

Fixed

  • Array's of links not being decoded.

0.10.0 — Swift 4

02 Oct 13:08
Compare
Choose a tag to compare

Changed

  • BREAKING: The project is now compiled using Swift 4 and therefore must be developed against with Xcode 9. Backwards compatibility with Swift 3 is not possible as the SDK now uses Swift 4 features like JSON decoding via the Decodable protocol in Foundation.
  • BREAKING: CLLocationCoordinate2D has been replaced with Location type native to the SDK so that linking with CoreLocation is no longer necessary. If you have location enabled queries, you'll need to migrate your code.
  • Resource is now a protocol and is no longer the base class for Asset and Entry. LocalizableResource is the new base class.
  • ObjectMapper has been pruned and is no longer a dependency of the SDK. If managing your dependencies with Carthage, make sure to manually remove ObjectMapper if you aren't using it yourself.

0.9.3

08 Sep 14:19
Compare
Choose a tag to compare

Fixed

  • Ensured all functions and instance members had an explicit protection level set.

Added

  • Xcode 8 and 9 are now tested on Travis CI for iOS, macOS, and tvOS in a matrix build. You can now rest easy knowing that if you are developing for one of these platforms, the SDK will work for you!
  • The Swift playground has been migrated from it's former home to live here, with the main SDK. Instructions have been added to the README.
  • DataDelegate protocol to receive callbacks from SDK which contain raw Data from fetches to the API.