Skip to content

Releases: Luuk-Dev/ValueSaver

Release list

1.9.2

Choose a tag to compare

@Luuk-Dev Luuk-Dev released this 03 Sep 14:27
51a6cc6

1.9.2

New features:

  • Import ValueSaver from Map
  • Convert ValueSaver to Map

Changes:

  • Save function returns a Promise which will be fulfilled once the ValueSaver has successfully been saved
  • Removing all saves function returns a Promise which will be fulfilled once all the ValueSaver have successfully been removed
  • Import function returns a Promise which will be fulfilled once the ValueSaver has successfully been imported

Bugs patches:

  • When an error was thrown while the ValueSaver was being saved would reset the save
  • When a ValueSaver couldn't be found would throw an error when recreating it
  • When importing a ValueSaver without a correct structure would throw an error

1.7.0

Choose a tag to compare

@Luuk-Dev Luuk-Dev released this 06 Nov 13:07
6ba7019

Version 1.7.0

Added:

  • concat function: Concats two ValueSavers together.
  • first function: Returns the first value of the ValueSaver.
  • firstKey function: Returns the first key of the ValueSaver.
  • last function: Returns the last key of the ValueSaver.
  • lastKey function: Returns the last key of the ValueSaver.

Changes:

  • If there is already another ValueSaver saved with the same id it will not automatically concat the two ValueSavers together to one ValueSaver. If you still want this to happen, you can use the concat parameter in the save function.
  • If there failed something with saving a ValueSaver, it will automatically create an auto-save so the values don't get lost.
  • Checks on startup if all saves are available and not are missing.

Install version 1.7.0 on NPMjs:
https://www.npmjs.com/package/valuesaver/v/1.7.0

For bugs: https://github.com/Luuk-Dev/ValueSaver/issues