documentation:fabric_mod_json_spec
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| documentation:fabric_mod_json_spec [2020/02/07 22:35] – created juuz | documentation:fabric_mod_json_spec [2025/10/03 20:00] (current) – [Types, VersionRange] Fix broken links to semver.org for Semantic Versioning 2.0.0 gauntrecluse | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== fabric.mod.json ====== | + | ====== fabric.mod.json |
| In all cases, the mod JSON, '' | In all cases, the mod JSON, '' | ||
| Line 65: | Line 65: | ||
| === VersionRange === | === VersionRange === | ||
| - | A string or array of string declaring supported version ranges. In the case of an array, an " | + | A string or array of string declaring supported version ranges |
| - | In the case of all versions, '' | + | In the case of all versions, '' |
| - | For semantic versions, the specification follows a rough subset of the [[https://docs.npmjs.com/misc/semver|NPM semver]] specification, in particular | + | Versions compatible with the extended semver format are compared as defined by [[https://semver.org/|Semantic Versioning 2.0.0]] with arbitrary version component comparisons beign done left to right for all components, treating absent components as '' |
| - | * '' | + | The following |
| - | * Version ranges - a set of space-delimited comparators of the ''> | + | |
| - | * X-Ranges, | + | |
| - | * Tilde Ranges, | + | |
| - | * Caret Ranges. | + | |
| + | * standalone ''< | ||
| + | * standard operators ''< | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * X-Ranges: ''< | ||
| + | |||
| + | All operators always work the same regardless of the version they are matching against, there is no special casing for '' | ||
| ==== Mandatory fields ==== | ==== Mandatory fields ==== | ||
| Line 94: | Line 98: | ||
| * string values, | * string values, | ||
| * objects containing a " | * objects containing a " | ||
| + | * **accessWidener**: | ||
| ==== Optional fields (dependency resolution) ==== | ==== Optional fields (dependency resolution) ==== | ||
documentation/fabric_mod_json_spec.1581114926.txt.gz · Last modified: 2020/02/07 22:35 by juuz