Skip to content

Releases

11.0.0

Choose a tag to compare

@gcsizmadia gcsizmadia released this 12 Nov 21:59
5b0a99a
  • CHANGED: target frameworks.
    • REMOVED: net8.0 and net9.0
    • ADDED: net11.0
  • UPDATED: nuget package dependencies
  • CHANGED: JsonSerializerOptions.CopyTo() extension method now has an overrideTypeInfoResolver optional parameter that defaults to false. So by default, the TypeInfoResolver property will no longer be overridden.

Full Changelog: v10.0.0...v11.0.0

10.0.0

Choose a tag to compare

@gcsizmadia gcsizmadia released this 16 Oct 23:56
cc88afd

This release includes significant refactoring, modernization, and improvements to support newer .NET versions.

  • CHANGED: target frameworks.
    • REMOVED: net462 and net6.0
    • ADDED: net472 and net10.0
  • UPDATED: nuget package dependencies
  • CHANGED: complete rewrite of enum serialization.
  • REMOVED: AppContext switch
  • ADDED: AddEgonsoftJsonStringEnumConverter() extension method into JsonSerializerOptionsExtensions.

Full Changelog: v2.0.0...v10.0.0

2.0.0

Choose a tag to compare

@gcsizmadia gcsizmadia released this 15 Oct 12:51
59783d0
  • CHANGED: target frameworks.
    • REMOVED: netcoreapp3.1
    • ADDED: net8.0 and net9.0
  • UPDATED: nuget package dependencies
    • System.Text.Json
      • netstandard2.0, netstandard2.1, net462 and net6.0: from 7.0.3 to 8.0.5
      • net8.0: 8.0.5
      • net9.0: provided by .NET runtime (currently 9.0.0-rc.2.24473.5)
    • EgonsoftHU.Extensions.Bcl
      • from 2.0.0 to 3.0.1
  • CHANGED: complete rewrite of enum serialization.
    • ADDED: Support for any attribute.
      E.g. JsonStringEnumMemberNameAttribute, EnumMemberAttribute, DescriptionAttribute, DisplayNameAttribute
    • ADDED: Support for custom serialization by providing a base class with access to all the attributes of an enum member.
  • ADDED: AppContext switch to support a safe migration when early-adopting JsonStringEnumMemberNameAttribute (i.e. using a copy of the attribute instead of referencing an RC version of System.Text.Json package)
  • ADDED: JsonSerializerOptionsProvider
    It provides read-only default settings (Default, DefaultWriteIndented) and a writable current setting (Current).

Full Changelog: v1.1.0...v2.0.0

1.1.0

Choose a tag to compare

@gcsizmadia gcsizmadia released this 04 Aug 00:57
0409035
  • FIXED: concurrency issue with EnumMemberInfo<TEnum>.Cache property
  • FIXED: exception message in case of undefined enum member
  • UPDATED: nuget package dependencies
    • System.Text.Json
      • from 6.0.7 to 6.0.8 in case of netcoreapp3.1
      • from 7.0.2 to 7.0.3 in case of netstandard2.0, netstandard2.1, net462 and net6.0

1.0.0

Choose a tag to compare

@gcsizmadia gcsizmadia released this 19 Mar 21:31
eb110b2

Initial version.

  • ADDED: EgonsoftHU.Text.Json.Serialization.JsonStringEnumConverter

    Serialization value precedence:

    • EnumMemberAttribute.Value property value.
    • The enum member name converted by the specified JsonNamingPolicy.
    • The enum member name as it is written.

    Deserialization:

    • Matches if the JSON string value equals to one of the above mentioned three serialized values.
    • The equality check is case insensitive.