Repository navigation
DataStandardizer.Language 2.0.1
·
1 commit
to develop
since this release
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.GetDateandIso15924ScriptCodeAttribute.DatereturnDateTime?on every target, includingnet10.0, where they returnedDateOnly?. A .NET Standard library that calls them no longer fails withMissingMethodExceptionin anet10.0app. On .NET 6 and later, useDateOnly.FromDateTimeto get aDateOnly.IStringEnumno longer extendsIConvertibleon any target. A struct that implementsIConvertibledeclares it itself; the ISO 639 structs still do onnetstandard2.0andnet10.0. Code that uses anIStringEnumas anIConvertibleneeds 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.Ancientis obsolete. ISO 639:2023 merged the ancient language type intoHistorical, and no ISO 639-3 code has it.
Changed:
- On .NET Standard, the name parameters of every
Iso639LanguageCodeAttributeconstructor are annotated[DisallowNull]. - The package's NuGet tags include
ISO 15924andscript.