ConfigManager

ConfigManager: Manage(Get, set and update) your config with config path simply with a ruleset!

These are all versions of this script. Show only the versions where the code changed.

  • v0.8.2 2024-02-27

    provide current ConfigManager instance as this for updaters (include globalUpdaters)

  • v0.8.1 2024-02-13

    new getConfigVersion to get version of specific config or global config

  • v0.8 2024-02-13

    updateGlobal now uses Ruleset.globalUpdaters instead of Ruleset.globalUpdater, providing the ability to use multiple updater functions and manage global config as any basename-specificed config

  • v0.7.1 2024-02-07
    • fix: update config occurs version-check error
  • v0.7 2024-02-07

    Upload correct code for version 0.7

  • v0.7 2024-02-07
    • feature: updateGlobal with Ruleset.globalUpdater
    • fix: setConfig now preserves version key
    • fix: check path correctly when updating config, avoid setting undefined: undefined
  • v0.6.11 2023-08-10

    fixed: error when updateAllConfigs called with non-object config property(ies)

  • v0.6.10 2023-07-17

    arrPath now deals path strings that starts(ends) with '/' correctly

  • v0.6.9 2023-03-03

    fixed update error

  • v0.6.8 2023-02-06

    Now getConfig( and also ConfigManager.CONFIG) can get properties that are not exist at the last place of given path, it will returns an undefined. (In any other case there's no undefined returned.)

  • v0.6.7 2023-02-04

    ConfigManager.Config.** now always returns the current value whenever getter getting called

  • v0.6.6 2023-02-02

    bug fix

  • v0.6.5 2023-01-30

    bug fix

  • v0.6.4 2023-01-30

    Throws error when trying to get or set a path that not exists

  • v0.6.3 2023-01-30

    fixed substorage GM_setValue not working correctly

  • v0.6.2 2023-01-30

    Default value auto-fill support for setConfig and Config

  • v0.6.1 2023-01-29

    String path support for makeSubStorage

  • v0.6 2023-01-29

    makeSubStorage support

  • v0.5.1 2022-08-26
  • v0.5.1 2022-08-26

    Fixed defaultValue overWriting bug

  • v0.5 2022-08-26

    Added function setDefaults() {}

  • v0.4.2 2022-08-26

    Fixed CM.Config get not applying defaultValue rules bug

  • v0.4.1 2022-08-25

    Added GM_storage functions exist check

  • v0.4 2022-08-25

    Support using caller-specific GM_storage functions

  • v0.3.1 2022-08-19

    Deprecated CM.ConfigBase, provide CM.Config for both reading and writing instead.

  • v0.3 2022-08-18

    ConfigBase support

  • v0.2 2022-08-16

    bug fix: versionkey not added when no updaters exist
    bug fix: false dealing configs with updater
    support: ignores

  • v0.1 2022-08-15