Skip to content

Commit

Permalink
Update pack formats to 28 (R) / 35 (D)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed Mar 14, 2024
1 parent 2618e88 commit 6c52f20
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +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 resource pack format to `26`.
- Updated data pack format to `32`.
- Updated resource pack format to `28`.
- Updated data pack format to `35`.

## 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 // 32
packFormat.LATEST.data // 35
```

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 @@ -60,6 +60,9 @@ const START_SNAPSHOTS: Record<string, Record<PackType, FormatResult>> = {
'24w05a': { resource: 25, data: 30 },
'24w06a': { resource: 26, data: 31 },
'24w07a': { resource: 26, data: 32 },
'24w09a': { resource: 28, data: 33 },
'24w10a': { resource: 28, data: 34 },
'24w11a': { resource: 29, data: 35 },
[fauxCurrentSnapshot]: { resource: undefined, data: undefined },
}

Expand Down
6 changes: 6 additions & 0 deletions test/pack-formats-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ Types:
"24w06a" (d) 31
"24w07a" (r) 26
"24w07a" (d) 32
"24w09a" (r) 28
"24w09a" (d) 33
"24w10a" (r) 28
"24w10a" (d) 34
"24w11a" (r) 29
"24w11a" (d) 35

=== Special cases ===

Expand Down

0 comments on commit 6c52f20

Please sign in to comment.