Skip to content

v4.0.0

Latest
Compare
Choose a tag to compare
@kelseykm kelseykm released this 06 Nov 15:56

Breaking Changes

  • Reordered arguments to a more intuitive order in several classes:
    1. LevelParameter
    2. TypeParameter
    3. SpecialValueType
    4. DateTimeType
  • Updated value types for parameters previously using TextType to ParameterValueType to enforce value specifications better.
  • Dropped support for IANA tokens due to their large number. Use an x-name format for token names.
  • No longer accepting empty strings as TextType values.

New Features

  • Introduced a new value type: ParameterValueType, along with corresponding tests and type definitions.
  • Added additional unit tests for Tokenizer and Parser.
  • Included ts-doc comments in type definitions for improved documentation.
  • Enabled case-insensitive string matching for arguments in getProperty and getGroup methods on the parse return object.
  • Implemented unquoting of quoted values in Tokenizer.
  • Added validation for LanguageTagType values and added tests for it.

Bug Fixes

  • Allowed properties with the same ALTID parameter to count as 1 for cardinality in Parser, Group, and VCARD.
  • Permitted hyphens in x-names.
  • Improved validation for Group names.
  • Corrected the algorithm for finding the first colon index in Tokenizer.
  • Fixed spelling and case issues in property identifier names in VCARD and Group.