- Added
release
andsnapshot
to exported objectLATEST
which denotes the latest known released versions. - Changed output of
getVersions
to returnnull
instead of''
when a version is not present. - Changed output of
getVersions
to replace '.x
' with the actual game version. - Changed CLI output of
--list
to present the versions in prose instead of JSON. - Changed CLI output to display a basic message when no arguments are given.
- Changed CLI help message.
- Updated resource pack format to
36
. - Updated data pack format to
50
. - Fixed special case checking not being applied to full version names leading to no result for certain versions.
2024-05-12
- Updated resource pack format to
32
. - Updated data pack format to
42
.
2024-04-15
- Updated resource pack format to
31
. - Updated data pack format to
39
. - Fixed data pack format for 24w12a and 24w13a.
2024-03-15
- 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
28
. - Updated data pack format to
35
.
2024-01-23
- Changed the CLI result to say 'not known' instead of 'undefined' for versions without associated pack formats.
- Fixed the result of
--latest
not always returning the very latest version. - Updated resource pack format to
24
. - Updated data pack format to
28
.
2024-01-03
- Fixed incorrect maximum versions being returned in the output of
--list
. - Fixed snapshots being incorrectly formatted in the output of
--list
.
2024-01-01
- Updated resource and data pack formats to
18
.
2023-08-10
- Changed the CLI output to display both resource and data pack formats on separate lines when no type is specified.
- Updated resource and data pack formats to
17
.
2023-08-06
- Fixed latest pack format being outdated.
- Updated resource and data pack formats to
16
.
2023-06-11
- Updated pack format data to 1.20.
2023-04-28
- Updated data pack format to
14
. - Updated resource pack format to
15
.
2023-04-06
- Updated data pack format to
13
. - Updated resource pack format to
14
.
2022-11-13
- Fixed
--list
CLI option not working. - Updated pack format data to 1.19.3.
2022-06-13
- Added an error message when using
--list
without providing a pack format. - Changed CLI arguments to be parsed in a more intuitive order.
- Updated pack format data to 1.19.
2022-03-17
- Changed
--latest
output to display both resource and data pack formats instead of just the highest one. - Changed
--list
output to have an explanatory header line. - Updated resource pack format to
9
. - Updated data pack format to
10
.
2022-02-19
- Fixed a crash occurring when malformed snapshot versions are inputted.
- Fixed snapshot versions not returning results when the final letter is missing.
- Updated data pack format to
9
.
2021-10-05
- Added function
getPackFormats(version: string): object
to retrieve both the resource and data pack formats of a given version. - Changed the default CLI command to show both pack formats if the type is unspecified instead of defaulting to the resource pack format.
2021-10-03
- Changed CLI arguments
--help
and--version
to override other arguments. - Fixed CLI argument
--version
not returning the current version. - Fixed command-line usage not working.
2021-10-03
- Fixed snapshots appearing malformed when using
getVersions()
. - Fixed incorrect maximum snapshot data being listed when using
getVersions()
. - Updated resource pack format to
8
.
2021-09-23
- Fixed
getVersions()
returning invalid snapshots. - Fixed 1.18 snapshot resource pack versions being
8
instead of7
.
2021-09-16
- Fixed CLI usage not working.
2021-09-16
- Updated
LATEST
pack formats to8
. - Changed CLI argument parsing to no longer require a fixed argument order.
2021-09-16
- Updated to support 1.18 snapshots.
2021-07-23
- Added support for Combat Test snapshots.
- Updated to support 1.18 experimental snapshots.
2021-04-06
- Added constant
LATEST
which returns the latestpack_format
for both resource and data pack formats. - Added type definitions to package.
- Fixed the automatically-generated current snapshot not working for single-digit weeks.
- Fixed
getVersions()
sometimes returning invalid maximum versions. - Fixed
getVersions()
crashing when given a future pack version.
2021-03-06
- Added function
getVersions(pack_format: number, type?: string): object
to retrieve a list of versions that have the specified pack_format. - Added CLI implementation of
getVersions
,pack-format --list [--data|--version] <pack_format>
. - Fixed data pack format always returning
undefined
.
2021-03-04
- Changed output to return
undefined
for future snapshots. - Fixed data versions before
4
being returned when they should beundefined
. - Refactored code into TypeScript.
2021-02-28
- Changed coercing of version input to be more lenient.
- Fixed major releases returning the pack format of their last minor release.
2021-02-13
- Fixed command-line usage not parsing pre-release and release candidate versions.
2021-02-13
- Added argument
type
to Node usage; valid values are'data'
and'resource'
for retrieving the respective pack format for certain versions. - Added command-line flags
--data
(alias-d
/d
) and--resource
(alias-r
/r
) to implement the abovetype
usage. - Removed speculative hardcoded end of the current pack format.
2021-02-09
- Fixed pack format ranges being exclusive.
2021-02-09
- Added flag aliases
h
andv
for--help
and--version
respectively. - Fixed a crash occurring when retrieving a pack format via the command-line.
2021-02-09
- Fixed command-line usage not working.
2021-02-09
- Added a help message, given by using
pack-format
without any arguments or by using flag--help
/-h
. - Refactored command-line code and tests.
2021-01-23
- Fixed the command-line tool overflowing into dependents.
- Fixed a crash occurring when using flag
--version
/-v
.
2021-01-23
- Fixed command-line usage not working.
- Fixed a crash occurring when attempting to pass a raw number into the function.
2021-01-23
- Initial release with support for both full versions and snapshots.