Skip to content

Commit 4198723

Browse files
committed
Update pack formats to 49 (R) / 64 (D)
1 parent 3304672 commit 4198723

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
# Changelog
22

3+
## Next
4+
- Updated resource pack format to `49`.
5+
- Updated data pack format to `64`.
6+
37
## 1.4.0
48
- Added `release` and `snapshot` to exported object `LATEST` which denotes the latest known released versions.
59
- Changed output of `getVersions` to return `null` instead of `''` when a version is not present.
610
- Changed output of `getVersions` to replace '`.x`' with the actual game version.
711
- Changed CLI output of `--list` to present the versions in prose instead of JSON.
812
- Changed CLI output to display a basic message when no arguments are given.
913
- Changed CLI help message.
14+
- Updated resource pack format to `43`.
15+
- Updated data pack format to `58`.
1016

1117
## 1.3.16
1218
- Updated resource pack format to `36`.

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const packFormat = require('pack-format')
3131
packFormat('1.14.4') // 4
3232
packFormat('1.16.2-pre1', 'resource') // 5
3333
packFormat('20w45a', 'data') // 6
34-
packFormat.LATEST.data // 58
35-
packFormat.LATEST.version // 1.21.2
34+
packFormat.LATEST.data // 64
35+
packFormat.LATEST.version // 1.21.4
3636
```
3737

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

src/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const START_RELEASES: Record<VersionName, Record<PackType, FormatResult>> = {
3333
'1.20.6': { resource: 32, data: 41 },
3434
'1.21': { resource: 34, data: 48 },
3535
'1.21.2': { resource: 42, data: 57 },
36+
'1.21.4': { resource: 46, data: 61 },
37+
'1.21.5': { resource: undefined, data: undefined },
3638
'1.22.x': { resource: undefined, data: undefined },
3739
}
3840
const START_SNAPSHOTS: Record<string, Record<PackType, FormatResult>> = {
@@ -89,9 +91,14 @@ const START_SNAPSHOTS: Record<string, Record<PackType, FormatResult>> = {
8991
'24w39a': { resource: 39, data: 55 },
9092
'24w40a': { resource: 40, data: 56 },
9193
'24w44a': { resource: 43, data: 58 },
94+
'24w45a': { resource: 44, data: 59 },
95+
'24w46a': { resource: 45, data: 60 },
96+
'25w02a': { resource: 47, data: 62 },
97+
'25w03a': { resource: 48, data: 63 },
98+
'25w04a': { resource: 49, data: 64 },
9299

93100
// The below should be the last released snapshot + 1 week
94-
['24w45a']: { resource: undefined, data: undefined },
101+
['25w05a']: { resource: undefined, data: undefined },
95102
}
96103

97104
const SPECIAL: Record<PackType, Record<number, string[]>> = {
@@ -120,6 +127,7 @@ const SPECIAL: Record<PackType, Record<number, string[]>> = {
120127
47: ['1.21-pre2'],
121128
48: ['1.21-pre3'],
122129
57: ['1.21.2-pre'],
130+
60: ['1.21.4-pre1'],
123131
},
124132
}
125133

test/pack-formats-tests.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ Types:
4747
"1.21.1" (r,d) 34,48
4848
"1.21.2" (r,d) 42,57
4949
"1.21.3" (r,d) 42,57
50+
"1.21.4" (r,d) 46,61
51+
"1.21.5" (r) none
52+
"1.22" (d) none
5053

5154
=== Pre-releases ===
5255

@@ -81,6 +84,9 @@ Types:
8184
"1.21.2-pre3" (r,d) 42,57
8285
"1.21.2-rc1" (r,d) 42,57
8386
"1.21.2-rc2" (r,d) 42,57
87+
"1.21.4-pre1" (r,d) 46,60
88+
"1.21.4-pre2" (r,d) 46,61
89+
"1.21.4-rc1" (r,d) 46,61
8490

8591
=== Snapshots ===
8692

@@ -139,6 +145,8 @@ Types:
139145
"24w39a" (r,d) 39,55
140146
"24w40a" (r,d) 40,56
141147
"24w44a" (r,d) 43,58
148+
"24w45a" (r,d) 44,59
149+
"24w46a" (r,d) 45,60
142150

143151
=== Special cases ===
144152

0 commit comments

Comments
 (0)