Skip to content

Commit

Permalink
Update pack format data to 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed Aug 6, 2023
1 parent fba900c commit 20ebcaa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Next
- Fixed latest pack format being outdated.
- Updated resource and data pack formats to `16`.

## 1.3.7
*2023-06-11*
- Updated pack format data to 1.20.
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { VersionName, SnapshotName, PackType, FormatResult, VersionsResult } fro

// Data sets //

const LATEST = { resource: 12, data: 10 }
const LATEST = { resource: 16, data: 16 }

const START_RELEASES: Record<VersionName, Record<PackType, FormatResult>> = {
'1.6.x': { resource: 1, data: undefined },
Expand All @@ -18,6 +18,7 @@ const START_RELEASES: Record<VersionName, Record<PackType, FormatResult>> = {
'1.19.3': { resource: 12, data: 10 },
'1.19.4': { resource: 12, data: 12 },
'1.20.x': { resource: 15, data: 15 },
'1.20.2': { resource: 16, data: 16 },
'1.21.x': { resource: undefined, data: undefined },
}

Expand All @@ -43,6 +44,7 @@ const START_SNAPSHOTS: Record<string, Record<PackType, FormatResult>> = {
'23w16a': { resource: 14, data: 14 },
'23w17a': { resource: 15, data: 14 },
'23w18a': { resource: 15, data: 15 },
'23w31a': { resource: 16, data: 16 },
[fauxCurrentSnapshot]: { resource: undefined, data: undefined },
}

Expand Down
2 changes: 2 additions & 0 deletions test/pack-formats-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ Types:
"23w17a" (d) 14
"23w18a" (r) 15
"23w18a" (d) 15
"23w31a" (r) 16
"23w31a" (d) 16

=== Special cases ===

Expand Down

0 comments on commit 20ebcaa

Please sign in to comment.