Skip to content

Commit 007f2af

Browse files
Query: remove deprecated contains condition for string vectors #156
1 parent 5593b65 commit 007f2af

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

objectbox/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
sure to update to `io.objectbox:objectbox-android-objectbrowser:5.0.1` in `android/app/build.gradle`.
2121
* Update ObjectBox database for Flutter iOS/macOS apps to 5.0.0.
2222
For existing projects, run `pod repo update` and `pod update ObjectBox` in the `ios` or `macos` directories.
23+
* Remove deprecated `contains` condition for `List<String>` properties, use `containsElement` instead.
2324

2425
## 4.3.1 (2025-09-02)
2526

objectbox/lib/src/native/query/query.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,6 @@ class QueryStringVectorProperty<EntityT>
433433
extends QueryProperty<EntityT, List<String>> {
434434
QueryStringVectorProperty(super.model);
435435

436-
@Deprecated(
437-
'Use `containsElement` instead. Will be removed in a future release.')
438-
Condition<EntityT> contains(String p, {bool? caseSensitive, String? alias}) =>
439-
containsElement(p, caseSensitive: caseSensitive, alias: alias);
440-
441436
/// Matches if at least one element of the list equals the given value.
442437
Condition<EntityT> containsElement(String value,
443438
{bool? caseSensitive, String? alias}) =>

0 commit comments

Comments
 (0)