Skip to content

Releases

DataStandardizer.Money 2.0.2

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:27
d23d8d6

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.

DataStandardizer.File.vCard 2.0.2

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:41
d23d8d6

Breaking changes:

  • Writing a vCard 3.0 or 2.1 card keeps a backslash followed by "n" in an ADR LABEL parameter as those two characters instead of writing a line break; only "^n" is a line break (RFC 6868).
  • VcardValue.TryParseUri and the typed URI members of a card give no Uri for a URI whose scheme is one letter, such as c:/dir/file, on every runtime, instead of a file URI on Windows; the card keeps the value as written.
  • VcardValue.TryFormatUri and the vCard values made from a Uri throw ArgumentException for a Uri made from a drive path, such as C:/dir/file, whose text would be read back as a URI with the scheme "C".
  • Writing a vCard 2.1 card now refuses a value or parameter that isn't valid in a card held by an AGENT, as it does in the card itself, unless AllowInvalidValues is set.
  • VcardReader throws VcardFileException (InvalidValue) for a vCard 2.1 QUOTED-PRINTABLE value on a line of 76 characters or more, which vCard 2.1 §2.1.3 doesn't allow; AllowInvalidValues accepts it.

Fixed:

  • The package now includes its XML documentation, so IntelliSense shows member descriptions.
  • Reading a vCard 3.0 or 2.1 card keeps a value that vCard 4.0 has no form for, instead of throwing InvalidOperationException.
  • Reading a vCard 2.1 or 3.0 AGENT whose card keeps a line in its own form no longer fails.
  • Writing a vCard 3.0 card reports the sort key of an ORG as lost when the card has an N, instead of moving it to the name.
  • Writing a vCard 3.0 card splits a quoted TYPE list into separate types instead of writing it as one type.
  • Writing a vCard 2.1 card no longer writes AGENT cards nested deeper than a reader accepts.
  • Reading a vCard 3.0 time keeps every digit of its fraction of a second instead of only the first 18.
  • VcardDate.TryParse gives the default date when it rejects an xCard year alone.
  • VcardValue.TryParseFloat gives 0, not infinity, when it rejects a number beyond the range of double.
  • The vCard 3.0 and 2.1 views show a REV, BDAY or TZ value that vCard 4.0 has no form for.
  • IVcard30Card.Labels and IVcard21Card.Labels give a backslash followed by "n" in an ADR LABEL parameter unchanged instead of as a line break.
  • VCard FLOAT and EMLX real values are read as the same double on .NET Framework as on .NET 10, including negative zero.
  • Writing a vCard 2.1 card under AllowInvalidValues no longer throws for a kept QUOTED-PRINTABLE value that can't be decoded; it is written as it is.
  • Writing a vCard 3.0 card with no N keeps the sort key of each ORG, as a SORT-STRING after it.
  • Reading a vCard 3.0 card with an N keeps a second SORT-STRING as a property of its own, instead of giving it to an ORG.
  • IVcard30Card.SortString gives only the sort string a vCard 3.0 writer writes, from the first N or, with no N, the first ORG.
  • On .NET Framework, XcardWriter and XcalWriter no longer report an asynchronous write as written when their stream or text writer cancels it.

DataStandardizer.File.iCal 2.0.2

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:35
d23d8d6

Fixed:

  • The package now includes its XML documentation, so IntelliSense shows member descriptions.
  • On .NET Framework, XcardWriter and XcalWriter no longer report an asynchronous write as written when their stream or text writer cancels it.

DataStandardizer.File.InternetMessage 2.0.2

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:38
d23d8d6

