Skip to content

Commit

Permalink
Update pack formats to 26 (R) / 32 (D)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed Feb 18, 2024
1 parent 19f687f commit 2618e88
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ const START_SNAPSHOTS: Record<string, Record<PackType, FormatResult>> = {
'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 },
}

Expand Down
8 changes: 8 additions & 0 deletions test/pack-formats-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ===

Expand Down

0 comments on commit 2618e88

Please sign in to comment.