Skip to content

Commit cda62a5

Browse files
committed
Update pack formats to 18
1 parent 79a18f9 commit cda62a5

5 files changed

Lines changed: 8 additions & 3 deletions

File tree

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## Next
4+
- Updated resource and data pack formats to `18`.
5+
36
## 1.3.9
47
*2023-08-10*
58
- Changed the CLI output to display both resource and data pack formats on separate lines when no type is specified.

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 // 10
32+
packFormat.LATEST.data // 18
3333
```
3434

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

src/cli.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ else if (args.list) {
7373
}
7474
// List the latest pack formats
7575
else if (args.latest) {
76-
const type = args.data ? 'data' : args.resource ? 'resource' : ''
7776
if (!args.resource) {
7877
console.log(`The latest data pack format version is ${LATEST.data}.`)
7978
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const START_RELEASES: Record<VersionName, Record<PackType, FormatResult>> = {
1616
'1.19.3': { resource: 12, data: 10 },
1717
'1.19.4': { resource: 12, data: 12 },
1818
'1.20.x': { resource: 15, data: 15 },
19-
'1.20.2': { resource: 17, data: 17 },
19+
'1.20.2': { resource: 18, data: 18 },
2020
'1.21.x': { resource: undefined, data: undefined },
2121
}
2222

test/pack-formats-tests.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,16 @@ Types:
3737
"1.19.4" (d) 12
3838
"1.19.4" (r) 12
3939
"1.20" (r) 15
40+
"1.20.1" (r) 15
41+
"1.20.2" (d) 18
4042

4143
=== Pre-releases ===
4244

4345
"1.16.2-pre1" (-) 5
4446
"1.16.2 pre1" (-) 5
4547
"1.16.2 pre-release 1" (-) 5
4648
"1.19.4-pre1" (r) 13
49+
"1.20.2-pre1" (d) 18
4750

4851
=== Snapshots ===
4952

0 commit comments

Comments
 (0)