Releases: skybrud/Skybrud.Essentials
v1.2.0-alpha003
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.2.0-alpha002
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.2.0-alpha003
Changelog
This release adds a bit of new funtionality, but mainly focuses on porting new functionality from the v1.1.x package.
v1.1.68
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.1.68
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.1.68
Changelog
-
Marked misc classes as obsolete (see feda4ca)
The classes have had alternatives within the package for years, and should already have been marked as obsolete. The classes will be removed in v1.2 (or v2.0, if v1.2 becomes v2.0). -
Copied extension method classes in individual namespaces (see ea7d575)
Having the extension in the same namespace are more likely to cause conflicts (ambigious references) with other packages, so similar extension methods are now available in individual namespaces. The existing extension methods has been marked as obsolete. -
Added misc
IsMatchextension methods overloads for .NET'sRegexclass (see 320f179)
These extension adds similar functionality to the existingRegexUtils.IsMatchutility methods.
v1.2.0-alpha002
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.2.0-alpha002
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.2.0-alpha002
Changelog
This release adds a bit of new funtionality, but mainly focuses on porting new functionality from the v1.1.x package.
v1.1.67
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.1.67
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.1.67
Changelog
-
Added static methods to the
PropertyNotExceptionclass to allow guard-style pattern (see 31bfe38)
AddedThrowIfNull,ThrowIfNullOrEmptyandThrowIfNullOrWhiteSpacestatic methods to thePropertyNotExceptionclass. -
Copied the
SetExtensionsclass to a new namespace (see 2ba0e60)
The new namespace is less likely to cause namespace collisions. The oldSetExtensionsclass still exists, but is now marked as obsolete. it will be removed in a future version. -
Added new
EnumerableUtils,ListUtilsandSetUtilsstatic utility classes (see d5d1a46)
The new classes support misc operations specific for the intended return type. -
Copied
ListExtensionsclass to new namespace (see 2b45855)
The new namespace is less likely to cause namespace collisions. The oldListExtensionsclass still exists, but is now marked as obsolete. it will be removed in a future version.
v1.1.66
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.1.66
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.1.66
Changelog
- Fixed bad method names (see 71726b7)
Technically this is a breaking change, but only in releation to v1.1.65, which was released just this morning.
v1.1.65
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.1.65
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.1.65
Changelog
-
Introduced new
AddRangeextension method for forISet<T>(see daa1ad4) -
Added
ReadAsStringandReadAsStringAsyncextension methods for reading the contents of a stream into a string (see 7ceadec) -
Added additional
ToEssentialsDateandToEssentialsTimeextension methods (see 5bea9be)
Since bothDateTimeandDateTimeOffsetare structs, the existing extension methods forDateTime?andDateTimeOffset?can't be used withDateTimeandDateTimeOffset, so new extension methods to target these have been added. -
Added misc extension methods for deconstructing instances of
IReadOnlyList<T>(see a23a066) -
Added misc extension methods for
HttpClientand related classes (see e8b7d9f)
v1.1.64
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.1.64
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.1.64
Changelog
v1.1.63
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.1.63
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.1.63
Changelog
-
Added misc utility and extension methods for converting string values into corresponding
HashSet<>values (see 22cbf8b)
Similar to the existingStringUtils.Parse{Type}ArrayandStringUtils.Parse{Type}List, similarStringUtils.Parse{Type}Setmethods are now available with this release. -
Added .NET 8 and .NET 10 as additional target frameworks (see 22da437)
These are LTS releases of .NET and as such should be the primary target frameworks for this package. Ideally all EOL target frameworks should be removed, but as this would be a breaking change, this will be addressed in av1.2.0or2.0.0release instead.
v1.1.62
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.1.62
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.1.62
Changelog
- Fixed issue with
EssentialsTime.FromTicks(see 109a493)
Two of the method overloads would internally parse the ticks into aDateTimeinstance, but not specify aKind, in which case this falls back toUnspecified, thereby creating a lot of uncertainty when converting back and forth between time zones. With this commit, the two method overloads will instead use parse the ticks into aDateTimeOffsetrelative to UTC, and then convert to the time zone specified by the user.
v1.1.61
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.1.61
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.1.61
Changelog
-
Fixed issue with
ToInvariantStringextension methods (see a01b5f1)
For the overloading taking anIFormattable, we shouldn't usestring.Formatas the format is directly for theIFormattable. -
Fixed misc issues when getting values from
JArray(see 63c9245)
The idea behind these methods is that they should to call, meaning if you callGetInt32(0)and the item isn't found, or the value cannot be converted to a 32-bit integer, the method should return a default value instead of throwing an exception. As this wasn't the case, the implementation has been updated to reflect this.- added check for min and max values
- no longer tries to cast values
- added additional
GetTypeandTryGetTypeextension methods - added lots of unit tests
- etc.