User Tools

Site Tools


documentation:fabric_mod_json_spec

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
documentation:fabric_mod_json_spec [2023/12/27 12:54] mineblock11documentation: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 67: Line 67:
 A string or array of string declaring supported version ranges in the form ''<operator1><range1>[ <operator2><range2>]...''. Multiple space separated ranges within the same string follow an "AND" relationship - they must all be satisfied. In the case of an array, an "OR" relationship is assumed between the array elements - that is, only one element has to match for the collective declaration to be satisfied. A string or array of string declaring supported version ranges in the form ''<operator1><range1>[ <operator2><range2>]...''. Multiple space separated ranges within the same string follow an "AND" relationship - they must all be satisfied. In the case of an array, an "OR" relationship is assumed between the array elements - that is, only one element has to match for the collective declaration to be satisfied.
  
-In the case of all versions, ''*'' is a special string declaring that any version is matched by the range. Fabric Loader supports a [[https://semver.org/ semver 2.0.0]] superset that allows an arbitrary amount of version components, empty pre-release and arbitrary build metadata. Version strings that are incompatible with this format are still accepted, but comparison support is limited to equality operators.+In the case of all versions, ''*'' is a special string declaring that any version is matched by the range. Fabric Loader supports a [[https://semver.org/|Semantic Versioning 2.0.0]] superset that allows an arbitrary amount of version components, empty pre-release and arbitrary build metadata. Version strings that are incompatible with this format are still accepted, but comparison support is limited to equality operators.
  
-Versions compatible with the extended semver format are compared as defined by [[https://semver.org/ semver 2.0.0]] with arbitrary version component comparisons beign done left to right for all components, treating absent components as ''0''. The empty pre-release is the earliest possible pre-release, making ''1.2-'' the earliest possible version in the ''1.2'' series, intended for comparison operand declarations. Build metadata is ignored for comparison as usual.+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 ''0''. The empty pre-release is the earliest possible pre-release, making ''1.2-'' the earliest possible version in the ''1.2'' series, intended for comparison operand declarations. Build metadata is ignored for comparison as usual.
  
 The following declarations are supported for version strings compatible with this semver superset: The following declarations are supported for version strings compatible with this semver superset:
documentation/fabric_mod_json_spec.txt · Last modified: 2025/10/03 20:00 by gauntrecluse