Skip to content

Commit

Permalink
v0.2.0 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
tokyolem authored Jul 4, 2023
1 parent 93fea25 commit c90378e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.2.0
* Dart 3.0.0 is now the minimum version
* suggest_a_feature 0.2.0 support
* Updated dependencies

## 0.1.2
* suggest_a_feature 0.1.2 support

Expand Down
4 changes: 0 additions & 4 deletions lib/src/data/firestore_data_source.dart
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,13 @@ class FirestoreDataSource implements SuggestionsDataSource {
isEqualTo: userId,
)
.get();
break;
case _Entity.comment:
response = await _comments
.where(
_authorIdFieldName,
isEqualTo: userId,
)
.get();
break;
}

final documents = response.docs.where((e) => e.id == entityId);
Expand All @@ -263,10 +261,8 @@ class FirestoreDataSource implements SuggestionsDataSource {
switch (entity) {
case _Entity.comment:
rawData[_commentIdFieldName] = item.id;
break;
case _Entity.suggestion:
rawData[_suggestionIdFieldName] = item.id;
break;
}

return rawData;
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: suggest_a_feature_firestore
description: A package that contains the firestore based data source for suggest_a_feature.
version: 0.1.2
version: 0.2.0
repository: https://github.com/What-the-Flutter/Suggest-a-Feature-Firestore

environment:
sdk: '>=2.19.0 <4.0.0'
sdk: '>=3.0.0 <4.0.0'
flutter: '>=1.17.0'

dependencies:
cloud_firestore: ^4.8.0
cloud_firestore: ^4.8.2
flutter:
sdk: flutter
suggest_a_feature: ^0.1.2
suggest_a_feature: ^0.2.0

dev_dependencies:
fake_cloud_firestore: ^2.4.1+1
Expand Down

0 comments on commit c90378e

Please sign in to comment.