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 ofSystem.Text.Json
- Removed all
dynamic
-returning request methods (not supported inSystem.Text.Json
) - Method
WithJsonSerializerSettings
renamed toWithJsonSerializerOptions
inSLRequestExtensions
- Parameter type changed from
Newtonsoft.Json.JsonSerializerSettings
toSystem.Text.Json.JsonSerializerOptions
- Parameter type changed from
- Property
JsonSerializerSettings
renamed toJsonSerializerOptions
inSLBatchRequest
- Type changed from
Newtonsoft.Json.JsonSerializerSettings
toSystem.Text.Json.JsonSerializerOptions
- Type changed from
Non-breaking changes
- Moved from a clientless usage of Flurl to a explicit
FlurlClient
instance. This should avoid conflicts when managing multiple instances ofSLConnection
- The
FlurlClient
is accessible through the public propertyClient
in theSLConnection
instance
- The
- The HTTP error codes to be considered for a request reattempt are now accessible through the public property
HttpStatusCodesToRetry
in theSLConnection
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