Skip to content

Commit 108bc15

Browse files
committed
Add 1.21.6 and set default to 1.21.5
1 parent 474b2df commit 108bc15

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
gtag('config', 'G-S982VZS08T', {
1111
send_page_view: false,
1212
theme: localStorage.getItem('theme') || 'default',
13-
version: localStorage.getItem('schema_version') || '1.21.2',
13+
version: localStorage.getItem('schema_version') || '1.21.5',
1414
locale: localStorage.getItem('language') || 'en',
1515
prefers_color_scheme: matchMedia('(prefers-color-scheme: light)').matches ? 'light' : matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'none',
1616
tree_view_mode: localStorage.getItem('misode_tree_view_mode') || 'default',

src/app/services/Versions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import config from '../Config.js'
22

3-
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3', '1.19.4', '1.20', '1.20.2', '1.20.3', '1.20.5', '1.21', '1.21.2', '1.21.4', '1.21.5'] as const
3+
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3', '1.19.4', '1.20', '1.20.2', '1.20.3', '1.20.5', '1.21', '1.21.2', '1.21.4', '1.21.5', '1.21.6'] as const
44
export type VersionId = typeof VersionIds[number]
55

6-
export const DEFAULT_VERSION: VersionId = '1.21.4'
6+
export const DEFAULT_VERSION: VersionId = '1.21.5'
77

88
export function checkVersion(versionId: string, minVersionId: string | undefined, maxVersionId?: string) {
99
const version = config.versions.findIndex(v => v.id === versionId)

src/config.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,13 @@
144144
"id": "1.20.3",
145145
"ref": "1.20.4",
146146
"name": "1.20.3 — 1.20.4",
147-
"pack_format": 26,
148-
"show": true
147+
"pack_format": 26
149148
},
150149
{
151150
"id": "1.20.5",
152151
"ref": "1.20.6",
153152
"name": "1.20.5 — 1.20.6",
154-
"pack_format": 41,
155-
"show": true
153+
"pack_format": 41
156154
},
157155
{
158156
"id": "1.21",
@@ -165,8 +163,7 @@
165163
"id": "1.21.2",
166164
"ref": "1.21.3",
167165
"name": "1.21.2 — 1.21.3",
168-
"pack_format": 57,
169-
"show": true
166+
"pack_format": 57
170167
},
171168
{
172169
"id": "1.21.4",
@@ -179,7 +176,14 @@
179176
"id": "1.21.5",
180177
"ref": "1.21.5",
181178
"name": "1.21.5",
182-
"pack_format": 62,
179+
"pack_format": 71,
180+
"show": true
181+
},
182+
{
183+
"id": "1.21.6",
184+
"dynamic": true,
185+
"name": "1.21.6",
186+
"pack_format": 72,
183187
"show": true
184188
}
185189
],

0 commit comments

Comments
 (0)