Skip to content

Releases: Sv443-Network/UserUtils

v10.4.0

16 Apr 09:15
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Minor Changes

  • aac502f: Updated to CoreUtils v3.6.0, which comes with the following minor features:
    • Added stringifyData option to DataStoreSerializer for preventing any stringification when serializing with the stringify parameter set to false too.
    • Added optional catchUpEvents option to NanoEmitter and NanoEmitterOptions. When provided with a list of event names, the emitter remembers the last arguments of each listed event. Any listener attached via on() or once() after such an event has already fired will be immediately called / resolved with the cached arguments. Also added the protected emitEvent() method for subclasses - it behaves identically to this.events.emit() but additionally updates the catch-up cache and should thus be preferred over this.events.emit().
    • Added function getterifyObj() to turn all own, enumerable properties of an object into getters.
      This is useful when logging large objects to the console.
    • Added optional TFn generic parameter to ValueGen and StringGen types, and a matching rest ...args parameter to consumeGen() and consumeStringGen(), enabling parametrized function variants with full type safety.

Patch Changes

  • bbe90b7: Fixed missing inclusion of .user.js file in NPM and JSR publish.
  • 485a834: Fixed tsdoc comments for the properties of tr

v10.3.1

11 Mar 22:46
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Patch Changes

  • 7cbeefc: Updated CoreUtils to v3.5.1 to fix a build error that led to a SyntaxError.

v10.3.0

11 Mar 21:53
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Minor Changes

  • ffca33d: Updated CoreUtils to v3.5.0, which includes the following changes:
    • Added function createTable() to create a very flexible ASCII table, including ANSI color and %c styling support.
    • Fixed type variance issue in DataStoreSerializer where DataStore instances with specific data types (e.g. DataStore<MyType>) couldn't be passed to the constructor without being asserted as DataStore<DataStoreData, boolean>.

v10.2.0

07 Mar 18:24
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Minor Changes

  • 1f32c2e: Updated CoreUtils to v3.4.0, which includes the following changes:
    • Debouncer and debounce now have an extra parameter of type NanoEmitterOptions to customize the underlying NanoEmitter instance.
    • Added function createRecurringTask() as a "batteries included" alternative to setImmediateTimeoutLoop() and setImmediateInterval(), with more ways to control task execution and aborting.
    • Fixed internal event emission problems in Debouncer

v10.1.0

02 Mar 14:47
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Minor Changes

  • c42bf93: Added constant object versions to find out the versions of UserUtils and the bundled and re-exported CoreUtils library at runtime.
  • 7a81eba: Added translation transform tr.transforms.i18n, which works similar to templateLiteral but matches the commonly used i18n pattern {{key}}.
  • fe726cd: Added function tr.getAllTranslations() to return a mutable or immutable (default) object of all registered translations.

Patch Changes

  • 6118f4a: Updated CoreUtils to v3.3.0.
    This fixes various DataStore and DataStoreEngine issues and adds NanoEmitter into DataStore's inheritance chain, including many new events.
    It also adds a second parameter of type DataStoreEngineDSOptions to the filePath function property in FileStorageEngineOptions, which allows for setting the file path based on encoding options.
  • ca4c9ed: An empty string can now be used as a valid translation language.
    When the language parameter is an empty string, it will now be treated as an actual valid language instead of aggressively trying to use the fallback language and failing.
    If the language is undefined at runtime (even though this is a TS error), it will default to an empty string, triggering the same behavior.
    As a side effect, this also allows for a second fallback layer that is applied instead of the default "return the key if translation is missing" fallback.

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