Skip to content

Releases: contentful/contentful.swift

3.1.0

10 Aug 14:15
d8e85da
Compare
Choose a tag to compare

Added

  • Query and QueryOn methods for finding entries which reference another entry (by id) with a specific linking field.

3.0.0

30 Jul 14:38
16c8e2f
Compare
Choose a tag to compare

See the guide for migrating from 2.x to 3.x of contentful.swift

Added

  • BREAKING: PNGs can now be retrieved with .standard or .eight bits as an additional ImageOption to request PNGs from the Images API.

Fixed

  • Now all error responses from the API will fallback to seraializing an SDKError if the SDK is unable to serialize an APIError

Changed

  • BREAKING: Configuring a Client to interface with Content Preview API is no longer done through the ClientConfiguration type. Instead, pass host: Host.preview to the Client initializer. Also, you can now configure the client to use any arbitrary string host if you have whitelisted via your plan in Contentful.

2.2.1

29 Jul 23:29
01c5589
Compare
Choose a tag to compare

Fixed

  • Accessing fields on assets was not respecting fallback chain logic when assets were requested with a multi-locale format. This is now fixed.

2.2.0

13 Jun 11:57
Compare
Choose a tag to compare

Added

  • An additional configuration option, timeZone on the ClientConfiguration to specify which TimeZone should be used when normalizing dates returned by the API. The default timezone is 0 seconds offset from GMT which enables serializing the exact representation the API returns rather than transforming to the current system time.

2.1.0

03 May 14:41
bcf2808
Compare
Choose a tag to compare

Added

  • Support for using the /sync endpoint on non-master environments.

2.0.0

16 Apr 08:20
ba49398
Compare
Choose a tag to compare

Fixed

  • Typed queries prepending "fields" two times when using the select operator. Thanks to @cysp for submitting the fix in #169.
  • Assets that contained media files that were not images failed to deserialize the metadata about the file properly.
  • null values that were present for fields were being stored in dictionaries as a Bool with a value of true. Now these values are omitted from the dictionary. The handling of null values in JSON arrays has also been improved.
  • Date formats supported by the Contentful web app that were previously not being deserialized by the SDK's JSONDecoder

Added

  • Support for the new Environments
  • Locales are now a property of Client and can be fetched on their own with the fetchLocales methods.
  • AssetProtocol to enable data fetches for other asset data types.

Changed

  • BREAKING: Upgrades project to Swift 4.1 and Xcode 9.3
  • BREAKING: The interface for synchronization has been simplified. initialSync and nextSync have been replaced with sync with a default argument of an empty sync space to start an initial sync operation.
  • BREAKING: The SDK provided methods for creating a new Swift.JSONDecoder and updating it with locale information of your space or environment has changed.
  • BREAKING: The LocalizationContext property of Space has been moved and is now a property of Client.
  • BREAKING: ResourceQueryable has been renamed EntryQueryable for correctness and consistency.

2.0.0-alpha4: Merge pull request #189 from contentful/improvement/ISO8601-variants

11 Apr 09:50
4f2d5bb
Compare
Choose a tag to compare

2.0.0-alpha3: Merge pull request #187 from contentful/feature/flatten-asset

06 Apr 12:50
80c6c02
Compare
Choose a tag to compare

1.0.1

31 Jan 14:27
12be385
Compare
Choose a tag to compare

Fixed

  • String extension to generate an image url that didn't always prepend the "https" scheme to the url.

1.0.0

25 Jan 12:35
10f9e5f
Compare
Choose a tag to compare

Added

Fixed

  • Shared static localization context on the Client which caused issues if a new client connected to a different space was instantiated.
  • HTTP status codes not being exposed.