swift-metrics 2.0.0
SemVer Major
- Add microseconds to the TimeUnit enum #64
Important note: The 1.x (previous) version of swift-metrics included a TimeUnit
enum which was missing a microseconds
case. Since adding a case to an enum is an API breaking change, we needed to release
this change as sever 2.0.0. We also used this opportunity to change the enum to a struct so we can add more time unit without breaking the API. That said, since 1.x and 2.x are almost API compatible, TimeUnit
is not used by swift-metrics directly and only used by few libraries that depend on it, most libraries should use the following dependency to avoid a fragmentation of ecosystem:
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0")