Replace viper with koanf (#4845)

* Migrate to koanf
* Use temp logger for crashes before config is initialised
* Remove snake case hacks
* Add migration for config file keys
* Add migration note for new migration
* Renamed viper functions
* Remove front-end viper workaround
* Correctly default scan options
This commit is contained in:
WithoutPants
2024-05-21 11:24:47 +10:00
committed by GitHub
parent 0fa71be697
commit bfc60bb23f
17 changed files with 594 additions and 437 deletions

View File

@@ -0,0 +1 @@
This migration corrects the plugin and UI settings in `config.yml` to use `camelCase` instead of `snake_case`. As a result, the migrated file will not be compatible with previous versions of stash. A backup of the current `config.yml` will be created in the same directory with the name `config.yml.57.<date and time>`. The exact filename is written to the log.

View File

@@ -1,9 +1,11 @@
import migration32 from "./32.md";
import migration39 from "./39.md";
import migration48 from "./48.md";
import migration58 from "./58.md";
export const migrationNotes: Record<number, string> = {
32: migration32,
39: migration39,
48: migration48,
58: migration58,
};