Releases: bgmulinari/B1SLayer
2.1.2
- Added a new
PostReceiveStringAsyncoverload that accepts an object parameter to be sent as the JSON body (#89) - Fixed an issue an issue with the
GetWithInlineCountAsyncmethod (#92) by @brakim - Changed target frameworks to now target
netstandard2.0;net8.0;net9.0instead of justnetstandard2.0 - Changed reference to
Microsoft.Extensions.Caching.Memoryfrom version 9.0.2 to version 6.0.3 for better compatibility - Removed unnecessary reference to
Microsoft.Extensions.Caching.Abstractions
Get it on NuGet: https://www.nuget.org/packages/B1SLayer/2.1.2
2.1.1
- Fixed an issue with batch requests multipart content building (#84)
Get it on NuGet: https://www.nuget.org/packages/B1SLayer/2.1.1
2.1.0
Distributed cache support
- Added support for distributed cache for session management
- For session management, B1SLayer will now use an in-memory cache implementation by default. Optionally, you can specify other implementations of
IDistributedCacheof your choosing, like in the example below:
- For session management, B1SLayer will now use an in-memory cache implementation by default. Optionally, you can specify other implementations of
using Microsoft.Extensions.Caching.Redis;
// Configures B1SLayer to use Redis as its distributed cache storage.
// This should be done on application startup before creating any SLConnection instances.
var redisCache = new RedisCache(new RedisCacheOptions
{
Configuration = "myRedisServer:6379"
});
B1SLayerSettings.DistributedCache = redisCache;Breaking changes
- The method
LoginAsyncfromSLConnectionno longer has the optional parameterforceLogin. Instead, a login request will always be performed when this method is called, regardless of the current session state.
Non-breaking changes
- Fixed an issue with the Ping request (#82)
- Added dependency on
Microsoft.Extensions.Caching.Abstractions - Added dependency on
Microsoft.Extensions.Caching.Memory - Added a direct reference to
System.Text.Jsonversion 6.0.11 to circumvent an existing vulnerability in version 6.0.4 (referenced by Flurl.Http)
Get it on NuGet: https://www.nuget.org/packages/B1SLayer/2.1.0
Full Changelog: 2.0.0...2.1.0
B1SLayer 2.0.0
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.Jsonin favor ofSystem.Text.Json - Removed all
dynamic-returning request methods (not supported inSystem.Text.Json) - Method
WithJsonSerializerSettingsrenamed toWithJsonSerializerOptionsinSLRequestExtensions- Parameter type changed from
Newtonsoft.Json.JsonSerializerSettingstoSystem.Text.Json.JsonSerializerOptions
- Parameter type changed from
- Property
JsonSerializerSettingsrenamed toJsonSerializerOptionsinSLBatchRequest- Type changed from
Newtonsoft.Json.JsonSerializerSettingstoSystem.Text.Json.JsonSerializerOptions
- Type changed from
Non-breaking changes
- Moved from a clientless usage of Flurl to a explicit
FlurlClientinstance. This should avoid conflicts when managing multiple instances ofSLConnection- The
FlurlClientis accessible through the public propertyClientin theSLConnectioninstance
- The
- The HTTP error codes to be considered for a request reattempt are now accessible through the public property
HttpStatusCodesToRetryin theSLConnectioninstance - Removed dependency on
Microsoft.AspNet.WebApi.Clientin 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
B1SLayer 1.3.2
- Fixed an issue with the session management logic (#46)
Get it on NuGet: https://www.nuget.org/packages/B1SLayer/1.3.2
B1SLayer 1.3.1
- Added new request method
GetWithInlineCountAsync(#33) - Added a 1 minute grace period for the session check to avoid requests with an invalid session (#31)
- Documentation improvements (#43)
Get it on NuGet: https://www.nuget.org/packages/B1SLayer/1.3.1
B1SLayer 1.3.0
- Added support for Single Sign-On (SSO) authentication, allowing the integration with UI API for SAP Business One add-ons (#14)
- Added the ability to add HTTP headers to
SLBatchRequestinstances through its extension methods - Added the ability to set the timeout value for batch requests through the new
BatchRequestTimeoutproperty in theSLConnectionclass - The
Dataproperty from theSLBatchRequestclass now also accepts JSON strings as the request body (#13) - Added new
PostReceiveStringAsyncrequest method (#28) - Updated Flurl.Http to version 3.2.4
- Updated Microsoft.AspNet.WebApi.Client to version 5.2.9
Get it on NuGet: https://www.nuget.org/packages/B1SLayer/1.3.0
B1SLayer 1.2.1
- Added a new property
HttpVersionto theSLBatchRequestclass, allowing you to specify the HTTP message version to be used. Version 1.1 will now always be used by default.
Get it on NuGet: https://www.nuget.org/packages/B1SLayer/1.2.1
B1SLayer 1.2.0
- Updated Flurl.Http to version 3.2.2
- Added new method
GetAllAsync, allowing to obtain all entities in a collection without having to loop requests yourself - Added new
PostBatchAsyncmethod overload, allowing to send a variable number of batch requests without needing to put them in a list - Fixed an issue related to the "Content-ID" with batch requests when using OData v4 (b1s/v2), as reported in issue #8
- Fixed an issue related to the error response deserialization when using OData v4
- Fixed an issue where the multipart reading of the response of a batch request would fail when using OData v4
Get it on NuGet: https://www.nuget.org/packages/B1SLayer/1.2.0
B1SLayer 1.1.0
- Added new methods
BeforeCall,AfterCallandOnErrorto theSLConnectionclass, allowing for request monitoring and logging - Added new request methods
PostStringAsync,PatchStringAsyncandPutStringAsync - Updated Flurl.Http to version 3.2.0
- Some other minor improvements
Get it on NuGet: https://www.nuget.org/packages/B1SLayer/1.1.0