misc: restore <0.19.4 support

This commit is contained in:
Xylight committed 2024-07-20 14:46:57 -07:00
1 parent 7305ee6e0c
commit 8785172ae5
3 files changed
+35 -27

No files matched your search

+3 -1
View File
@@ -9,6 +9,8 @@ const FEATURES = {
hidePosts: '0.19.4',
altText: '0.19.4',
customThumbnail: '0.19.4',
mediaAndVotes: '0.19.4',
distinguishComments: '0.19.4',
}
type Feature = keyof typeof FEATURES
@@ -19,7 +21,7 @@ type Feature = keyof typeof FEATURES
export const feature = (feature: Feature, version: string = '0.0.0'): boolean =>
versionIsSupported(version, FEATURES[feature])
export const MINIMUM_VERSION = '0.19.4'
export const MINIMUM_VERSION = '0.19.0'
export const MAXIMUM_VERSION = '0.999'
export const versionIsSupported = (v: string, minimum: string) => {