apple / swift-docc

Documentation compiler that produces rich API reference documentation and interactive tutorials for your Swift framework or package.
https://swift.org/documentation/docc
Apache License 2.0
1.14k stars 118 forks source link

Remove duplicate semantic versioning types #970

Open anferbui opened 2 days ago

anferbui commented 2 days ago

Description

In the codebase, we have four types which we use to represent a semantic version number:

These all seem to be fulfilling a similar purpose. We should converge on using only one type throughout the DocC codebase.

Checklist

Expected Behavior

Only one Swift type is used to represent a semantic version number in DocC. All other types are deprecated/removed.

Actual behavior

There are 4 types used to represent a semantic version number in DocC.

Steps To Reproduce

No response

Swift-DocC Version Information

f019ab8e2e0370d8f95921d4b8f1f7309c4eedbc

Swift Compiler Version Information

No response

anferbui commented 2 days ago

Per discussion in https://github.com/apple/swift-docc/pull/959, @d-ronnqvist and me think we should try to move towards converging on SemanticVersion because it's the type that is used the most in the repo.