Skip to content

Commit 2618e88

Browse files
committed
Update pack formats to 26 (R) / 32 (D)
1 parent 19f687f commit 2618e88

4 files changed

Lines changed: 14 additions & 2 deletions

File tree

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## Next
44
- Changed the CLI result to say 'not present' instead of 'not known' for versions that do not use a pack format.
5-
- Updated data back format to `29`.
5+
- Updated resource pack format to `26`.
6+
- Updated data pack format to `32`.
67

78
## 1.3.12
89
*2024-01-23*

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const packFormat = require('pack-format')
2929
packFormat('1.14.4') // 4
3030
packFormat('1.16.2-pre1', 'resource') // 5
3131
packFormat('20w45a', 'data') // 6
32-
packFormat.LATEST.data // 26
32+
packFormat.LATEST.data // 32
3333
```
3434

3535
Retrieve a list of versions corresponding to a specific `pack_format`, again optionally specifying resource/data pack version.

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ const START_SNAPSHOTS: Record<string, Record<PackType, FormatResult>> = {
5757
'23w51a': { resource: 22, data: 27 },
5858
'24w03a': { resource: 24, data: 28 },
5959
'24w04a': { resource: 24, data: 29 },
60+
'24w05a': { resource: 25, data: 30 },
61+
'24w06a': { resource: 26, data: 31 },
62+
'24w07a': { resource: 26, data: 32 },
6063
[fauxCurrentSnapshot]: { resource: undefined, data: undefined },
6164
}
6265

test/pack-formats-tests.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ Types:
104104
"23w51b" (d) 27
105105
"24w03a" (r) 24
106106
"24w03a" (d) 28
107+
"24w04a" (r) 24
108+
"24w04a" (d) 29
109+
"24w05a" (r) 25
110+
"24w05a" (d) 30
111+
"24w06a" (r) 26
112+
"24w06a" (d) 31
113+
"24w07a" (r) 26
114+
"24w07a" (d) 32
107115

108116
=== Special cases ===
109117

0 commit comments

Comments
 (0)