Skip to content

DataStandardizer.Language 2.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:17
· 1 commit to develop since this release
d23d8d6

Breaking changes:

  • Casting a null string to an ISO 639 language struct throws InvalidCastException.
  • Casting a string that isn't an ISO 639 code to an ISO 639 language struct throws InvalidCastException.
  • Iso15924Extensions.GetDate and Iso15924ScriptCodeAttribute.Date return DateTime? on every target, including net10.0, where they returned DateOnly?. A .NET Standard library that calls them no longer fails with MissingMethodException in a net10.0 app. On .NET 6 and later, use DateOnly.FromDateTime to get a DateOnly.
  • IStringEnum no longer extends IConvertible on any target. A struct that implements IConvertible declares it itself; the ISO 639 structs still do on netstandard2.0 and net10.0. Code that uses an IStringEnum as an IConvertible needs a cast.

Fixed:

  • CodeAttributeBase.EnglishNames and FrenchNames return a copy, so changing the returned array no longer changes the attribute's names.
  • The package now includes its XML documentation, so IntelliSense shows member descriptions.

Deprecated and removed:

  • Iso639LanguageType.Ancient is obsolete. ISO 639:2023 merged the ancient language type into Historical, and no ISO 639-3 code has it.

Changed:

  • On .NET Standard, the name parameters of every Iso639LanguageCodeAttribute constructor are annotated [DisallowNull].
  • The package's NuGet tags include ISO 15924 and script.