ConfigManager: Manage(Get, set and update) your config with config path simply with a ruleset!
すべてのバージョンを表示しています。 コードが変更されたバージョンのみを表示
provide current ConfigManager instance as this for updaters (include globalUpdaters)
this
new getConfigVersion to get version of specific config or global config
getConfigVersion
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
updateGlobal
Ruleset.globalUpdaters
Ruleset.globalUpdater
Upload correct code for version 0.7
setConfig
path
undefined: undefined
fixed: error when updateAllConfigs called with non-object config property(ies)
updateAllConfigs
arrPath now deals path strings that starts(ends) with '/' correctly
arrPath
fixed update error
update
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.)
getConfig
ConfigManager.CONFIG
undefined
ConfigManager.Config.** now always returns the current value whenever getter getting called
ConfigManager.Config.**
bug fix
Throws error when trying to get or set a path that not exists
fixed substorage GM_setValue not working correctly
Default value auto-fill support for setConfig and Config
Config
String path support for makeSubStorage
makeSubStorage
makeSubStorage support
Fixed defaultValue overWriting bug
Added function setDefaults() {}
Fixed CM.Config get not applying defaultValue rules bug
Added GM_storage functions exist check
Support using caller-specific GM_storage functions
Deprecated CM.ConfigBase, provide CM.Config for both reading and writing instead.
ConfigBase support
bug fix: versionkey not added when no updaters existbug fix: false dealing configs with updatersupport: ignores