Releases: contentful/contentful.swift
Releases · contentful/contentful.swift
3.1.1
Fixed
- A critical bug that caused the
fetchLocales(then:)
method to not pass the correct error back to it's completion handler. This bug would, for example, incorrectly pass back anSDKError
if internet connection dropped rather than passing back the properNSErrror
from Foundation.
3.1.0
3.0.0
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 additionalImageOption
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 anAPIError
Changed
- BREAKING: Configuring a
Client
to interface with Content Preview API is no longer done through theClientConfiguration
type. Instead, passhost: Host.preview
to theClient
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
2.2.0
Added
- An additional configuration option,
timeZone
on theClientConfiguration
to specify whichTimeZone
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
2.0.0
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 oftrue
. Now these values are omitted from the dictionary. The handling ofnull
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 thefetchLocales
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
andnextSync
have been replaced withsync
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 ofSpace
has been moved and is now a property ofClient
. - BREAKING:
ResourceQueryable
has been renamedEntryQueryable
for correctness and consistency.
2.0.0-alpha4: Merge pull request #189 from contentful/improvement/ISO8601-variants
Improve handling of ISO8601 date variants
2.0.0-alpha3: Merge pull request #187 from contentful/feature/flatten-asset
Enable storing assets with other structures