diff --git a/web/src/lib/settings/defaults.ts b/web/src/lib/settings/defaults.ts index a4448aaa..1f8ef01b 100644 --- a/web/src/lib/settings/defaults.ts +++ b/web/src/lib/settings/defaults.ts @@ -2,9 +2,10 @@ import { defaultLocale } from "$lib/i18n/translations"; import type { CobaltSettings } from "$lib/types/settings"; const defaultSettings: CobaltSettings = { - schemaVersion: 4, + schemaVersion: 5, advanced: { debug: false, + duck: false, }, appearance: { theme: "auto", diff --git a/web/src/lib/types/settings.ts b/web/src/lib/types/settings.ts index 93958e88..37454183 100644 --- a/web/src/lib/types/settings.ts +++ b/web/src/lib/types/settings.ts @@ -2,14 +2,16 @@ import type { RecursivePartial } from "$lib/types/generic"; import type { CobaltSettingsV2 } from "$lib/types/settings/v2"; import type { CobaltSettingsV3 } from "$lib/types/settings/v3"; import type { CobaltSettingsV4 } from "$lib/types/settings/v4"; +import type { CobaltSettingsV5 } from "$lib/types/settings/v5"; export * from "$lib/types/settings/v2"; export * from "$lib/types/settings/v3"; export * from "$lib/types/settings/v4"; +export * from "$lib/types/settings/v5"; -export type CobaltSettings = CobaltSettingsV4; +export type CobaltSettings = CobaltSettingsV5; -export type AnyCobaltSettings = CobaltSettingsV3 | CobaltSettingsV2 | CobaltSettings; +export type AnyCobaltSettings = CobaltSettingsV4 | CobaltSettingsV3 | CobaltSettingsV2 | CobaltSettings; export type PartialSettings = RecursivePartial; diff --git a/web/src/lib/types/settings/v5.ts b/web/src/lib/types/settings/v5.ts new file mode 100644 index 00000000..fa38b952 --- /dev/null +++ b/web/src/lib/types/settings/v5.ts @@ -0,0 +1,8 @@ +import { type CobaltSettingsV4 } from "$lib/types/settings/v4"; + +export type CobaltSettingsV5 = Omit & { + schemaVersion: 5, + advanced: CobaltSettingsV4['advanced'] & { + duck: boolean; + }; +};