Skip to content

Releases: skybrud/Skybrud.Essentials.AspNetCore

v1.0.0

04 Jul 13:38
Compare
Choose a tag to compare

First stable release 🎉

Installation

Via NuGet:

dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0

or:

Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0

Changelog

  • Removed obsolete classes (see 3e6643b)
    While still in alpha, the classes related to Newtonsoft.Json have had a few different locations and names, and each time they've "been renamed", the old files have been kept for legacy support. As this release goes from alpha to stable, the obsolete classes have now been removed.

v1.0.0-alpha015

20 May 21:39
Compare
Choose a tag to compare

New alpha release 🎉

Installation

Via NuGet:

dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0-alpha015

or:

Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0-alpha015

Changelog

  • IQueryCollection extension methods should be nullable (see 0524512)
    Most of the extension methods for IQueryCollection targeted IQueryCollection?, while some only targeted IQueryCollection. With proper null checks, the remaining methods can also target IQueryCollection?.

  • Added TryGetEnum extension methods for the IQueryCollection interface (see b8b5a96)
    As an alternative to the existing GetEnum extension methods, the package now has similar methods following the TryGet pattern.

  • Added extension methods for the HeaderDictionary class (see dc2c38a)
    This release adds various extension methods for the HeaderDictionary class similar to the existing extension methods for the IQueryCollection interface.

  • Added extension methods for the IFormCollection interface (see 9932a32)
    This release adds various extension methods for the IFormCollection interface similar to the existing extension methods for the IQueryCollection interface.

v1.0.0-alpha014

24 Mar 20:43
Compare
Choose a tag to compare

New alpha release 🎉

Installation

Via NuGet:

dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0-alpha014

or:

Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0-alpha014

Changelog

  • Improved the NewtonsoftJsonOnlyConfigurationAttribute class and underlying filter (see 5baafcd)
    • property names are now camel cased by default (opposed to Pascal cased - or whatever is default in JSON.net)
    • casing may be set by optional parameter for the attribute

v1.0.0-alpha013

10 Feb 17:41
Compare
Choose a tag to compare

New alpha release 🎉

Installation

Via NuGet:

dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0-alpha013

or:

Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0-alpha013

v1.0.0-alpha012

26 Jan 16:59
Compare
Choose a tag to compare

New alpha release 🎉

Installation

Via NuGet:

dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0-alpha012

or:

Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0-alpha012

Changelog

  • Fixed issue with GetDouble method trying to parse to long instead of double (see c8237de)
    The method would only work for whole numbers, which wasn't really ideal.

v1.0.0-alpha011

26 Jan 16:10
Compare
Choose a tag to compare

New alpha release 🎉

Installation

Via NuGet:

dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0-alpha011

or:

Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0-alpha011

Changelog

  • Added methods for parsing query string values into string arrays and lists (see 1977354)
    The package already contains extension methods for ICookieCollection and StringValues for parsing multiple values into an array or list. While this has been specifically for value types, GetStringArray and GetStringList extension methods are now available for ICookieCollection, and similar ToStringArray and ToStringList extension methods are now available for StringValues.

  • Added methods for parsing query strings into enum arrays and lists (see f962561)
    So far this package has lacked extension methods for parsing enum values from a query string. With this release, the package provides various GetEnum, GetEnumOrNull, GetEnumArray and GetEnumList extension methods for IQueryCollection as well as similar ToEnum, ToEnumOrNull, ToEnumArray and ToEnumList extension methods for StringValues.

  • Added Get{Type}OrNull and To{Type}OrNull extension methods (see 00c54a2)
    In addition to the existing Get{Type} and To{Type} extension methods for IQueryCollection and StringValues respectively, the package now also contains Get{Type}OrNull and To{Type}OrNull alternatives that return null if a value isn't found or couldn't be parsed.

v1.0.0-alpha010

24 Jan 13:03
Compare
Choose a tag to compare

New alpha release 🎉

Installation

Via NuGet:

dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0-alpha010

or:

Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0-alpha010

Changelog

  • Fixed issues comma separated GUID values (see 7489bb0)
    Until now, the two methods supported query strings like guid1=a&guid2=b, but not guids=a,b. With this commit, both scenarios are now supported.

  • Fixed misc issues with parsing query strings with comma separated values (see 46e6ff9)
    Similar to the issue with comma separated GUID values, the logic for parsing other types had the same problems.

  • Updated the Skybrud.Essentials dependency to the newest version (see 24657d9)
    The package now has a dependency for v1.1.46.

v1.0.0-alpha009

12 Jan 11:00
Compare
Choose a tag to compare

New alpha release 🎉

Installation

Via NuGet:

dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0-alpha009

or:

Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0-alpha009

Changelog

  • Added a bunch of TryGet{Type} extension methods to the QueryStringExtensions class (see 6aa56bc)
    As an alternative to the existing Get{Type} extension methods, the QueryStringExtensions class now also contains corresponding TryGet{Type}

  • Added a bunch of extension methods for getting GUID values from IQueryCollection and StringValues (see 56f1187)
    Similar to the other extension methods for getting value types, the package now supports getting single and multiple GUID values from both IQueryCollection and StringValues instances.

  • Updated the Skybrud.Essentials dependency to the newest version (see 7236184)
    The package now has a dependency for v1.1.45.

  • Updated project to use C# 11 and added .NET 7 as an additional target framework (see 548ed69)
    Might as well uses the newest versions. 😎

v1.0.0-alpha008

30 Sep 14:44
Compare
Choose a tag to compare

New alpha release 🎉

Installation

Via NuGet:

dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0-alpha008

or:

Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0-alpha008

Changelog

  • Re-adding deleted classes to avoid breaking changes (see 1135b53)
    Since we have solutions and packages using a mix of different versions of this package, it's not possible to upgrade to alpha007 without some other part breaking. Therefore the deleted classes have been re-added to the package, but marked as obsolete. The classes ought still to be removed before pushing a stable release.

v1.0.0-alpha007

07 Sep 11:25
Compare
Choose a tag to compare

New alpha release 🎉

Installation

Via NuGet:

dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0-alpha007

or:

Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0-alpha007

Changelog

  • Updated Skybrud.Essentials dependency (see f6bd945)
    The dependency has now been updated to the newest version.

  • Added GetString method overload to the QueryStringExtensions class (see 9272e0f)
    The new method overload takes a fallback value which is returned instead of the query string doesn't contain a value for the specified key.

  • Added GetForwardedFor method to the RequestExtensions class (see 71e4eee)
    The method adds a convenient way for getting the value of the X-Forwarded-For header of a HttpRequest.

  • Added .NET 6 as an additional target framework (see 6e60dcc)
    Since we're moving towards .NET 6, this package might as well target .NET 6 explicitly.

  • Added support for nullable reference types (see 96fe7a3)
    This is the way 😎

  • Moving NewtonsoftJson classes a bit around (see 8016b19, ae6a25e)
    The classes now share a common ancestor namespace to give the code a better structure. This release also removes the obsolete Json* classes.