Releases: skybrud/Skybrud.Essentials.AspNetCore
v1.0.0
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
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 forIQueryCollection
targetedIQueryCollection?
, while some only targetedIQueryCollection
. With proper null checks, the remaining methods can also targetIQueryCollection?
. -
Added
TryGetEnum
extension methods for theIQueryCollection
interface (see b8b5a96)
As an alternative to the existingGetEnum
extension methods, the package now has similar methods following theTryGet
pattern. -
Added extension methods for the
HeaderDictionary
class (see dc2c38a)
This release adds various extension methods for theHeaderDictionary
class similar to the existing extension methods for theIQueryCollection
interface. -
Added extension methods for the
IFormCollection
interface (see 9932a32)
This release adds various extension methods for theIFormCollection
interface similar to the existing extension methods for theIQueryCollection
interface.
v1.0.0-alpha014
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
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
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 tolong
instead ofdouble
(see c8237de)
The method would only work for whole numbers, which wasn't really ideal.
v1.0.0-alpha011
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 forICookieCollection
andStringValues
for parsing multiple values into an array or list. While this has been specifically for value types,GetStringArray
andGetStringList
extension methods are now available forICookieCollection
, and similarToStringArray
andToStringList
extension methods are now available forStringValues
. -
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 variousGetEnum
,GetEnumOrNull
,GetEnumArray
andGetEnumList
extension methods forIQueryCollection
as well as similarToEnum
,ToEnumOrNull
,ToEnumArray
andToEnumList
extension methods forStringValues
. -
Added
Get{Type}OrNull
andTo{Type}OrNull
extension methods (see 00c54a2)
In addition to the existingGet{Type}
andTo{Type}
extension methods forIQueryCollection
andStringValues
respectively, the package now also containsGet{Type}OrNull
andTo{Type}OrNull
alternatives that returnnull
if a value isn't found or couldn't be parsed.
v1.0.0-alpha010
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 likeguid1=a&guid2=b
, but notguids=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
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 theQueryStringExtensions
class (see 6aa56bc)
As an alternative to the existingGet{Type}
extension methods, theQueryStringExtensions
class now also contains correspondingTryGet{Type}
-
Added a bunch of extension methods for getting GUID values from
IQueryCollection
andStringValues
(see 56f1187)
Similar to the other extension methods for getting value types, the package now supports getting single and multiple GUID values from bothIQueryCollection
andStringValues
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
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
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 theQueryStringExtensions
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 theRequestExtensions
class (see 71e4eee)
The method adds a convenient way for getting the value of theX-Forwarded-For
header of aHttpRequest
. -
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 obsoleteJson*
classes.