ConfigManager

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

A continuación se muestran las versiones de este script en las que se actualizó el código. Ver todas las versiones.

  • v0.8.2 27/2/2024

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

  • v0.8.1 13/2/2024

    new getConfigVersion to get version of specific config or global config

  • v0.8 13/2/2024

    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 7/2/2024
    • fix: update config occurs version-check error
  • v0.7 7/2/2024

    Upload correct code for version 0.7

  • v0.7 7/2/2024
    • 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 10/8/2023

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

  • v0.6.10 17/7/2023

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

  • v0.6.9 3/3/2023

    fixed update error

  • v0.6.8 6/2/2023

    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 4/2/2023

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

  • v0.6.6 2/2/2023

    bug fix

  • v0.6.5 30/1/2023

    bug fix

  • v0.6.4 30/1/2023

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

  • v0.6.3 30/1/2023

    fixed substorage GM_setValue not working correctly

  • v0.6.2 30/1/2023

    Default value auto-fill support for setConfig and Config

  • v0.6.1 29/1/2023

    String path support for makeSubStorage

  • v0.6 29/1/2023

    makeSubStorage support

  • v0.5.1 26/8/2022
  • v0.5.1 26/8/2022

    Fixed defaultValue overWriting bug

  • v0.5 26/8/2022

    Added function setDefaults() {}

  • v0.4.2 26/8/2022

    Fixed CM.Config get not applying defaultValue rules bug

  • v0.4.1 25/8/2022

    Added GM_storage functions exist check

  • v0.4 25/8/2022

    Support using caller-specific GM_storage functions

  • v0.3.1 19/8/2022

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

  • v0.3 18/8/2022

    ConfigBase support

  • v0.2 16/8/2022

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

  • v0.1 15/8/2022