Releases: Sv443-Network/CoreUtils
Release list
@sv443-network/coreutils@3.0.8
Patch Changes
- 3a57c81: Fixed initial DataStore deserialization from object.
@sv443-network/coreutils@3.0.7
Patch Changes
- d40d50b: Fix DataStore defaultData initialization when data is in unexpected format.
@sv443-network/coreutils@3.0.6
Patch Changes
- d17ec25: The
FileStorageEngineforDataStores 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
Patch Changes
- bb69014: Made
DataStore.getData()unavailable at the type level whenmemoryCacheis set tofalse.
@sv443-network/coreutils@3.0.4
Patch Changes
- f95b4ce: Fixed encoding and decoding being inconsistent between DataStore and DataStoreEngine.
@sv443-network/coreutils@3.0.3
Patch Changes
- 918749b: Fixed decoding step when migrating DataStore data.
@sv443-network/coreutils@3.0.2
@sv443-network/coreutils@3.0.1
@sv443-network/coreutils@3.0.0
Major Changes
-
7718855: Changed
DataStoreEngineinstances 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 customDataStoreEngine, please ensure it supports storing and retrieving all values supported by JSON, i.e.string,number,boolean,null,objectandarray. Values likeundefined,Symbol,Functionetc. are still not supported and will lead to errors. -
46570f4:
NanoEmittermulti methods'oneOfandallOfproperties now behave like an AND condition instead of an OR.
Minor Changes
-
1124d2e: Added DataStoreSerializer property
remapIdsto support deserializing from stores with outdated IDs. -
240f83e: Added DataStore prop
memoryCacheto 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:
- Switch the DataStore import from UserUtils to CoreUtils and keep the same DataStore ID.
- Update the options object in the DataStore constructor. (You may also want to refer to the new DataStore documentation.)
- The constructor now needs an
engineproperty that is an instance of a UserUtilsGMStorageEngine. - Encoding with
deflate-rawwill now be enabled by default. SetcompressionFormat: nullto disable compression if it wasn't enabled in the UserUtils DataStore. - Added shorthand property
compressionFormatas an alternative to the propertiesencodeDataanddecodeData encodeDataanddecodeDataare now a tuple array, consisting of a format identifier string and the function which was previously the only value of these properties.
- The constructor now needs an
- The next call to
loadData()will then migrate the data automatically and transparently.
Patch Changes
@sv443-network/coreutils@2.0.3
Patch Changes
- d4a043d: Fixed DataStore defaultData initialization