Releases: contentful/contentful.swift
Releases · contentful/contentful.swift
4.2.1
4.2.0: Logging
Added
- A
ContentfulLogger
singleton which will log messages to the console.ContentfulLogger
can be configured with aCustomLogger
in order to use any third-party logging frameworks of your choice.
4.1.3
Changed
4.1.1
,4.1.2
, and4.1.3
are all hotfix releases that fixed small corruptions in the Xcode project configuration.4.1.3
specifically sets the deployment version on the macOS target, even though the correct deployment version was set on the macOS framework target.
4.1.2
The iOS deployment target was accidentally bumped when updating the SDK from version 4.0.0
to 4.1.0
and that caused an unexpected "breaking" change. This release reverts that mistake and also fixed a corrupted tvOS target (still a mystery how it was corrupted).
4.1.1 — Carthage only release
Release to fix issue when building projects that have spaces in the name: see #233
4.1.0
4.0.1
4.0.0
Changed
- BREAKING:
Interstellar
has been removed as a dependency of the SDK and the SDK now has its ownResult
type. If you were relying on fetch methods that returned anObservable
, you will need to update your code. - BREAKING: The syntax for many of the fetch methods on
Client
have changed. Refer to the v4 migration guide. - BREAKING:
EntryQueryable
has been renamedFieldKeysQueryable
, the required associated typeFields
has been renamedFieldKeys
to accurately reflect the type's real usage. - BREAKING:
MixedMappedArrayResponse
has been renamedMixedArrayResponse
.
Added
- Base fetch methods for fetching data, or fetching data and deserializing any type conforming to
Swift.Decodable
have been exposed so that SDK usage is more flexible for various development strategies. Endpoint
enum andEndpointAccessible
protocol for clarity on endpoints available through the APIs and which resource types are returned from said endpoints.ResourceQueryable
protocol, whichAsset
,Entry
,ContentType
conform to; it enables querying and filtering on the API for conforming types.FlatResource
protocol which can be used if you prefer to have allsys
properties on the top level of yourEntryDecodable
. AllResource
types have a default implementation ofFlatResource
so refactoring is opt-in.
Removed
- The
DataDelegate
protocol has been removed in favor of directly fetching rawData
on your own. If you want to store JSON to disk, simply fetch it and do what you like. - The
EntryModellable
protocol is now gone. Just useEntryDecodable
.
3.1.2
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.