Skip to content

Releases: Sv443-Network/UserUtils

v8.3.0

08 Nov 19:39
bc513c1
Compare
Choose a tag to compare

Minor Changes

  • 1ecd63c: Added support for the signal property in fetchAdvanced()

v8.2.0

08 Nov 19:20
b611a72
Compare
Choose a tag to compare

Minor Changes

  • 3fe8b25: Added overload to mapRange() that only needs both max values and assumes 0 for both min values
  • d7e8a31: Added utility type Prettify to make complex types more readable
  • 8ec2010: Added randomCase parameter to the function randomId() (true by default)
  • d9a36d5: Added property migrateIds to the constructor of DataStore for easier ID migration
  • b2f757e: Added enhancedEntropy parameter to the function randRange() (false by default)

v8.1.0

24 Oct 20:31
3f70f77
Compare
Choose a tag to compare

Minor Changes

  • 6296529: Added new DataStoreSerializer methods loadStoresData(), resetStoresData() and deleteStoresData() for parallelized bulk operations on DataStore instances
  • b0bce9c: Added DataStore method migrateId() to be able to migrate to a new ID

v8.0.2

16 Sep 20:59
0a4c778
Compare
Choose a tag to compare

Patch Changes

  • a8bca8f: Added exports.types in addition to just types in package.json

v8.0.1

16 Sep 20:55
a1a8db9
Compare
Choose a tag to compare

Patch Changes

  • a92000b: Added exports to package.json and corrected module property

v8.0.0

04 Sep 14:44
90127d7
Compare
Choose a tag to compare

Major Changes

  • 54ee0ce: Changed hexToRgb() and rgbToHex() to support #RGBA and #RRGGBBAA color codes (with an alpha channel).
    Both functions now have an alpha value immediately after blue, which can be set to undefined to restore the old behavior.

Minor Changes

  • 54ee0ce: Added parameter upperCase (false by default) to lightenColor() and darkenColor()

Patch Changes

  • 54ee0ce: Consolidated behavior of lightenColor() and darkenColor() when using non-number values

v7.3.0

03 Sep 01:44
a129d01
Compare
Choose a tag to compare

Minor Changes

  • 7e8e147: - Added tr.forLang() to get the translation for a specified language code
    • Added tr.getTranslations() to return the translations object for the given or currently active language

v7.2.2

29 Aug 22:35
fce81b3
Compare
Choose a tag to compare

Patch Changes

  • a171b0d: Fix color functions not being exported 🥴

v7.2.1

28 Aug 11:59
27a07e5
Compare
Choose a tag to compare

Patch Changes

  • e00d4d9: Fixed dev-only TypeScript shims being included in the final bundle

v7.2.0

28 Aug 11:50
3d49141
Compare
Choose a tag to compare

Minor Changes

  • 3b8aa88: Added color manipulation functions hexToRgb(), rgbToHex(), lightenColor() and darkenColor()
  • 7303aa2: Added setInnerHtmlUnsafe() for setting innerHTML unsanitized using a Trusted Types policy

Patch Changes

  • 7303aa2: Made addGlobalStyle() use the new setInnerHtmlUnsafe() to fix the error "This document requires 'TrustedHTML' assignment" on Chromium-based browsers