Breaking changes:

  • MboxWriter no longer reports a message that can't be read back with its options as LongBodyLine; the reader's error is thrown with its own kind, position and entity path.
  • ImfReader, ImfEntityReader, MboxReader, EmlxReader and MhtmlReader reject a line in a multipart entity that starts with its boundary and is not a delimiter, including the delimiters of a nested multipart entity whose boundary starts with the outer one, as ImfWriter already does (RFC 2046 §5.1.1).
  • A parameter given both as name and in an RFC 2231 form such as name* is now rejected as a duplicate (RFC 6838 §4.3), where the RFC 2231 value used to be kept.
  • Writers throw an ImfFileException for a multipart entity that was read with no close delimiter and hasn't changed, unless their options set AllowMissingBoundaryTerminator; ImfMessage.Validate reports it as InvalidBodyStructure.
  • ImfEntity.GetText throws ImfFileException for a text/html, text/xml, text/xml-external-parsed-entity or text/markdown entity with no charset parameter, instead of decoding it as US-ASCII. These types have no default character set (RFC 6657 §3), so read GetContent and find it as the format says.
  • ImfEntity.GetText throws ImfFileException for a text entity with the +xml suffix, such as text/foo+xml, and no charset parameter, instead of decoding it as US-ASCII. These types have no default character set (RFC 7303 §4.2), so read GetContent and find it as XML says.

Fixed:

  • The package now includes its XML documentation, so IntelliSense shows member descriptions.
  • VCard FLOAT and EMLX real values are read as the same double on .NET Framework as on .NET 10, including negative zero.
  • EmlxWriter, MboxWriter, and ImfWriter writing a message from an mbox file no longer alter the bytes of a body they would have labelled binary under AllowBinaryTransferEncoding; such a body is now encoded instead.
  • ImfWriter, MboxWriter and EmlxWriter writing a message that holds a message read from a file with other line breaks, such as one from an mbox or EMLX file being forwarded, now change its line breaks to those of the output, instead of refusing it or writing bare LF line breaks into a CRLF message.
  • ImfWriter, MboxWriter, EmlxWriter, ImfEntityWriter and ImfHeaderWriter now write a header field read from a file with other line breaks, such as one from an mbox file added to a message read from an .eml file, with the line breaks of the message, instead of writing bare LF line breaks into a CRLF message.
  • RFC 6533 message/global-headers, -delivery-status and -disposition-notification entities may be quoted-printable or base64.
  • A new UTF-8 header field no longer makes ImfMessage.Body, Validate or a Utf8 writer fail.
  • MboxReader no longer adds a stray line feed to the start of a message read after skipping part of a CRLF message.
  • ImfWriter adds MIME-Version to a message after a part of a multipart read without it changes.
  • MboxReader applies the line-length limit to quoted From lines correctly after 8-bit and CRLF lines.
  • MboxReader counts a carriage return that ends the file as part of a quoted From line.
  • Header text decoding (ImfHeaderText) decodes "Q"-encoded words with lower-case hexadecimal digits, such as =?UTF-8?Q?=c3=a9?=, by default, which RFC 2047 §4.2 allows; before, they were decoded only with ImfOptions.AllowMalformedEncodedWords.
  • Quoted parameter values accept the US-ASCII control characters that RFC 822 allows, as text or as quoted-pairs, instead of rejecting them.
  • Content-Type and Content-Disposition fields accept a quoted-pair whose backslash ends a folded line, such as filename="a\<CRLF> b", and read it as the space after the fold (RFC 5322 §2.2.3); before, the field was rejected.
  • EmlxPlistValue.TryGetDouble gives the nearest double for a hexadecimal integer too large for a long.
  • EmlxWriter, MboxWriter, MhtmlWriter, and ImfWriter writing a message from an mbox file no longer alter the CR and LF octets of a body that isn't text and that they would have labelled 7bit or 8bit; such a body is now encoded instead, and one that asks for 7bit or 8bit is refused.
  • Writers refuse a moved part or separately read message whose kept bytes hold a delimiter of a boundary around it.
  • A refusal of an entity inside a held message with other line breaks, such as one read from an mbox file, gives the EntityPath of that entity within the message being written, not within the held message.
  • The refusal of a binary entity, or one with an extension mechanism, whose line breaks would change gives its EntityPath.

