Skip to content
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

Deprecate Filter.notEqual and Filter.notIn #3414

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Channel watching did not resume on web-socket reconnection [#3409](https://github.com/GetStream/stream-chat-swift/pull/3409)
### 🔄 Changed
- Discard offline state changes when saving database changes fails [#3399](https://github.com/GetStream/stream-chat-swift/pull/3399)
- Deprecate `Filter.notEqual` and `Filter.notIn` [#3413](https://github.com/GetStream/stream-chat-swift/pull/3413)

## StreamChatUI
### ✅ Added
Expand Down
2 changes: 2 additions & 0 deletions Sources/StreamChat/Query/Filter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ public extension Filter {
}

/// Matches all values that are not equal to a specified value.
@available(*, deprecated, message: "The notEqual filter will be removed in the future")
static func notEqual<Value: Encodable>(_ key: FilterKey<Scope, Value>, to value: Value) -> Filter {
.init(
operator: .notEqual,
Expand Down Expand Up @@ -366,6 +367,7 @@ public extension Filter {
}

/// Matches none of the values specified in an array.
@available(*, deprecated, message: "The notIn filter will be removed in the future")
static func notIn<Value: Encodable>(_ key: FilterKey<Scope, Value>, values: [Value]) -> Filter {
.init(
operator: .notIn,
Expand Down
Loading