Skip to content

Commit

Permalink
[ Edit 0.9.4]
Browse files Browse the repository at this point in the history
  • Loading branch information
anasfik committed Oct 16, 2023
1 parent e26f2c7 commit d232dee
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
15 changes: 12 additions & 3 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# 0.8.1
# ChangeLogs


## 0.8.1

- Changed the account creation command from `apiKey` to `create` for more consistency.

# 0.8.3
## 0.8.3

- Added info debug command for seeing the variables while developing, it should not be shown in the production version.

# 0.9.2
## 0.9.2

- Added support real-time updates during the localization process (langsync start) which allow now for following and debugging each languages localization and tasks.
- Bug Fixes.

## 0.9.4

- Bug Fixes.
- Appliance of new Stream API, which allow for better performance, faster updates and more stability.
1 change: 0 additions & 1 deletion lib/src/commands/debug_info/debug_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import 'dart:async';

import 'package:args/command_runner.dart';
import 'package:http/http.dart';
import 'package:langsync/src/etc/utils.dart';
import 'package:langsync/src/version.dart';
import 'package:mason_logger/mason_logger.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/etc/networking/client.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:convert';
import 'dart:io';
import 'package:langsync/src/etc/models/api_key_res.dart';
import 'package:langsync/src/etc/models/config.dart';
import 'package:langsync/src/etc/models/lang_output.dart';
import 'package:langsync/src/etc/models/partition.dart';
import 'package:langsync/src/etc/models/result_locale.dart';
Expand Down
12 changes: 6 additions & 6 deletions lib/src/etc/networking/client_boilerplate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class NetClientBoilerPlate {
Map<String, dynamic> body,
T Function(String res) onSuccess,
) {
final _controller = StreamController<T>.broadcast();
final controller = StreamController<T>.broadcast();

final uri = Uri.parse(utils.endpoint(endpoint));
final request = http.Request(method, uri);
Expand All @@ -95,17 +95,17 @@ class NetClientBoilerPlate {
.map((data) => onSuccess(data))
.listen(
(event) {
_controller.sink.add(event);
controller.sink.add(event);
},
onError: (e) {
_controller.sink.addError(e as Object);
onError: (Object e) {
controller.sink.addError(e);
},
cancelOnError: true,
onDone: _controller.close,
onDone: controller.close,
);
},
);

return _controller.stream;
return controller.stream;
}
}
2 changes: 1 addition & 1 deletion lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const packageVersion = '0.9.211';
const packageVersion = '0.9.4';
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: langsync
description: A Very Good Project created by Very Good CLI.
version: 0.9.211
version: 0.9.4
publish_to: none

environment:
Expand Down

0 comments on commit d232dee

Please sign in to comment.