Skip to content

Releases: hanssens/extensions

Release v2.2.0

22 Jul 13:29
ffe794c
Compare
Choose a tag to compare

Enhancements

  • feat: add HttpFactoryException, representing all executable errors occuring during http requests
  • feat: add 'EnforceJson' option to HttpFactory settings

Fixes

  • fix #41: HttpFactory keeps adding 'Accept' headers

Developer Notes

  • config: updated test project to netcoreapp3.1
  • fix(test): ExtractPropertyValue_Should_ThrowException_If_PropertyName…
  • config: set global.json sdk to 3.1.*
  • config: updated nuget config + version bump to v2.2.0

Release v2.1.1

31 May 10:20
Compare
Choose a tag to compare

Enhancements

  • HttpFactory.Simple operations now support (optional) headers as well

Fixes

  • Fixed #39: HttpFactory.Delete does not respect headers

Release v2.1.0

30 May 19:45
Compare
Choose a tag to compare

Lots of things changed in the previous release of v2.0.0. Don't worry, this release is much more subtle.

In fact, the only "breaking change" is not really breaking; the API signatures for HttpFactory.Get() and HttpFactory.Delete() now have optional headers. Considering it IS a major interface change, this justifies the major bump for this release to v2.1.0.

Features

  • Added support for HttpFactory.Patch
    Including HttpFactory.Patch, HttpFactory.Simple.Patch and HttpFactory.PatchAsync
  • Added helper: HttpResponseMessage.Value() and its async variant
    Allows you to quickly read out the value of a response message coming from the HttpFactory (or any of the native HttpClient's responses)

Enhancements

  • HttpFactory.Get now supports (optional) headers
    This includes HttpFactory.Get, HttpFactory.Simple.Get and HttpFactory.GetAsync
  • HttpFactory.Delete now supports (optional) headers
    This includes HttpFactory.Delete, HttpFactory.Simple.Delete and HttpFactory.DeleteAsync

Release v2.0.0

22 May 19:22
Compare
Choose a tag to compare

Release Notes

Version 2.0 is all about a migration to dotnet core. Of course, I've taken the liberty to introduce some serious breaking changes, which you can read all about it further on.

You can grab a fresh copy through:

$ Install-Package Hanssens.Net.Extensions

The original beta of v2.0.0 was released at Aug 18, 2016. On 22 May, 2017 the final was published to NuGt.

Breaking changes

Shaking up the namespaces
Naming is hard. Namespaces are therefor too. Pretty much everything has been reordered, or moved, to better-suited namespaces. Intellisense will help you with this, of course.

Cryptography

IO

  • CsvExport no longer has a reference to System.Data.SqlTypes

IO/HTTP

  • Important: JsonRequest and JsonResponse now reside in 'Hanssens.Net.Http', rather than the IO namespace
  • Important: JsonRequest now relies on the HttpClient, rather than HttpWebRequest
  • Important: For multiple calls, JsonRequest is now also part of a newly introduced class HttpFactory, which much more efficiently handles open sockets (thanks to The ASP.NET Monsters).
  • For single calls, JsonRequest now also accepts an existing HttpClient as an argument

Features

  • Added license: MIT (or WTFPL, if you prefer)
  • Added ReflectionExtensions.IsNull(), to determine if the instance of an object is null (either value type or reference type).
  • Added ReflectionExtensions.IsNullableType(), to determine if the type of an object instance is nullable (either value type or reference type).
  • Added IEnumerable.Replace() and IList.Replace()
  • Added Base64.Encode() and Base64.Decode()
  • Added UnitConverters: ConvertFromUnixEpoch() and DateTime.ToEpoch()
  • Added IEnumerable extension: IEnumerable.Replace()

Enhancements

  • Tests are changed to XUnit, instead of NUnit; simply because the latter had too many cross-platform tooling issues
  • Newtonsoft.Json, which is the only dependency, is updated to use v10.x

Fixes

  • No fixes in this release

Release v1.2.1

28 Dec 09:28
Compare
Choose a tag to compare

This version is a minor hotfix for the v1.2.0 release. NuGet install available.

Fixes

  • Fixes #19: Custom headers result in (415) Unsupported Media Type error, with PUT/POST

Release v1.2.0

02 Sep 14:38
Compare
Choose a tag to compare

This version update mostly focuses on enhancing the JsonRequest object, which now correctly supports GET without body and allows you to pass optional headers as well.

Fixes

  • Fixed duplicate case-sensitive folder [S]source
  • JsonRequest operations (GET, POST, PUT, DELETE) now acception optional headers
  • Removed 'args' (body parameters) from the JsonRequest.Get operation

Release v1.1.0

22 Apr 20:50
Compare
Choose a tag to compare

Published on: 22 Apr, 2015
Version : v1.1.0

Remarks:
An updated version with new features and enhancements to the original package.
Install and updates available through https://www.nuget.org/packages/Hanssens.Net.Extensions/

Features

  • Added UnitConverter - for converting units
  • Added Cryptography.PasswordHash
  • Added JsonRequest, for easy GET, POST, PUT and DELETE'ing http webrequests
  • Added extension helpers, such as IEnumerable.IsNullOrEmpty(), IsValidJson()
  • Added Extract.ExtractPropertyValue; a helper for extracting the property value from an object instance, by it's property name

Enhancements

  • Improved Randomizer() initialization algorithm
  • 100% Mono compliant

Fixes

  • Namespaces are more consistent

Release v1.0.0

22 Apr 14:04
Compare
Choose a tag to compare

Published on: 23 Dec, 2014
Version : v1.0.0

Remarks:
The original release of the package.

New Features

  • Added Randomizer()
  • Added extension helpers, such as LongestWord(), In, ToSeoFriendlyString()
  • Added ILogger
  • Added CsvExporter