Skip to content

Commit bf10308

Browse files
committed
1.4.1
1 parent 4198723 commit bf10308

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Changelog
22

3-
## Next
3+
## 1.4.1
4+
*2025-01-27*
5+
- Changed future minor releases to have undefined pack formats instead of having earlier releases' formats fall through.
46
- Updated resource pack format to `49`.
57
- Updated data pack format to `64`.
68

79
## 1.4.0
10+
*2024-11-03*
811
- Added `release` and `snapshot` to exported object `LATEST` which denotes the latest known released versions.
912
- Changed output of `getVersions` to return `null` instead of `''` when a version is not present.
1013
- Changed output of `getVersions` to replace '`.x`' with the actual game version.
@@ -15,6 +18,7 @@
1518
- Updated data pack format to `58`.
1619

1720
## 1.3.16
21+
*2024-08-24*
1822
- Updated resource pack format to `36`.
1923
- Updated data pack format to `50`.
2024
- Fixed special case checking not being applied to full version names leading to no result for certain versions.

license.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ISC License
22

3-
Copyright © Nixinova 2021–2024
3+
Copyright © Nixinova 2021–2025
44

55
Permission to use, copy, modify, and/or distribute this software for any
66
purpose with or without fee is hereby granted, provided that the above

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pack-format",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Returns the pack_format of any Minecraft version, including snapshots",
55
"scripts": {
66
"prepublish": "tsc",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ Resource pack format of 1.16.2-pre1 is 5
6868
Data pack format of 20w45a is 6
6969

7070
> pack-format --list --resource 3
71-
{ releases: { min: '1.11.x', max: '1.12.x' }, snapshots: { min: '16w32a', max: '17w47a' } }
71+
A resource pack format of 3 is used for 1.111.12.2 (16w32a17w47a)
7272
```

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { VersionName, SnapshotName, PackType, FormatResult, VersionsResult } fro
99
const HIGHEST_MINORS: number[] = [
1010
/*1.0*/0, /*1.1*/0, /*1.2*/5, /*1.3*/2, /*1.4*/7, /*1.5*/2, /*1.6*/4, /*1.7*/10, /*1.8*/9, /*1.9*/4,
1111
/*1.10*/2, /*1.11*/2, /*1.12*/2, /*1.13*/2, /*1.14*/4, /*1.15*/2, /*1.16*/5, /*1.17*/1, /*1.18*/2, /*1.19*/2,
12-
/*1.20*/6, /*1.21*/3,
12+
/*1.20*/6, /*1.21*/5,
1313
]
1414

1515
const START_RELEASES: Record<VersionName, Record<PackType, FormatResult>> = {
@@ -34,6 +34,7 @@ const START_RELEASES: Record<VersionName, Record<PackType, FormatResult>> = {
3434
'1.21': { resource: 34, data: 48 },
3535
'1.21.2': { resource: 42, data: 57 },
3636
'1.21.4': { resource: 46, data: 61 },
37+
// future versions: return undefined
3738
'1.21.5': { resource: undefined, data: undefined },
3839
'1.22.x': { resource: undefined, data: undefined },
3940
}

0 commit comments

Comments
 (0)