Skip to content

Releases: Sv443-Network/UserUtils

v9.4.4

15 Nov 20:39

Choose a tag to compare

Patch Changes

  • e8846b5: Fixed infinite recursion in translate() when using setFallbackLanguage()
  • 59011c1: Removed package.json engines field

v9.4.3

29 Jun 19:32

Choose a tag to compare

Patch Changes

  • 528e09c: Fix can't convert trArgs[0] to string error

v9.4.2

29 Jun 19:27

Choose a tag to compare

Patch Changes

  • 7f67cfb: Fixed compatibility for translations with multiple transform function matches

v9.4.1

31 Mar 20:52

Choose a tag to compare

Patch Changes

v9.4.0

31 Mar 20:21

Choose a tag to compare

Minor Changes

  • 5075831: Added Mixins class for allowing multiple sources to modify values in a controlled way
  • 99dedfd: Added unit tests
  • 7530fd0: Added Debouncer.getListeners() method to get an array of all listener functions
  • 48306da: Added stores filter parameter to the DataStoreSerializer methods loadStoresData(), resetStoresData() and deleteStoresData()

Patch Changes

  • f6a68c7: Fixed error when calling interceptEvent() in a non-GM environment

v9.3.0

21 Mar 20:25

Choose a tag to compare

Minor Changes

  • 89d7970: Added DataStoreSerializer methods serializePartial() and deserializePartial() for partial data exports and imports
  • 5d71770: Added function purifyObj() to remove an object's prototype chain (i.e. omit all inherited properties like toString, __proto__, etc.)

v9.2.1

14 Mar 22:41

Choose a tag to compare

Patch Changes

  • 24dad2b: Fixed TS type for DataStoreSerializer.serialize()

v9.2.0

13 Mar 17:26

Choose a tag to compare

Minor Changes

  • 905fea4: Added function isDomLoaded() to check if the DOM is queryable, regardless of @run-at setting
  • 4264154: Added parameter withDecimals to digitCount() (true by default)
  • 4264154: Added function roundFixed() to round a floating-point number to the given amount of decimals. Can also round to the given power of 10.
  • 7e492cf: Added probeElementStyle() to probe the computed style of a temporary element, allowing to resolve CSS variables and default style values, etc.
  • 905fea4: Added function onDomLoad() to call a callback and/or resolve a Promise when the DOM is loaded, even retroactively
  • 4264154: Added function bitSetHas() to check if a given value is present in a bitset
  • bf55335: Replaced a bunch of generic Errors with the new custom error class instances
  • bf55335: Added custom error classes ChecksumMismatchError, MigrationError and PlatformError, extending from the base class UUError
    The base class has the additional property date which is the time of the error creation

Patch Changes

  • 157dacb: Fixed example code in tsdoc comments of translation functions
  • 4264154: Fixed digitCount() not counting decimals by default

v9.1.0

09 Feb 13:33

Choose a tag to compare

Minor Changes

  • eb20132: Added the type ListWithLength to represent an array or object with a numeric length, count or size property.
  • eb20132: Added autoPlural() support for generic objects with a numeric length, count or size property.
  • c9b13d8: Added signal: AbortSignal and rejectOnAbort: boolean params to pauseFor() to allow for cutting the pause short
  • c66324b: Support for words with -y/-ies extension in autoPlural()
  • c9b13d8: Added getListLength() function to resolve a value of the new ListWithLength type
  • c13e890: autoPlural() now defaults pluralType to "auto" and num to 2 if pluralType is invalid or num resolves to NaN

Patch Changes

  • 3f86215: Fixed fetchAdvanced error "'abort' called on an object that does not implement interface AbortController"

v9.0.4

23 Jan 11:29

Choose a tag to compare

Patch Changes

  • 858c948: Fixed broken percent transform (tr.transforms.percent)