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-dependencies
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.6.2
Choose a base ref
...
head repository: pointfreeco/swift-dependencies
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.6.3
Choose a head ref
  • 5 commits
  • 5 files changed
  • 5 contributors

Commits on Dec 3, 2024

  1. Run swift-format

    mbrandonw authored and github-actions[bot] committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    a0f3ffd View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2024

  1. Support throwing dependency trait (#320)

    For example:
    
    ```swift
    @test(.dependency(\.defaultDatabase, try .create())
    ```
    stephencelis authored Dec 19, 2024
    Configuration menu
    Copy the full SHA
    c81cb3d View commit details
    Browse the repository at this point in the history
  2. Add AppDelegate entry point example to prepareDependencies documentat…

    …ion (#316)
    
    * Add AppDelegate entry point example to prepareDependencies documentation
    
    * Update WithDependencies.swift
    
    ---------
    
    Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
    acosmicflamingo and stephencelis authored Dec 19, 2024
    Configuration menu
    Copy the full SHA
    890b70f View commit details
    Browse the repository at this point in the history
  3. Run swift-format

    stephencelis authored and github-actions[bot] committed Dec 19, 2024
    Configuration menu
    Copy the full SHA
    4a12189 View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2024

  1. Don't cache preview app entry point dependencies (#321)

    * Don't cache preview app entry point dependencies
    
    We have a longstanding gotcha where we tell folks to avoid instantiating
    their root model on their app entry point because any dependencies on
    the root model may negatively affect any preview in their application.
    
    This PR detects when a dependency is accessed in a SwiftUI preview app
    entry point and prevents it from influencing the cache using the call
    stack symbols available. While this isn't a silver bullet, and any async
    work kicked off from the app entry point could still affect things
    negatively, this should hopefully be mostly an improvement on the status
    quo and maybe we won't have to refer folks to this gotcha as often in
    the future.
    
    * wip
    
    * wip
    
    * Update AppEntryPoint.swift
    stephencelis authored Dec 26, 2024
    Configuration menu
    Copy the full SHA
    85f89f5 View commit details
    Browse the repository at this point in the history
Loading