Skip to content

Version 1.2.0

Choose a tag to compare

@jtnelson jtnelson released this 21 Nov 23:23
· 22 commits to master since this release
  • Deprecated and renamed a few Transformer factories for better consistency
    • keyCaseFormat is deprecated in favor of keyConditionalConvertCaseFormat or keyEnsureCaseFormat
    • keyStripInvalidChars is deprecated in favor of keyRemoveInvalidChars
    • keyValueStripQuotes is deprecated in favor of keyValueRemoveQuotes
    • removeValuesThatAre is deprecated in favor of valueRemoveIf
    • valueSplitOnDelimiter is deprecated in favor of valueStringSplitOnDelimiter
  • Added some factories for common Transformers
    • keyEnsureCaseFormat can be used to conver ALL keys to a particular case format.
    • keyWhitespaceToUnderscore replace all whitespace characters with underscores in ALL keys
    • keyRemoveWhitespace removes all whitespace characters (no replacement) in ALL keys
    • keyRemoveInvalidChars (replacement for keyStripInvalidChars) has been overloaded to accept a collection of invalid characters in addition to a Predicate that determines if a character is invalid.
    • A version of valueRemoveIfEmpty that takes no arguments can be used to return a Transformer that removes values that match defeault definition of Empty#ness
    • Added versions of valueAsBoolean, valueAsNumber, valueAsResolvableLinkInstruction, valueAsTag and valueAsTimestamp that accept one or more keys to which the value transformation is limited. If no keys are provided, values for every key will be transformed.
  • The version of keyRemoveInvalidChars that takes a Predicate expects the predicate to determine whether the character is invalid. whereas the keyStripInvalidChars method takes a Check that is expected to determmine if a character is valid.