Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pointfreeco/swift-clocks
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.2
Choose a base ref
...
head repository: pointfreeco/swift-clocks
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0.3
Choose a head ref
  • 10 commits
  • 20 files changed
  • 6 contributors

Commits on Jan 5, 2024

  1. 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
        }
       ```
    sanghun0724 authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    f91e406 View commit details
    Browse the repository at this point in the history
  2. Fix AnyClock, ImmediateClock, TestClock offset from var to let (#…

    …28)
    
    There is no need for 'offset' to be a var.
    sanghun0724 authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    2365f6f View commit details
    Browse the repository at this point in the history
  3. Run swift-format

    stephencelis authored and github-actions[bot] committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    8843766 View commit details
    Browse the repository at this point in the history
  4. Fix access control (#30)

    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.
    stephencelis authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    65e74c1 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Shim Removal (#31)

    `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:)).
    Rspoon3 authored May 14, 2024
    Configuration menu
    Copy the full SHA
    2c74776 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. 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.
    stephencelis authored Jun 18, 2024
    Configuration menu
    Copy the full SHA
    2047d93 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. 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)
    Matejkob authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    fd688cd View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. Create .spi.yml

    stephencelis authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    b63fde9 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Update README.md

    stephencelis authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    0d93ac9 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. 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]>
    stephencelis and mbrandonw authored Jul 22, 2024
    Configuration menu
    Copy the full SHA
    eb64eac View commit details
    Browse the repository at this point in the history
Loading