Update spyglass and add 1.21.11 support

This commit is contained in:
Misode
2025-10-20 02:01:08 +02:00
parent 9c1ed06096
commit 7e42d13ac1
5 changed files with 101 additions and 94 deletions

View File

@@ -10,7 +10,7 @@
gtag('config', 'G-S982VZS08T', { gtag('config', 'G-S982VZS08T', {
send_page_view: false, send_page_view: false,
theme: localStorage.getItem('theme') || 'default', theme: localStorage.getItem('theme') || 'default',
version: localStorage.getItem('schema_version') || '1.21.6', version: localStorage.getItem('schema_version') || '1.21.9',
locale: localStorage.getItem('language') || 'en', locale: localStorage.getItem('language') || 'en',
prefers_color_scheme: matchMedia('(prefers-color-scheme: light)').matches ? 'light' : matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'none', prefers_color_scheme: matchMedia('(prefers-color-scheme: light)').matches ? 'light' : matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'none',
tree_view_mode: localStorage.getItem('misode_tree_view_mode') || 'default', tree_view_mode: localStorage.getItem('misode_tree_view_mode') || 'default',

164
package-lock.json generated
View File

@@ -10,12 +10,12 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@giscus/react": "^2.2.3", "@giscus/react": "^2.2.3",
"@spyglassmc/core": "^0.4.33", "@spyglassmc/core": "^0.4.37",
"@spyglassmc/java-edition": "^0.3.44", "@spyglassmc/java-edition": "^0.3.49",
"@spyglassmc/json": "^0.3.37", "@spyglassmc/json": "^0.3.41",
"@spyglassmc/locales": "^0.3.17", "@spyglassmc/locales": "^0.3.19",
"@spyglassmc/mcdoc": "^0.3.37", "@spyglassmc/mcdoc": "^0.3.41",
"@spyglassmc/nbt": "^0.3.38", "@spyglassmc/nbt": "^0.3.43",
"@zip.js/zip.js": "^2.4.5", "@zip.js/zip.js": "^2.4.5",
"brace": "^0.11.1", "brace": "^0.11.1",
"buffer": "^6.0.3", "buffer": "^6.0.3",
@@ -1293,11 +1293,11 @@
] ]
}, },
"node_modules/@spyglassmc/core": { "node_modules/@spyglassmc/core": {
"version": "0.4.33", "version": "0.4.37",
"resolved": "https://registry.npmjs.org/@spyglassmc/core/-/core-0.4.33.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/core/-/core-0.4.37.tgz",
"integrity": "sha512-nzq7oILxzHWogRF4OmYp/fkI0B3R/uNAEQWjDivGT0NrRNmg0V9Rq60lKPBk+ejZ0FwhWec2c5rMfhfaO3Lj1g==", "integrity": "sha512-rEN9JmoqgTeSJDM3PoueyhVK09Gn4rXsgRAPXMUBtmPLnx9eFTwuMDFRhYzg3lahS1YPYdqg0e+08eRNBEevyA==",
"dependencies": { "dependencies": {
"@spyglassmc/locales": "0.3.17", "@spyglassmc/locales": "0.3.19",
"base64-arraybuffer": "^1.0.2", "base64-arraybuffer": "^1.0.2",
"binary-search": "^1.3.6", "binary-search": "^1.3.6",
"chokidar": "^3.5.2", "chokidar": "^3.5.2",
@@ -1322,59 +1322,59 @@
} }
}, },
"node_modules/@spyglassmc/java-edition": { "node_modules/@spyglassmc/java-edition": {
"version": "0.3.44", "version": "0.3.49",
"resolved": "https://registry.npmjs.org/@spyglassmc/java-edition/-/java-edition-0.3.44.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/java-edition/-/java-edition-0.3.49.tgz",
"integrity": "sha512-6PEEDFv176lBKQNnGMThGhT9/rnIkhIh/q1KD6+efoiZT4PnkzosTGYjet74lhR6oqnLdzmb8iJUZuXU7myPcw==", "integrity": "sha512-Y8dbNxmjs3AVDfEStvu8eGeJnF9X4fXHYeh0NBbnxHEpKLi9B1DJ0/msom681yEOEDQMb2E/HEeAG1zLqn15Og==",
"dependencies": { "dependencies": {
"@spyglassmc/core": "0.4.33", "@spyglassmc/core": "0.4.37",
"@spyglassmc/json": "0.3.37", "@spyglassmc/json": "0.3.41",
"@spyglassmc/locales": "0.3.17", "@spyglassmc/locales": "0.3.19",
"@spyglassmc/mcdoc": "0.3.37", "@spyglassmc/mcdoc": "0.3.41",
"@spyglassmc/mcfunction": "0.2.36", "@spyglassmc/mcfunction": "0.2.40",
"@spyglassmc/nbt": "0.3.38" "@spyglassmc/nbt": "0.3.43"
} }
}, },
"node_modules/@spyglassmc/json": { "node_modules/@spyglassmc/json": {
"version": "0.3.37", "version": "0.3.41",
"resolved": "https://registry.npmjs.org/@spyglassmc/json/-/json-0.3.37.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/json/-/json-0.3.41.tgz",
"integrity": "sha512-W2G8lFb59vD2n+q7mfkivgtCqBC5gWmjU18K5vFeV144nBiyP2poc9AI4pnh24PkbxMH33ML58Q1AsT0uiNNZQ==", "integrity": "sha512-uYD4nMf/BkclDrZDliWMg955LJgFLIkh6APa64lBh630C6ZIYaQtXv5zqjmMHCY3S6MkYEAn4Fcu3GmBdW90jQ==",
"dependencies": { "dependencies": {
"@spyglassmc/core": "0.4.33", "@spyglassmc/core": "0.4.37",
"@spyglassmc/locales": "0.3.17", "@spyglassmc/locales": "0.3.19",
"@spyglassmc/mcdoc": "0.3.37" "@spyglassmc/mcdoc": "0.3.41"
} }
}, },
"node_modules/@spyglassmc/locales": { "node_modules/@spyglassmc/locales": {
"version": "0.3.17", "version": "0.3.19",
"resolved": "https://registry.npmjs.org/@spyglassmc/locales/-/locales-0.3.17.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/locales/-/locales-0.3.19.tgz",
"integrity": "sha512-4FHGR/r+rqZhxQazJINTkgsYduh1mB1P9wZpjM0I0pwq8Fv/gy/Ud+iaGAq034juPC7CAf58KfyzlnMDCYpnWw==" "integrity": "sha512-6n/O3G9INueV5L10g3nCuNBiMHGhCZ0g0q00sc9EJOYodejg01mzaz+w1rOLEYpiZ31Ri3f25faq5h8uI9AisA=="
}, },
"node_modules/@spyglassmc/mcdoc": { "node_modules/@spyglassmc/mcdoc": {
"version": "0.3.37", "version": "0.3.41",
"resolved": "https://registry.npmjs.org/@spyglassmc/mcdoc/-/mcdoc-0.3.37.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/mcdoc/-/mcdoc-0.3.41.tgz",
"integrity": "sha512-QavnWCyT/LWZ5dhc+/rOV1zrHHBbYyVGCwTsMBcBQW/C3yYKHFEKkLGhl27OVrG4G4gh83AmREaL1L+DtWqRaw==", "integrity": "sha512-iPm1I3VFmoyfGOKgGPFUoSsA53MOw8DMbhb4lHZWWwa0SNJYS8+y1r02Qv29ZHrj6Si0w46A7//9z+0HaBQ/TA==",
"dependencies": { "dependencies": {
"@spyglassmc/core": "0.4.33", "@spyglassmc/core": "0.4.37",
"@spyglassmc/locales": "0.3.17" "@spyglassmc/locales": "0.3.19"
} }
}, },
"node_modules/@spyglassmc/mcfunction": { "node_modules/@spyglassmc/mcfunction": {
"version": "0.2.36", "version": "0.2.40",
"resolved": "https://registry.npmjs.org/@spyglassmc/mcfunction/-/mcfunction-0.2.36.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/mcfunction/-/mcfunction-0.2.40.tgz",
"integrity": "sha512-IpsnHiSNQmD6YRWCX3XSlNBgexgJc3xJyTSryFXoNR9pWoGwVPLl6Gz+BdjJXTN5oPMdOg4R7yKLtkTFAx/AZA==", "integrity": "sha512-0kAGFA8imPMsygQxtrE4Fbm5fefFS21OaetKYjeomFBMNHossxzsL6MjPt0G81euTHIwKNY3i9eOsDe05XyKlA==",
"dependencies": { "dependencies": {
"@spyglassmc/core": "0.4.33", "@spyglassmc/core": "0.4.37",
"@spyglassmc/locales": "0.3.17" "@spyglassmc/locales": "0.3.19"
} }
}, },
"node_modules/@spyglassmc/nbt": { "node_modules/@spyglassmc/nbt": {
"version": "0.3.38", "version": "0.3.43",
"resolved": "https://registry.npmjs.org/@spyglassmc/nbt/-/nbt-0.3.38.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/nbt/-/nbt-0.3.43.tgz",
"integrity": "sha512-FetOBmCn3pNdoTYOBBpUPkuVHZHLgiaMvaLAcc5s3Y+hZXN1+awYduHzNlFNCEmibhvAa4f0WxadhBPPPuHGBQ==", "integrity": "sha512-NbTMLgSZVqcEXltk4sKwIlqN4jr13GwvLly9FGsT6j5DwtJPRy0UxKU+93lD26JdUwEKGrE3WyoKpw3e57jQiw==",
"dependencies": { "dependencies": {
"@spyglassmc/core": "0.4.33", "@spyglassmc/core": "0.4.37",
"@spyglassmc/locales": "0.3.17", "@spyglassmc/locales": "0.3.19",
"@spyglassmc/mcdoc": "0.3.37" "@spyglassmc/mcdoc": "0.3.41"
} }
}, },
"node_modules/@types/diff": { "node_modules/@types/diff": {
@@ -5899,11 +5899,11 @@
"optional": true "optional": true
}, },
"@spyglassmc/core": { "@spyglassmc/core": {
"version": "0.4.33", "version": "0.4.37",
"resolved": "https://registry.npmjs.org/@spyglassmc/core/-/core-0.4.33.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/core/-/core-0.4.37.tgz",
"integrity": "sha512-nzq7oILxzHWogRF4OmYp/fkI0B3R/uNAEQWjDivGT0NrRNmg0V9Rq60lKPBk+ejZ0FwhWec2c5rMfhfaO3Lj1g==", "integrity": "sha512-rEN9JmoqgTeSJDM3PoueyhVK09Gn4rXsgRAPXMUBtmPLnx9eFTwuMDFRhYzg3lahS1YPYdqg0e+08eRNBEevyA==",
"requires": { "requires": {
"@spyglassmc/locales": "0.3.17", "@spyglassmc/locales": "0.3.19",
"base64-arraybuffer": "^1.0.2", "base64-arraybuffer": "^1.0.2",
"binary-search": "^1.3.6", "binary-search": "^1.3.6",
"chokidar": "^3.5.2", "chokidar": "^3.5.2",
@@ -5924,59 +5924,59 @@
} }
}, },
"@spyglassmc/java-edition": { "@spyglassmc/java-edition": {
"version": "0.3.44", "version": "0.3.49",
"resolved": "https://registry.npmjs.org/@spyglassmc/java-edition/-/java-edition-0.3.44.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/java-edition/-/java-edition-0.3.49.tgz",
"integrity": "sha512-6PEEDFv176lBKQNnGMThGhT9/rnIkhIh/q1KD6+efoiZT4PnkzosTGYjet74lhR6oqnLdzmb8iJUZuXU7myPcw==", "integrity": "sha512-Y8dbNxmjs3AVDfEStvu8eGeJnF9X4fXHYeh0NBbnxHEpKLi9B1DJ0/msom681yEOEDQMb2E/HEeAG1zLqn15Og==",
"requires": { "requires": {
"@spyglassmc/core": "0.4.33", "@spyglassmc/core": "0.4.37",
"@spyglassmc/json": "0.3.37", "@spyglassmc/json": "0.3.41",
"@spyglassmc/locales": "0.3.17", "@spyglassmc/locales": "0.3.19",
"@spyglassmc/mcdoc": "0.3.37", "@spyglassmc/mcdoc": "0.3.41",
"@spyglassmc/mcfunction": "0.2.36", "@spyglassmc/mcfunction": "0.2.40",
"@spyglassmc/nbt": "0.3.38" "@spyglassmc/nbt": "0.3.43"
} }
}, },
"@spyglassmc/json": { "@spyglassmc/json": {
"version": "0.3.37", "version": "0.3.41",
"resolved": "https://registry.npmjs.org/@spyglassmc/json/-/json-0.3.37.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/json/-/json-0.3.41.tgz",
"integrity": "sha512-W2G8lFb59vD2n+q7mfkivgtCqBC5gWmjU18K5vFeV144nBiyP2poc9AI4pnh24PkbxMH33ML58Q1AsT0uiNNZQ==", "integrity": "sha512-uYD4nMf/BkclDrZDliWMg955LJgFLIkh6APa64lBh630C6ZIYaQtXv5zqjmMHCY3S6MkYEAn4Fcu3GmBdW90jQ==",
"requires": { "requires": {
"@spyglassmc/core": "0.4.33", "@spyglassmc/core": "0.4.37",
"@spyglassmc/locales": "0.3.17", "@spyglassmc/locales": "0.3.19",
"@spyglassmc/mcdoc": "0.3.37" "@spyglassmc/mcdoc": "0.3.41"
} }
}, },
"@spyglassmc/locales": { "@spyglassmc/locales": {
"version": "0.3.17", "version": "0.3.19",
"resolved": "https://registry.npmjs.org/@spyglassmc/locales/-/locales-0.3.17.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/locales/-/locales-0.3.19.tgz",
"integrity": "sha512-4FHGR/r+rqZhxQazJINTkgsYduh1mB1P9wZpjM0I0pwq8Fv/gy/Ud+iaGAq034juPC7CAf58KfyzlnMDCYpnWw==" "integrity": "sha512-6n/O3G9INueV5L10g3nCuNBiMHGhCZ0g0q00sc9EJOYodejg01mzaz+w1rOLEYpiZ31Ri3f25faq5h8uI9AisA=="
}, },
"@spyglassmc/mcdoc": { "@spyglassmc/mcdoc": {
"version": "0.3.37", "version": "0.3.41",
"resolved": "https://registry.npmjs.org/@spyglassmc/mcdoc/-/mcdoc-0.3.37.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/mcdoc/-/mcdoc-0.3.41.tgz",
"integrity": "sha512-QavnWCyT/LWZ5dhc+/rOV1zrHHBbYyVGCwTsMBcBQW/C3yYKHFEKkLGhl27OVrG4G4gh83AmREaL1L+DtWqRaw==", "integrity": "sha512-iPm1I3VFmoyfGOKgGPFUoSsA53MOw8DMbhb4lHZWWwa0SNJYS8+y1r02Qv29ZHrj6Si0w46A7//9z+0HaBQ/TA==",
"requires": { "requires": {
"@spyglassmc/core": "0.4.33", "@spyglassmc/core": "0.4.37",
"@spyglassmc/locales": "0.3.17" "@spyglassmc/locales": "0.3.19"
} }
}, },
"@spyglassmc/mcfunction": { "@spyglassmc/mcfunction": {
"version": "0.2.36", "version": "0.2.40",
"resolved": "https://registry.npmjs.org/@spyglassmc/mcfunction/-/mcfunction-0.2.36.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/mcfunction/-/mcfunction-0.2.40.tgz",
"integrity": "sha512-IpsnHiSNQmD6YRWCX3XSlNBgexgJc3xJyTSryFXoNR9pWoGwVPLl6Gz+BdjJXTN5oPMdOg4R7yKLtkTFAx/AZA==", "integrity": "sha512-0kAGFA8imPMsygQxtrE4Fbm5fefFS21OaetKYjeomFBMNHossxzsL6MjPt0G81euTHIwKNY3i9eOsDe05XyKlA==",
"requires": { "requires": {
"@spyglassmc/core": "0.4.33", "@spyglassmc/core": "0.4.37",
"@spyglassmc/locales": "0.3.17" "@spyglassmc/locales": "0.3.19"
} }
}, },
"@spyglassmc/nbt": { "@spyglassmc/nbt": {
"version": "0.3.38", "version": "0.3.43",
"resolved": "https://registry.npmjs.org/@spyglassmc/nbt/-/nbt-0.3.38.tgz", "resolved": "https://registry.npmjs.org/@spyglassmc/nbt/-/nbt-0.3.43.tgz",
"integrity": "sha512-FetOBmCn3pNdoTYOBBpUPkuVHZHLgiaMvaLAcc5s3Y+hZXN1+awYduHzNlFNCEmibhvAa4f0WxadhBPPPuHGBQ==", "integrity": "sha512-NbTMLgSZVqcEXltk4sKwIlqN4jr13GwvLly9FGsT6j5DwtJPRy0UxKU+93lD26JdUwEKGrE3WyoKpw3e57jQiw==",
"requires": { "requires": {
"@spyglassmc/core": "0.4.33", "@spyglassmc/core": "0.4.37",
"@spyglassmc/locales": "0.3.17", "@spyglassmc/locales": "0.3.19",
"@spyglassmc/mcdoc": "0.3.37" "@spyglassmc/mcdoc": "0.3.41"
} }
}, },
"@types/diff": { "@types/diff": {

View File

@@ -16,12 +16,12 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@giscus/react": "^2.2.3", "@giscus/react": "^2.2.3",
"@spyglassmc/core": "^0.4.33", "@spyglassmc/core": "^0.4.37",
"@spyglassmc/java-edition": "^0.3.44", "@spyglassmc/java-edition": "^0.3.49",
"@spyglassmc/json": "^0.3.37", "@spyglassmc/json": "^0.3.41",
"@spyglassmc/locales": "^0.3.17", "@spyglassmc/locales": "^0.3.19",
"@spyglassmc/mcdoc": "^0.3.37", "@spyglassmc/mcdoc": "^0.3.41",
"@spyglassmc/nbt": "^0.3.38", "@spyglassmc/nbt": "^0.3.43",
"@zip.js/zip.js": "^2.4.5", "@zip.js/zip.js": "^2.4.5",
"brace": "^0.11.1", "brace": "^0.11.1",
"buffer": "^6.0.3", "buffer": "^6.0.3",

View File

@@ -1,9 +1,9 @@
import config from '../Config.js' import config from '../Config.js'
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', '1.21.9'] as const 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', '1.21.9', '1.21.11'] as const
export type VersionId = typeof VersionIds[number] export type VersionId = typeof VersionIds[number]
export const DEFAULT_VERSION: VersionId = '1.21.6' export const DEFAULT_VERSION: VersionId = '1.21.9'
export function checkVersion(versionId: string, minVersionId: string | undefined, maxVersionId?: string) { export function checkVersion(versionId: string, minVersionId: string | undefined, maxVersionId?: string) {
const version = config.versions.findIndex(v => v.id === versionId) const version = config.versions.findIndex(v => v.id === versionId)

View File

@@ -191,16 +191,23 @@
}, },
{ {
"id": "1.21.6", "id": "1.21.6",
"ref": "1.21.7", "ref": "1.21.8",
"name": "1.21.6 — 1.21.8", "name": "1.21.6 — 1.21.8",
"pack_format": 81, "pack_format": 81,
"show": true "show": true
}, },
{ {
"id": "1.21.9", "id": "1.21.9",
"ref": "1.21.10",
"name": "1.21.9 — 1.21.10",
"pack_format": 88,
"show": true
},
{
"id": "1.21.11",
"dynamic": true, "dynamic": true,
"name": "1.21.9", "name": "1.21.11",
"pack_format": 83, "pack_format": 90,
"show": true "show": true
} }
], ],