Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Changes Previous 0.48.1 cherry pick somehow wasn't properly done (possibly due to `git rerere`) and some changes were missing. This commit contains all upstream changes from 0.47.2 ... 0.48.1 which were then reapplied on top of `master`. This should hopefully now include all changes. To avoid issues with `git rerere` I cleared its cache before doing this operation. ## Automatic git commit (cherry picked from commit 1c19319aed7ab85e10e07de570f6160e46140d2b) Apostrocide. (#1701) (cherry picked from commit 937a716d1af205f5e9b6f512c88012d7ad3e3f02) Typo (#1702) wow! (cherry picked from commit 1c50ffcf440de19e15e3a8b94e7347df0895a6ce) Base `OpenURL` dependency on SwiftUI (#1714) * Base `OpenURL` dependency on SwiftUI * indent (cherry picked from commit fbd70bf4d01284a9788d88cba4b6c70827f104e4) Fix ButtonRole and Button deprecations (#1715) Replaced AlertState<Action>.ButtonRole with ButtonState<Action>.Role Replaced AlertState<Action>.Button with ButtonState<Action> (cherry picked from commit 907eb1866a9de2c506a05edee9d277b856a7171c) # Conflicts: # Package.resolved Run swift-format (cherry picked from commit f56a0d1973d92fa82066ed3bd7f9ba7375fca5fe) add await (#1725) (cherry picked from commit 47465c3f265cf058447c32c58a6676216ed76590) # Conflicts: # Sources/Dependencies/Dependencies/MainQueue.swift Fix a possible typo (#1762) (cherry picked from commit d0b1444393d9e209307dcad066cb8d19a667eda9) Bump SwiftUINavigation and update examples (#1760) * bump navigation * bump swiftui-navigation * Add SearchView preview * make login sendable * use button state builder * format * bump swift and platform version * remove unused test clock * Add quotes to scheme (cherry picked from commit fe5603ec380e2a312cbf8ff45e12e81eea5c072b) Fix minor document error (#1764) (cherry picked from commit b555bfeac62c8c95cb54b002442bb8068aa99311) Fix code typo (#1773) Signed-off-by: Daeyoung Kim <[email protected]> Signed-off-by: Daeyoung Kim <[email protected]> (cherry picked from commit 315d935fcd2021828310294c2d85fc747f3de332) Update latest version documentation link. (#1776) (cherry picked from commit 43291b21dc24e1981d2bc8e1b715a5ce733c3e23) Add @_unsafeInheritExecutor to withTaskCancellation(id:) (#1779) * Add @_unsafeInheritExecutor to withTaskCancellation(id:) * wip (cherry picked from commit 48f0cc66000a23690ebbd7b65ea57fb7e7769825) # Conflicts: # Sources/ComposableArchitecture/Effects/Cancellation.swift resolve binding key path crash (#1784) (cherry picked from commit fbe68471a3cf4eef6f0501d07642ee70b5bc3e84) # Conflicts: # Sources/ComposableArchitecture/ViewStore.swift Run swift-format (cherry picked from commit 8f19bf88aeb67c33e41e14eefa30f9074ddca013) Simplify/fix #1784 (#1785) * Simplify/fix #1784 This PR works on top of #1784 and: * Reduces the number of moving parts * Restores implicit animations by directly producing the binding from the observable object * Strongly retains the store in the binding to avoid losing writes * Move (cherry picked from commit 626c35c7dea962bd3246e1f019d91cbfe419e695) Make TestStore.receive actually match the action predicate (#1780) * Assert that TestStore.receive(...) actually calls its predicate * Fix TestStore.receive to respect its action predicate * Update TestStore failure tests to use new description strings (cherry picked from commit 5f294b9dc9a047b1e6b6766752da2856a158750e) # Conflicts: # Tests/ComposableArchitectureTests/TestStoreTests.swift Run swift-format (cherry picked from commit 5a8df942237aa1ff59b7abccfe18bff74d1bbe4a) Fix TestStore docs (#1787) * Fix TestStore docs * fix * wip (cherry picked from commit ea9cc86779038a0e1d38aa080bdc636e236190b6) # Conflicts: # Sources/ComposableArchitecture/TestStore.swift Deprecate 'Effect' for 'EffectTask' (#1788) * Deprecate 'Effect' for 'EffectTask' This is to allow reclaiming 'Effect' at a later time without the 'Failure' generic in the near future. * wip (cherry picked from commit 32f967c0b84099e29dc5bce062aa9f45493d2688) # Conflicts: # Sources/ComposableArchitecture/Effect.swift Soft-deprecate EffectPublisher (#1791) * Soft-deprecate EffectPublisher in favor of EffectTask. * wip (cherry picked from commit 4266744f047734de8eb8bc73730d7f7d25cbd775) # Conflicts: # Sources/ComposableArchitecture/Documentation.docc/ComposableArchitecture.md # Sources/ComposableArchitecture/Documentation.docc/Extensions/Effect.md # Sources/ComposableArchitecture/Effect.swift Run swift-format (cherry picked from commit ce196d7c152172cc924dcc875338a6459fcd568a) Deprecate async version of withValue and introduce sync version. (#1792) (cherry picked from commit 5eedf980b72dd6fcd3a65c01dfd644a929d2223b) # Conflicts: # Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift # Sources/ComposableArchitecture/Internal/Deprecations.swift Run swift-format (cherry picked from commit ad714bacb9dd1b3addfb27d5021ca8ad33b62009) Wrong cancel id on testNestedCancels (#1793) (cherry picked from commit 1a65878210b8bfccc7c73436718195582562c314) # Conflicts: # Tests/ComposableArchitectureTests/EffectCancellationTests.swift Allow `BindingReducer` to work with `ViewState` (#1790) * Simpler bindable view state * wip * wip * Remove `BindingStore` * wip * wip * wip * wip * wip * wip * wip * wip * wip * Make BindingState conditionally sendable. * Fixed tests * Update bindings article * Add some additional contextual information to the runtime warnings * update some docs * lots more docs * test clean up * Improve diagnostic * Put back `BindingReducer()` in the form study * clean up * Improve DocC references * Remove DocC references for `@`'d property wrappers. * wip Co-authored-by: Stephen Celis <[email protected]> Co-authored-by: Brandon Williams <[email protected]> (cherry picked from commit c719fa1d3921533f25a6aa6c41016ce5d41a250d) # Conflicts: # Sources/ComposableArchitecture/Internal/Deprecations.swift # Sources/ComposableArchitecture/SwiftUI/Binding.swift # Tests/ComposableArchitectureTests/BindingTests.swift # Tests/ComposableArchitectureTests/DebugTests.swift Run swift-format (cherry picked from commit d1c2e5b6d1c4e3b2f46c4fa1983b6ed4acab9173) Revert #1790 (#1795) It occurred to us that this solution unfortunately is incompatible with view actions. We have an alternate solution that works, so I'll PR that in the future if no others materialize! (cherry picked from commit 30015d13a3ca0988b4674a83eccebbea747fe1f8) # Conflicts: # Sources/ComposableArchitecture/Internal/Deprecations.swift # Sources/ComposableArchitecture/SwiftUI/Binding.swift Revert #1784: Resolve binding key path crash (#1799) * Revert "Simplify/fix #1784 (#1785)" This reverts commit 626c35c7dea962bd3246e1f019d91cbfe419e695. * Revert "resolve binding key path crash (#1784)" This reverts commit fbe68471a3cf4eef6f0501d07642ee70b5bc3e84. (cherry picked from commit cbf8a45fa97ca4afb858f6cd99730bb67952813a) # Conflicts: # Sources/ComposableArchitecture/ViewStore.swift
- Loading branch information