2.4.2 (accidental source break, use 2.4.3)
Warning: source break
This release has an accidental minor source break:
The PR #133 introduced the following method:
public func record(_ duration: Duration)
There was already a similar function
public func record(_ duration: DispatchTimeInterval)
This can cause ambiguity for the compiler when using . shortcuts because of an overlap in case names, e.g.
timer.record(.nanoseconds(123)) // <-- ambiguous, is this DispatchTimeInterval or Duration?
Fixed by #144 in 2.4.3, please use 2.4.3 instead. Thank you @hamzahrmalik for the diagnosis and fix.
What's Changed
- Support compiling against Musl by @simonjbeaumont in #142
- Introducing Timer.record(_ duration:), closes #114 by @natikgadzhi in #133
- Add CI for Swift 5.10 by @yim-lee in #138
- Align supported Swift versions with rest of the ecosystem by @FranzBusch in #141
- Update API breakage CI script by @simonjbeaumont in #143
New Contributors
- @natikgadzhi made their first contribution in #133
- @FranzBusch made their first contribution in #141
- @simonjbeaumont made their first contribution in #143
Full Changelog: 2.4.1...2.4.2