Changed:

  • A text/* body from a forward-only stream, written as quoted-printable, has its bare LFs encoded as =0A instead of written as CRLF line breaks, so the content is kept as it is (RFC 2045 §6.7 rule 4).

DataStandardizer.File.CSV 2.0.2

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:32
d23d8d6

Fixed:

  • The package now includes its XML documentation, so IntelliSense shows member descriptions.
  • CsvFileWriter constructors name the argument at fault for a read-only stream or an options encoding with a text writer.

DataStandardizer.LanguageTag 2.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:21
d23d8d6

Breaking changes:

  • Casting a string to Bcp47KeyedSubtag throws InvalidCastException unless it is one extension or one private use sequence.
  • Loading a SubtagRegistry throws FormatException, naming the record's line, for a Prefix that isn't a well-formed language tag or that repeats a variant subtag or extension singleton, a Suppress-Script that isn't a script subtag, a Macrolanguage that isn't a primary language subtag, a Preferred-Value not in the form RFC 5646 §3.1.2 gives it for the record's Type, an extlang record whose Preferred-Value is missing or not identical to its Subtag, and an empty Suppress-Script, Macrolanguage or Preferred-Value (RFC 5646 §2.2.2, §2.2.9, §3.1.2, §3.1.7 to §3.1.10). Before, such a registry loaded.
  • Bcp47KeyedSubtag.Singleton returns char instead of char?; code that reads .Value or .HasValue, or applies ?? to it, uses the property directly.

Fixed:

  • A reused Bcp47LanguageTagBuilder no longer returns the earlier tag, or mixes the earlier tag's subtags into the new one. UsingLanguageTag and UsingPrimaryLanguageSubtag each start a new tag; the Subtag Registry or conformance chosen stays.
  • Loading a SubtagRegistry throws FormatException, naming the line, for a Prefix field outside an extlang or variant record, an extlang record without exactly one, an empty Prefix or Scope, a Suppress-Script, Macrolanguage or Scope field outside a language or extlang record, a Scope other than macrolanguage, collection, special and private-use, a Subtag that isn't a subtag of its record's Type in the case RFC 5646 §3.1.4 gives it, a Tag not formatted as §2.1.1 describes, or a character outside printable US-ASCII in a field RFC 5646 defines, other than Description and Comments (RFC 5646 §3.1.1, §3.1.2, §3.1.4, §3.1.8). Before, such a registry loaded and its records showed up through Languages, Regions, TryGetSubtag and the other members.
  • Bcp47LanguageTag.Create with LanguageTagConformance.IsoCodeLists reports a repeated variant subtag or extension singleton with its own message, instead of blaming well-formedness or the ISO code lists.
  • The package now includes its XML documentation, so IntelliSense shows member descriptions.
  • Parsing a language tag, and Bcp47LanguageTagBuilder.UsingVariantSubtags, check a long list of variant subtags for repeats faster.

DataStandardizer.Language 2.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:17
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.

DataStandardizer.Geography 2.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:14
d23d8d6

Breaking changes:

  • UnM49AreaCodeAttribute.EnglishNames and FrenchNames hold only the area's own name instead of one entry per level, and Iso3166CountryCodeAttribute.EnglishNames holds only the English short name instead of the short, upper-case short and full names.
  • Casting a string to Iso3166Part2Subdivision throws InvalidCastException for a code that isn't in ISO 3166-2.

Fixed:

  • GetNativeName on MM and BY (MMR and BLR) returns the current name instead of the former one ("Burma", "Byelorussian SSR"), and the ISO 3166-1 enums no longer carry the former names and language rows of Burma, the Byelorussian SSR, Upper Volta, Zaire and East Timor on MM, BY, BF, CD and TL.
  • UnM49AreaCodeAttribute.EnglishName and FrenchName are the area's own name (such as "Afghanistan") instead of "World" and "Monde", and Iso3166CountryCodeAttribute.FrenchName is the country's ISO 3166-1 French short name (such as "France (la)") instead of null.
  • Iso3166Part2Enum.GetNames and GetValues return a country's subdivisions sorted by code.
  • Geography name lookups accept a null language code without a nullable warning, as documented.
  • 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.

DataStandardizer.Core 2.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:01
d23d8d6

Breaking changes:

  • 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.

DataStandardizer.Communication 2.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:09
d23d8d6

Breaking changes:

  • A parameter given both as name and in an RFC 2231 form such as name* is now rejected as a duplicate (RFC 6838 §4.3), where the RFC 2231 value used to be kept.
  • MimeParameter.Equals and GetHashCode compare the character set of such a value, so the same octets in different character sets are no longer equal.
  • An encoded word in a character set that switches modes, such as ISO-2022-JP, is accepted only if it switches back to ASCII by its end (RFC 2047 §3), on every target and with every option.
  • In MimeQuotedPrintableMode.Body, the quoted-printable decoder rejects an encoded line longer than 76 characters, not counting its transport padding and CRLF (RFC 2045 §6.7 rule 5).
  • The quoted-printable encoder writes a bare LF in text as =0A, not as a CRLF line break, so the encoded data decodes to the original octets (RFC 2045 §6.7 rule 4).
  • In a comment (MimeEncodedWordContext.Comment, MimeQuotedPrintableMode.EncodedWordComment), "Q"-encoded text containing a literal \ is now rejected, as RFC 2047 §5(2) erratum 504 requires.
  • MimeCharsetResolver no longer resolves charset names that aren't registered with IANA, such as ascii, ucs-2, unicode and unicodeFFFE; pass a resolver for them to the MimeCharsetResolver constructor to accept them.
  • A Content-Transfer-Encoding mechanism that is neither one of the five RFC 2045 defines nor an x- token, such as uuencode or x-, is rejected as RFC 2045 §6.1 requires: MimeTransferEncoding.Parse and TryParse fail, and readers that parse the field report it as invalid.
  • MimeEncodedWord.TryParse with AllowLongWords rejects a word over 75 characters that can't be written back within the limit: one with empty text, a language over 61 characters, or a character set the resolver doesn't resolve.
  • ItuE164InternationalNumber.Parse and TryParse reject a number with any character between its digits, such as 1-205-555-0199, whatever the ItuE164InternationalNumberStyles; remove any grouping before parsing.
  • ItuE164InternationalNumber.CreateNumberForNetwork(countryCode, identificationCode, subscriberNumber) throws ArgumentException for an Identification Code not assigned under the Country Code, such as IC110 (883) with GMSS (881).
  • ItuE164InternationalNumber.Parse and TryParse throw ArgumentOutOfRangeException for a numberStyles value with a bit that no ItuE164InternationalNumberStyles member defines.
  • ItuE164InternationalNumber.ToString and TelephonyInfo formatting throw FormatException for a pattern without a placeholder for every digit of the number, instead of dropping digits.

New:

  • MimeQuotedPrintableDecoderOptions.AllowLongLines accepts quoted-printable lines longer than 76 characters (RFC 2045 §6.7 note 5).

Fixed:

  • The package now includes its XML documentation, so IntelliSense shows member descriptions.
  • MimeCharsetResolver returns a new instance of a built-in encoding on each call, so a caller that changes its EncoderFallback or DecoderFallback no longer changes the encoding other callers get.
  • MimeDataUri.TryParse no longer treats a percent-encoded /, ; or = in the media type as a delimiter (RFC 2397 §3).
  • MimeDataUri.TryParse accepts type, subtype and parameter names that are RFC 2045 tokens, such as text/x-a~b, so it reads everything MimeDataUri.Create writes.
  • MimeDataUri.Create percent-encodes /, ; and = in a quoted parameter value.
  • A MimeParameter read with MimeMediaTypeParseOptions.AllowUnknownCharsets in a character set that couldn't be resolved is written back as its octets in that character set (UNKNOWN-8BIT when it gave none), not as different text labelled UTF-8.
  • The netstandard1.1 build decodes runtime and custom character sets as the other builds do: invalid octets become U+FFFD with AllowInvalidOctets, and valid ISO-2022-JP values are accepted.
  • Encoder.Convert and Decoder.Convert of the built-in encodings accept empty input, and the netstandard1.1 UTF-32 decoder fits the array GetMaxCharCount sizes.
  • On netstandard2.0, ISO-8859-1 from MimeCharsetResolver uses the caller's fallbacks, and UTF-16 and UTF-32 have a BodyName and HeaderName.
  • The quoted-printable decoder removes trailing spaces and tabs (transport padding) of any length, instead of rejecting a run of more than 76 before a line break.
  • In a comment, a "Q"-encoded word may now contain a literal double quote, and one is written as itself rather than as =22 (RFC 2047 §5(2) erratum 504).
  • MimeEncodedWord.DecodeText with AllowSplitCharacters reads a character split between words in the byte order that a byte order mark earlier in the run gives, and in the mode an ISO-2022 character set such as ISO-2022-JP is in at the end of the word before.
  • "Q"-encoded words (MimeEncodedWord, and the "Q" modes of MimeQuotedPrintable) accept lower-case hexadecimal digits such as =c3=a9 by default, which RFC 2047 §4.2 allows.
  • MimeMediaType accepts lower-case hexadecimal digits in RFC 2231 extended parameter values, such as %c3%a9, by default (RFC 2231 §7, RFC 822 §2.1).
  • MimeCharsetResolver reads ISO-10646-UCS-2 and csUnicode as big-endian and holds them to the Basic Multilingual Plane, as the IANA registry requires, instead of reading them as little-endian UTF-16.
  • MimeCharset.TryGetDefault gives UTF-8 for text/csv, text/turtle, text/vtt, text/javascript and text/ecmascript, and no default for text/xml-external-parsed-entity, as their registrations say.
  • Quoted parameter values accept the US-ASCII control characters that RFC 822 allows, as text or as quoted-pairs, instead of rejecting them.
  • MimeMediaType.Tree reports Standards, not Unregistered, for subtypes that start with x-, such as application/x-www-form-urlencoded (RFC 6838 §3.4).
  • MimeMediaTypeParseOptions.AllowQuotedExtendedValues accepts an apostrophe in the value, as its docs say.
  • default(MimeParameter).TryFormat and FormatSections no longer throw.
  • MimeEncodedWord no longer writes a word longer than 75 characters, accepted with MimeEncodedWordParseOptions.AllowLongWords; its text is written as encoded words within the RFC 2047 §2 limit.
  • MimeBase64Encoder in MIME mode makes progress with a destination of 4 or 5 characters at the end of a line.
  • MimeMediaType compares the access-type and permission values of message/external-body without regard to case, and mode too when the access-type is ftp, anon-ftp or tftp (RFC 2046 §5.2.3).
  • MimeCharset.TryGetDefault returns false for a text subtype with the +xml suffix, such as text/foo+xml, which has no default character set (RFC 7303 §4.2), instead of giving US-ASCII.
  • ItuE164InternationalNumber.Parse, TryParse and CreateNumberForNetwork(ulong) accept a network number whose Subscriber Number has one digit, such as +88165.
  • ItuE164InternationalNumber.TryParse returns false for a null string instead of throwing, and Parse names the parameter s when it throws ArgumentNullException.
  • A new ItuE164InternationalNumberFormatInfo has the invariant patterns, so the i and I formats no longer give an empty string, and setting either pattern to null throws ArgumentNullException.
  • With TelephonyInfo as the format provider, string.Format formats arguments that aren't E.164 numbers with the current culture.
  • TelephonyInfo takes the neutral number patterns from the invariant culture, not the current UI culture.
  • ItuE164InternationalNumber.TryParse returns false for a number with decimal digits other than 0-9.

Deprecated and removed:

  • MimeMediaTypeParseOptions.AllowLowercaseHexDigits and MimeEncodedWordParseOptions.AllowLowercaseHexDigits are obsolete and have no effect, as lower-case hexadecimal digits are always accepted; they will be removed in a future major version.