You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.