Skip to content

Version 2.0.0

Compare
Choose a tag to compare
@Roblinde Roblinde released this 06 Nov 19:00
· 317 commits to master since this release
d36f4c4

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 the DeliveryApiKey setting to the PreviewApiKey setting instead.
  • All methods have had the Async suffix removed. For example GetEntriesAsync is now GetEntries. All methods are still async, however.
  • The GetEntries<T> method of the ContentfulClient no longer supports Entry<T> as an argument. Instead you should use your class T directly. If you need SystemProperties 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 named WebHook. For example GetWebHookAsync is now GetWebhook.

Non breaking changes

  • When using an IContentTypeResolver and serializing collection properties you no longer need to set the TypeNameHandling.All on the SerializerSettings of the IContentfulClient. This is handled automatically.
  • Fixed a bug where in certain circumstances Array types were not deserialized correctly although other generic Enumerables were.