Skip to content

Commit 9f62ab1

Browse files
committed
fix: minor bugs
1 parent b1ef4ac commit 9f62ab1

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 12.0.4
2+
3+
* Fixed concurrent modification error when closing realtime socket
4+
15
## 12.0.3
26

37
* Upgrade dependencies

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^12.0.3
24+
appwrite: ^12.0.4
2525
```
2626
2727
You can install packages from the command line:

lib/src/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
4343
'x-sdk-name': 'Flutter',
4444
'x-sdk-platform': 'client',
4545
'x-sdk-language': 'flutter',
46-
'x-sdk-version': '12.0.3',
46+
'x-sdk-version': '12.0.4',
4747
'X-Appwrite-Response-Format': '1.5.0',
4848
};
4949

lib/src/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ClientIO extends ClientBase with ClientMixin {
6464
'x-sdk-name': 'Flutter',
6565
'x-sdk-platform': 'client',
6666
'x-sdk-language': 'flutter',
67-
'x-sdk-version': '12.0.3',
67+
'x-sdk-version': '12.0.4',
6868
'X-Appwrite-Response-Format' : '1.5.0',
6969
};
7070

lib/src/enums/credit_card.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ enum CreditCard {
44
americanExpress(value: 'amex'),
55
argencard(value: 'argencard'),
66
cabal(value: 'cabal'),
7-
consosud(value: 'censosud'),
7+
cencosud(value: 'cencosud'),
88
dinersClub(value: 'diners'),
99
discover(value: 'discover'),
1010
elo(value: 'elo'),

lib/src/realtime_mixin.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ mixin RealtimeMixin {
8787
break;
8888
}
8989
}, onDone: () {
90-
if (!_notifyDone || _creatingSocket) return;
91-
for (var subscription in _subscriptions.values) {
90+
final subscriptions = List.from(_subscriptions.values);
91+
for (var subscription in subscriptions) {
9292
subscription.close();
9393
}
9494
_channels.clear();

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: appwrite
2-
version: 12.0.3
2+
version: 12.0.4
33
description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API
44
homepage: https://appwrite.io
55
repository: https://github.com/appwrite/sdk-for-flutter

0 commit comments

Comments
 (0)