Version 2.0.0
This release introduces a number of breaking changes that are important to be aware of before upgrading.
Breaking changes
- There is now a new configuration option for your preview API key called
PreviewApiKey
. If you are using the preview API you need to move the api key from theDeliveryApiKey
setting to thePreviewApiKey
setting instead. - All methods have had the
Async
suffix removed. For exampleGetEntriesAsync
is nowGetEntries
. All methods are stillasync
, however. - The
GetEntries<T>
method of theContentfulClient
no longer supportsEntry<T>
as an argument. Instead you should use your classT
directly. If you needSystemProperties
you can just add a property directly to your custom class, e.g.public SystemProperties Sys { get; set; }
- Fixed the faulty capitalization of the
Webhook
methods. Previously they were all namedWebHook
. For exampleGetWebHookAsync
is nowGetWebhook
.
Non breaking changes
- When using an
IContentTypeResolver
and serializing collection properties you no longer need to set theTypeNameHandling.All
on theSerializerSettings
of theIContentfulClient
. This is handled automatically. - Fixed a bug where in certain circumstances
Array
types were not deserialized correctly although other generic Enumerables were.