diff --git a/changelog.md b/changelog.md index e4e6329..3eafa82 100644 --- a/changelog.md +++ b/changelog.md @@ -2,7 +2,8 @@ ## Next - Changed the CLI result to say 'not present' instead of 'not known' for versions that do not use a pack format. -- Updated data back format to `29`. +- Updated resource pack format to `26`. +- Updated data pack format to `32`. ## 1.3.12 *2024-01-23* diff --git a/readme.md b/readme.md index 4f077f2..48b5317 100644 --- a/readme.md +++ b/readme.md @@ -29,7 +29,7 @@ const packFormat = require('pack-format') packFormat('1.14.4') // 4 packFormat('1.16.2-pre1', 'resource') // 5 packFormat('20w45a', 'data') // 6 -packFormat.LATEST.data // 26 +packFormat.LATEST.data // 32 ``` Retrieve a list of versions corresponding to a specific `pack_format`, again optionally specifying resource/data pack version. diff --git a/src/index.ts b/src/index.ts index df2a5a5..d7e4127 100644 --- a/src/index.ts +++ b/src/index.ts @@ -57,6 +57,9 @@ const START_SNAPSHOTS: Record> = { '23w51a': { resource: 22, data: 27 }, '24w03a': { resource: 24, data: 28 }, '24w04a': { resource: 24, data: 29 }, + '24w05a': { resource: 25, data: 30 }, + '24w06a': { resource: 26, data: 31 }, + '24w07a': { resource: 26, data: 32 }, [fauxCurrentSnapshot]: { resource: undefined, data: undefined }, } diff --git a/test/pack-formats-tests.txt b/test/pack-formats-tests.txt index f31ab46..78e6a28 100644 --- a/test/pack-formats-tests.txt +++ b/test/pack-formats-tests.txt @@ -104,6 +104,14 @@ Types: "23w51b" (d) 27 "24w03a" (r) 24 "24w03a" (d) 28 +"24w04a" (r) 24 +"24w04a" (d) 29 +"24w05a" (r) 25 +"24w05a" (d) 30 +"24w06a" (r) 26 +"24w06a" (d) 31 +"24w07a" (r) 26 +"24w07a" (d) 32 === Special cases ===