Skip to content

Releases: Sv443-Network/UserUtils

v10.0.6

09 Feb 22:56
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Patch Changes

v10.0.5

09 Feb 20:51
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Patch Changes

  • 0c63a9b: Added UMD bundle explicitly made for userscript usage (at dist/UserUtils.user.js).

v10.0.4

08 Feb 04:13
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Patch Changes

  • 13159d8: Updated CoreUtils to fix underlying encoding and decoding inconsistencies.

v10.0.3

08 Feb 03:42
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Patch Changes

  • d7d3bea: Fixed decoding step when migrating DataStore data.

v10.0.2

08 Feb 03:16
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Patch Changes

  • 7348f22: Updated browser bundle from .umd.js to .mjs

v10.0.1

08 Feb 02:34
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Patch Changes

  • 4af7d99: Removed global merged interface.

v10.0.0

08 Feb 02:27
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Major Changes

  • 905881a: Moved a majority of the general-purpose code to the @sv443-network/coreutils package.
    The features are still accessible in this library in the same way, but some of them needed to be modified so they were more generic and consistent with the new package's codebase.
    Refer to the CoreUtils documentation for more information.

    Breaking Changes

    • Renamed index.<ext> files in dist/ to UserUtils.<ext>
      If you're specifying the URL to the bundle, make sure to replace the index in the file name with UserUtils.
      • Turned index.global.js into an actual full-fledged UMD bundle at UserUtils.umd.js (where previously it would only declare a global variable).
    • Reworked DataStore class
      • The constructor now needs an engine property that is an instance of a DataStoreEngine
      • Encoding using deflate-raw will now be enabled by default.
        If you're not using the encodeData and decodeData props, set compressionFormat: null to explicitly disable compression.
      • The properties encodeData and decodeData are now a tuple of a string format identifier (like gzip, deflate-raw, base64, etc.) and the respective function that used to be the only value of those properties.
      • Added DataStoreEngine class with three implementations available out-of-the-box; FileStorageEngine, BrowserStorageEngine and GMStorageEngine, for Node/Deno and two kinds of browser environments, respectively.
        Userscripts need to use either the GMStorageEngine or BrowserStorageEngine depending on whether they want to use GreaseMonkey storage (only accessible to the userscript) or standard browser storage (accessible by the website's scripts).
        Userscripts migrating from UserUtils v9 DataStores should use the GMStorageEngine to preserve all stored data.
      • Added shorthand property compressionFormat as an alternative to the properties encodeData and decodeData.
      • (The global key __ds_fmt_ver will now contain a global version number for DataStore-internal format integrity, stored via the given engine.)
    • Renamed functions
      • Renamed ab2str() to abtoa() and str2ab() to atoab() to match btoa() and atob()
      • Renamed purifyObj() to pureObj()
  • 422da75: Increased library target to ES2018. Any build systems or environments that do not support ES2018 or newer might not be able to just include the pre-built library bundles as they are and could need a transpilation step to downlevel the code to an older ECMAScript version.

Minor Changes

v9.4.4

15 Nov 20:39

Choose a tag to compare

Patch Changes

  • e8846b5: Fixed infinite recursion in translate() when using setFallbackLanguage() in some situations
  • 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