Skip to content

B1SLayer 2.0.0

Latest
Compare
Choose a tag to compare
@bgmulinari bgmulinari released this 05 Sep 15:00
1014e78

This is the first major release of B1SLayer, which brings some breaking changes. Although the usability remains mostly unchanged, a lot of B1SLayer has changed under the hood, mainly due to the update to Flurl 4.0, which brought significant changes.

Breaking changes

  • Updated Flurl.Http to version 4.0.2, which removed the dependency on Newtonsoft.Json in favor of System.Text.Json
  • Removed all dynamic-returning request methods (not supported in System.Text.Json)
  • Method WithJsonSerializerSettings renamed to WithJsonSerializerOptions in SLRequestExtensions
    • Parameter type changed from Newtonsoft.Json.JsonSerializerSettings to System.Text.Json.JsonSerializerOptions
  • Property JsonSerializerSettings renamed to JsonSerializerOptions in SLBatchRequest
    • Type changed from Newtonsoft.Json.JsonSerializerSettings to System.Text.Json.JsonSerializerOptions

Non-breaking changes

  • Moved from a clientless usage of Flurl to a explicit FlurlClient instance. This should avoid conflicts when managing multiple instances of SLConnection
    • The FlurlClient is accessible through the public property Client in the SLConnection instance
  • The HTTP error codes to be considered for a request reattempt are now accessible through the public property HttpStatusCodesToRetry in the SLConnection instance
  • Removed dependency on Microsoft.AspNet.WebApi.Client in favor of own implementation to handle multipart requests
  • Fixed a small issue with the exception throwing logic (#70)
  • Added some unit tests
  • Added symbol package (.snupkg)
  • Added Source Link support
  • Added documentation comments that were absent to several publicly visible members

Get it on NuGet: https://www.nuget.org/packages/B1SLayer/2.0.0