-
Notifications
You must be signed in to change notification settings - Fork 22
Comparing changes
Open a pull request
base repository: pointfreeco/swift-clocks
base: 1.0.2
head repository: pointfreeco/swift-clocks
compare: 1.0.3
- 10 commits
- 20 files changed
- 6 contributors
Commits on Jan 5, 2024
-
Update the default value of ImmediateClock. (#29)
To improve consistency with other clocks and readability of the code, Update the default values of the variables in ImmediateClock. e.g: TestClock initialization ```swift public var minimumResolution: Duration = .zero public private(set) var now: Instant private let lock = NSRecursiveLock() private var suspensions: [( id: UUID, deadline: Instant, continuation: AsyncThrowingStream<Never, Error>.Continuation )] = [] public init(now: Instant = .init()) { self.now = now } ```
Configuration menu - View commit details
-
Copy full SHA for f91e406 - Browse repository at this point
Copy the full SHA f91e406View commit details -
Fix AnyClock, ImmediateClock, TestClock
offset
fromvar
tolet
(#……28) There is no need for 'offset' to be a var.
Configuration menu - View commit details
-
Copy full SHA for 2365f6f - Browse repository at this point
Copy the full SHA 2365f6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8843766 - Browse repository at this point
Copy the full SHA 8843766View commit details -
A few APIs were `public` when they shouldn't be. They aren't primary APIs, and it is unlikely that folks rely on them. So though this is a breaking change, it shouldn't affect folks, and there is an alternative API they can rely on instead.
Configuration menu - View commit details
-
Copy full SHA for 65e74c1 - Browse repository at this point
Copy the full SHA 65e74c1View commit details
Commits on May 14, 2024
-
`Shims.swift` is no longer needed since `sleep(for:tolerance:)` is now a [native function](https://developer.apple.com/documentation/swift/clock/sleep(for:tolerance:)).
Configuration menu - View commit details
-
Copy full SHA for 2c74776 - Browse repository at this point
Copy the full SHA 2c74776View commit details
Commits on Jun 18, 2024
-
Swift Language Support: Drop <5.9, Add 6.0 (#37)
We can drop Swift <5.9 now that the App Store requires Xcode 15 for submissions, and we can add 6.0 language mode to keep our concurrency story in check.
Configuration menu - View commit details
-
Copy full SHA for 2047d93 - Browse repository at this point
Copy the full SHA 2047d93View commit details
Commits on Jul 4, 2024
-
Add
.editorconfig
for consistent code formatting (#38)Xcode 16 added support for the [EditorConfig standard](https://editorconfig.org/)[^1]. This allows a project/repo to specify basic formatting rules so the editor can behave correctly.[^2] > [!NOTE] > You may need to quit and relaunch Xcode for it to pick up the `.editorconfig` file after switching to a branch where it's present.[^3] The added `.editorconfig` file contains: ``` # editorconfig.org root = true [*] indent_style = space indent_size = 2 trim_trailing_whitespace = true insert_final_newline = true ``` - `root = true`: Specifies that this is the top-most .editorconfig file. The file search will stop here. - `indent_style = space`: Uses soft tabs (spaces) for indentation instead of hard tabs. - `indent_size = 2`: Sets the indentation to 2 columns. - `trim_trailing_whitespace = true`: Removes any whitespace characters preceding newline characters. - `insert_final_newline = true`: Ensures the file ends with a newline when saving. These settings apply to all files in the project (`[*]`). **This change make much easier the process of switch between projects that use 2-space and 4-space indentation (what is quite common in your community).** [^1]: [Xcode 16 Beta 2 Release Notes–Source Editor New Features](https://arc.net/l/quote/zuzqnfeq) [^2]: Inspired by: [Add an EditorConfig file](swiftlang/swift-syntax#2714) [^3]: [Xcode 16 Beta 2 Release Notes–Source Editor Known Issues](https://arc.net/l/quote/olmnhsqo)
Configuration menu - View commit details
-
Copy full SHA for fd688cd - Browse repository at this point
Copy the full SHA fd688cdView commit details
Commits on Jul 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b63fde9 - Browse repository at this point
Copy the full SHA b63fde9View commit details
Commits on Jul 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0d93ac9 - Browse repository at this point
Copy the full SHA 0d93ac9View commit details
Commits on Jul 22, 2024
-
Add support for Swift Testing (#39)
Makes it so `TestClock` and `UnimplementedClock` both report failures to the new Swift Testing framework. --------- Co-authored-by: Brandon Williams <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eb64eac - Browse repository at this point
Copy the full SHA eb64eacView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 1.0.2...1.0.3