Skip to content

DataStandardizer.File.vCard 2.0.2

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:41
· 1 commit to develop since this release
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.