Changelog
Notable changes in each release.
All notable changes to ArturRios.Extensions are recorded in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
1.4.4 - 2026-11-19
Changed
ArturRios.Utilupdated from 2.2.1 to 2.3.1.
1.4.3 - 2026-11-19
Changed
ArturRios.Utilupdated from 2.2.0 to 2.2.1.
Fixed
ToLogLinewrites its timestamp asyyyy-MM-dd HH:mm:sswith the invariant culture. It used the current culture, so a line started2026-11-16 05.04.14under fi-FI and2569-11-16 05:04:14(the Buddhist year) under th-TH, which broke parsers that read the documented format.Clone<T>()copies a collection the constructor fills once. Json.NET added the items it read to the collection the constructor had already created, so aList<string> Tags { get; set; } = ["default"]holding["default", "x"]came back as["default", "default", "x"], and one the caller had emptied came back as["default"]. A settable member is now replaced with the value read back. A collection with no setter can still only be added to, and the remarks say so.
1.4.2 - 2026-11-14
Changed
ArturRios.Utilupdated from 2.1.0 to 2.2.0.
1.4.1 - 2026-10-29
Changed
ParseToIntOrDefaultparses with the invariant culture. Under the current culture,"-5"returned the default on a machine whose culture uses a different negative sign, such as fa-IR or ar-SA.ParseToObjectOrDefault<T>matches JSON property names regardless of case, likeClone<T>, theArturRios.UtilHTTP helpers and Microsoft.Extensions.Configuration binding.{"name":"Ana"}used to come back as an object with every member at its default.InandNotInare declared as classic extension methods. The compiled method signatures are unchanged, so the change is binary compatible.- The package’s project URL is the documentation site’s new address,
https://docs.artur-rios.tech/dotnet-extensions, since the site moved from GitHub Pages.
Fixed
- Calling
InorNotInwith an expanded argument list, such as2.In(1, 2, 3), no longer raises a nullability warning (CS8620) for every argument in projects with nullable reference types enabled. ToLogLinereturns a single line, as documented. Line breaks in the stack trace and the message are escaped as\n; written raw, they split one exception across several log lines and let a crafted message forge entries.PropertiesToDictionaryandNonNullPropertiesToDictionaryno longer throwTargetParameterCountExceptionon an object with an indexer, or fail on a write-only property, and no longer include static properties.PrintContentsprints aGuid, an enum or a date and time value as itself, instead of the type’s static properties (Guid.AllBitsSet,DateTime.Now) or nothing at all, and skips indexers rather than throwing.
1.4.0 - 2026-08-24
Changed
IsValidEmaildelegates toArturRios.Util.Text.EmailAddress.IsValid, so mixed-case and internationalized domains are accepted.InandNotIncompare withEqualityComparer<T>.Defaultand reject a null range withArgumentNullExceptioninstead of throwingNullReferenceException.ArturRios.Utilupdated from 2.0.0 to 2.1.0.
Fixed
IsValidEnumValue<TEnum>rejects a numeric string that names no declared member;"999"was accepted by a three-member enum.- The XML documentation of
In/NotIn,Clone<T>,RemoveMilliseconds,HasMinLength/HasMaxLengthandTrimCharnow describes what they actually do.
1.3.0 - 2026-08-19
Changed
ArturRios.Utilupdated from 1.2.0 to 2.0.0, so consumers no longer resolve an outdated transitive dependency.
1.2.0 - 2026-07-02
Changed
IsPrimeuses the prime logic fromArturRios.Util, updated from 1.0.0 to 1.2.0.
1.1.0 - 2026-05-20
Added
IntExtensions.IsPrimeforint,long,short,byte,uint,ulong,ushortandsbyte.
1.0.2 - 2025-12-12
Removed
ObjectExtensions.ToJsonStringContent.
1.0.1 - 2025-12-11
Changed
ParseToBoolOrDefaultandParseToIntOrDefaultreturnbool?andint?and default tonullwhen parsing fails.ToLogLinewrites “No stack trace available” in place of a missing stack trace.
1.0.0 - 2025-12-10
Added
- Extension methods for strings, enumerables, enums, objects, generics, dates, comparisons and exceptions.