Skip to content

Releases: Sv443-Network/CoreUtils

@sv443-network/coreutils@3.0.8

Choose a tag to compare

@github-actions github-actions released this 18 Feb 22:59
Immutable release. Only release title and notes can be modified.

Patch Changes

  • 3a57c81: Fixed initial DataStore deserialization from object.

@sv443-network/coreutils@3.0.7

Choose a tag to compare

@github-actions github-actions released this 18 Feb 22:49
Immutable release. Only release title and notes can be modified.

Patch Changes

  • d40d50b: Fix DataStore defaultData initialization when data is in unexpected format.

@sv443-network/coreutils@3.0.6

Choose a tag to compare

@github-actions github-actions released this 18 Feb 21:24
Immutable release. Only release title and notes can be modified.

Patch Changes

  • d17ec25: The FileStorageEngine for DataStores now saves unencoded data as a plain object for easier editing.
    Previously saved stringified data will be loaded fine, but will be saved in the new format on the next save.

@sv443-network/coreutils@3.0.5

Choose a tag to compare

@github-actions github-actions released this 09 Feb 22:49
Immutable release. Only release title and notes can be modified.
d742068

Patch Changes

  • bb69014: Made DataStore.getData() unavailable at the type level when memoryCache is set to false.

@sv443-network/coreutils@3.0.4

Choose a tag to compare

@github-actions github-actions released this 08 Feb 04:05
Immutable release. Only release title and notes can be modified.
30d96f6

Patch Changes

  • f95b4ce: Fixed encoding and decoding being inconsistent between DataStore and DataStoreEngine.

@sv443-network/coreutils@3.0.3

Choose a tag to compare

@github-actions github-actions released this 08 Feb 03:38
Immutable release. Only release title and notes can be modified.
e550ebd

Patch Changes

  • 918749b: Fixed decoding step when migrating DataStore data.

@sv443-network/coreutils@3.0.2

Choose a tag to compare

@github-actions github-actions released this 08 Feb 03:12
Immutable release. Only release title and notes can be modified.
aaedebc

Patch Changes

  • 7e87d30: Updated browser bundle from .min.umd.js to .mjs
  • fa4c525: Removed DataStoreSerializer generic parameter.

@sv443-network/coreutils@3.0.1

Choose a tag to compare

@github-actions github-actions released this 08 Feb 01:50
Immutable release. Only release title and notes can be modified.

Patch Changes

  • d6843f9: Fixed underlying fetch() props in fetchAdvanced() in stricter environments.
  • 27e60dd: Made the type DataStoreData much less constrained. This way it won't require an index signature anymore.

@sv443-network/coreutils@3.0.0

Choose a tag to compare

@github-actions github-actions released this 08 Feb 00:08
Immutable release. Only release title and notes can be modified.

Major Changes

  • 7718855: Changed DataStoreEngine instances to allow storing original values instead of only strings.

    The previous behavior of explicit serialization was prone to errors and made it hard to implement certain features, such as data migration from UserUtils.
    If you have created a custom DataStoreEngine, please ensure it supports storing and retrieving all values supported by JSON, i.e. string, number, boolean, null, object and array. Values like undefined, Symbol, Function etc. are still not supported and will lead to errors.

  • 46570f4: NanoEmitter multi methods' oneOf and allOf properties now behave like an AND condition instead of an OR.

Minor Changes

  • 1124d2e: Added DataStoreSerializer property remapIds to support deserializing from stores with outdated IDs.

  • 240f83e: Added DataStore prop memoryCache to turn off the memory cache in data-intensive, non-latency-sensitive scenarios.

  • 7718855: Made DataStore able to migrate data from UserUtils <=v9 DataStore instances.

    In order to trigger the migration:

    1. Switch the DataStore import from UserUtils to CoreUtils and keep the same DataStore ID.
    2. Update the options object in the DataStore constructor. (You may also want to refer to the new DataStore documentation.)
      • The constructor now needs an engine property that is an instance of a UserUtils GMStorageEngine.
      • Encoding with deflate-raw will now be enabled by default. Set compressionFormat: null to disable compression if it wasn't enabled in the UserUtils DataStore.
      • Added shorthand property compressionFormat as an alternative to the properties encodeData and decodeData
      • encodeData and decodeData are now a tuple array, consisting of a format identifier string and the function which was previously the only value of these properties.
    3. The next call to loadData() will then migrate the data automatically and transparently.

Patch Changes

  • 99a797f: secsToTimeStr() now supports negative time and will only throw if the number is NaN or not finite.
  • 38e7813: Implemented DatedError, CustomError and new classes ScriptContextError and NetworkError throughout the library.

@sv443-network/coreutils@2.0.3

Choose a tag to compare

@github-actions github-actions released this 02 Feb 13:42
d8d0020

Patch Changes

  • d4a043d: Fixed DataStore defaultData initialization