-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undeprecate debounce and throttle overloads restored in 1.1.0 #2392
Merged
stephencelis
merged 2 commits into
pointfreeco:prerelease/1.0
from
pyrtsa:undeprecate-debounce-throttle
Aug 22, 2023
Merged
Undeprecate debounce and throttle overloads restored in 1.1.0 #2392
stephencelis
merged 2 commits into
pointfreeco:prerelease/1.0
from
pyrtsa:undeprecate-debounce-throttle
Aug 22, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sources/ComposableArchitecture/Effects/Publisher/Debouncing.swift
Outdated
Show resolved
Hide resolved
Sources/ComposableArchitecture/Effects/Publisher/Throttling.swift
Outdated
Show resolved
Hide resolved
stephencelis
approved these changes
Aug 22, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
cgrindel-self-hosted-renovate bot
referenced
this pull request
in cgrindel/rules_swift_package_manager
Aug 24, 2023
…ure to v1 (#530) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [pointfreeco/swift-composable-architecture](https://togithub.com/pointfreeco/swift-composable-architecture) | major | `from: "0.58.2"` -> `from: "1.2.0"` | --- ### Release Notes <details> <summary>pointfreeco/swift-composable-architecture (pointfreeco/swift-composable-architecture)</summary> ### [`v1.2.0`](https://togithub.com/pointfreeco/swift-composable-architecture/releases/tag/1.2.0) [Compare Source](https://togithub.com/pointfreeco/swift-composable-architecture/compare/1.1.0...1.2.0) #### What's Changed - Added: Legacy alert and action sheet presentation APIs for iOS 13 support ([https://github.com/pointfreeco/swift-composable-architecture/pull/2379](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2379)). The `alert(store:)` and `confirmationDialog(store:)` view modifiers are iOS 15+, but we now have `legacyAlert(store:)` and `actionSheet(store:)` for iOS 13+. - Added: `TestStore.bindings` for testing bindable view state ([https://github.com/pointfreeco/swift-composable-architecture/pull/2394](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2394)). - Fixed: Addressed a potential threading issue in `Store.send` ([https://github.com/pointfreeco/swift-composable-architecture/pull/2382](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2382)). - Fixed: Worked around a Catalina runtime crash due to unavailable macOS symbols (thanks [@​jaredh159](https://togithub.com/jaredh159), [https://github.com/pointfreeco/swift-composable-architecture/pull/2385](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2385)). - Infrastructure: Docs fixes (thanks [@​nickkohrn](https://togithub.com/nickkohrn), [https://github.com/pointfreeco/swift-composable-architecture/pull/2383](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2383); [@​jaesung-0o0](https://togithub.com/jaesung-0o0), [https://github.com/pointfreeco/swift-composable-architecture/pull/2389](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2389)). - Infrastructure: Added README section for companion libraries ([https://github.com/pointfreeco/swift-composable-architecture/pull/2395](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2395)). - Infrastructure: Fixed stack case study ([https://github.com/pointfreeco/swift-composable-architecture/pull/2397](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2397)) #### New Contributors - [@​jaredh159](https://togithub.com/jaredh159) made their first contribution in [https://github.com/pointfreeco/swift-composable-architecture/pull/2385](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2385) **Full Changelog**: pointfreeco/swift-composable-architecture@1.1.0...1.2.0 ### [`v1.1.0`](https://togithub.com/pointfreeco/swift-composable-architecture/releases/tag/1.1.0) [Compare Source](https://togithub.com/pointfreeco/swift-composable-architecture/compare/1.0.0...1.1.0) #### What's Changed - Added: An overload of `Reducer.onChange(of:)` that takes a configurable `removeDuplicates` closure for the equality check (thanks [@​ohitsdaniel](https://togithub.com/ohitsdaniel), [https://github.com/pointfreeco/swift-composable-architecture/pull/2338](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2338)). - Added: `Effect.debounce` and `Effect.throttle`, for debouncing and throttling effects on a scheduler ([https://github.com/pointfreeco/swift-composable-architecture/pull/2372](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2372), [https://github.com/pointfreeco/swift-composable-architecture/pull/2368](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2368)). This functionality existed in past releases but was removed from 1.0 alongside other deprecated Combine code. Because there is no modern replacement for `Effect.throttle` we have brought this functionality back to 1.1. - Fixed: XCTest failures emitted when test stores initialize state (*e.g.* if `Reducer.State.init` accesses a dependency that hasn't been overridden) are now shown in the test that creates the store rather than hidden in application code ([https://github.com/pointfreeco/swift-composable-architecture/pull/2352](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2352)). - Fixed: Suppressed a warning that previously emitted when instantiating a test store state with `.init()` instead of `Feature.State()` ([https://github.com/pointfreeco/swift-composable-architecture/pull/2347](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2347)). - Fixed: Child features presented by *grandparent* features are now properly dismissed when the child calls `@Dependency(\.dismiss)` ([https://github.com/pointfreeco/swift-composable-architecture/pull/2373](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2373)). - Infrastructure: Documentation updates and fixes ([https://github.com/pointfreeco/swift-composable-architecture/pull/2336](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2336); thanks [@​jayrhynas](https://togithub.com/jayrhynas), [https://github.com/pointfreeco/swift-composable-architecture/pull/2342](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2342); thanks [@​Atimca](https://togithub.com/Atimca), [https://github.com/pointfreeco/swift-composable-architecture/pull/2350](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2350); [https://github.com/pointfreeco/swift-composable-architecture/pull/2353](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2353); thanks [@​hmhv](https://togithub.com/hmhv), [https://github.com/pointfreeco/swift-composable-architecture/pull/2355](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2355); thanks [@​Ryu0118](https://togithub.com/Ryu0118), [https://github.com/pointfreeco/swift-composable-architecture/pull/2358](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2358), [https://github.com/pointfreeco/swift-composable-architecture/pull/2367](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2367); thanks [@​yimajo](https://togithub.com/yimajo), [https://github.com/pointfreeco/swift-composable-architecture/pull/2357](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2357); thanks [@​ValseLee](https://togithub.com/ValseLee), [https://github.com/pointfreeco/swift-composable-architecture/pull/2369](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2369), [https://github.com/pointfreeco/swift-composable-architecture/pull/2370](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2370)). #### New Contributors - [@​jayrhynas](https://togithub.com/jayrhynas) made their first contribution in [https://github.com/pointfreeco/swift-composable-architecture/pull/2342](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2342) - [@​Atimca](https://togithub.com/Atimca) made their first contribution in [https://github.com/pointfreeco/swift-composable-architecture/pull/2350](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2350) - [@​ValseLee](https://togithub.com/ValseLee) made their first contribution in [https://github.com/pointfreeco/swift-composable-architecture/pull/2369](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2369) **Full Changelog**: pointfreeco/swift-composable-architecture@1.0.0...1.1.0 ### [`v1.0.0`](https://togithub.com/pointfreeco/swift-composable-architecture/releases/tag/1.0.0) [Compare Source](https://togithub.com/pointfreeco/swift-composable-architecture/compare/0.59.0...1.0.0) #### What's Changed - The Composable Architecture 1.0 ([https://github.com/pointfreeco/swift-composable-architecture/pull/2318](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2318)). Fully removes all deprecated APIs from the 0.x series. **Full Changelog**: pointfreeco/swift-composable-architecture@0.58.0...1.0.0 ### [`v0.59.0`](https://togithub.com/pointfreeco/swift-composable-architecture/releases/tag/0.59.0) [Compare Source](https://togithub.com/pointfreeco/swift-composable-architecture/compare/0.58.2...0.59.0) #### What's Changed - Added: back-ported legacy alert and action sheet APIs for those using iOS 13 alerts and action sheets in their apps ([https://github.com/pointfreeco/swift-composable-architecture/pull/2379](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2379)). - Fixed: Addressed a potential threading issue in `Store.send` ([https://github.com/pointfreeco/swift-composable-architecture/pull/2382](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2382)). - Fixed: Un-deprecated `debounce` and `throttle` overloads restored in 1.1.0 (thanks [@​pyrtsa](https://togithub.com/pyrtsa), [https://github.com/pointfreeco/swift-composable-architecture/pull/2392](https://togithub.com/pointfreeco/swift-composable-architecture/pull/2392)). **Full Changelog**: pointfreeco/swift-composable-architecture@0.58.2...0.59.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi41Mi4xIiwidXBkYXRlZEluVmVyIjoiMzYuNTIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.