From 63e9a636afec2a2d82b1d5b933c732528072dc8d Mon Sep 17 00:00:00 2001 From: Anas Fikhi Date: Fri, 1 Dec 2023 05:09:34 +0100 Subject: [PATCH] [ Add ] version 0.9.6 --- CHANGELOG.md | 17 +++++++++-------- .../sub_commands/create_command.dart | 3 +-- lib/src/etc/models/config.dart | 1 - lib/src/etc/networking/client.dart | 8 ++------ lib/src/etc/utils.dart | 3 --- pubspec.yaml | 2 +- 6 files changed, 13 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9341d56..1368a9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,5 @@ # ChangeLogs -## 0.9.4 - -- Major optimization of the speed of the localization process. -- Add support for JSON configuration files. (default is YAML) -- Optimization in the AI engine. -- Bug Fixes -- Minor behavior changes. - ## 0.8.1 - Changed the account creation command from `apiKey` to `create` for more consistency. @@ -35,3 +27,12 @@ ## 0.9.43 - Exposed fully FREE beta version, for BETA testing and feedbacks. +- Major optimization of the speed of the localization process. +- Add support for JSON configuration files. (default is YAML) +- Optimization in the AI engine. +- Bug Fixes +- Minor behavior changes. + +## 0.9.6 + +- Added support for the AI instruction field which allow for your own custom instructions to be executed during the localization process. diff --git a/lib/src/commands/config_command/sub_commands/create_command.dart b/lib/src/commands/config_command/sub_commands/create_command.dart index 37200fe..261296c 100644 --- a/lib/src/commands/config_command/sub_commands/create_command.dart +++ b/lib/src/commands/config_command/sub_commands/create_command.dart @@ -4,11 +4,10 @@ import 'dart:io'; import 'package:args/command_runner.dart'; import 'package:langsync/src/etc/controllers/config_file.dart'; import 'package:langsync/src/etc/extensions.dart'; +import 'package:langsync/src/etc/models/config.dart'; import 'package:langsync/src/etc/networking/client.dart'; import 'package:mason_logger/mason_logger.dart'; -import '../../../etc/models/config.dart'; - class ConfigCreateCommand extends Command { ConfigCreateCommand({ required this.logger, diff --git a/lib/src/etc/models/config.dart b/lib/src/etc/models/config.dart index de69210..568063c 100644 --- a/lib/src/etc/models/config.dart +++ b/lib/src/etc/models/config.dart @@ -1,5 +1,4 @@ import 'package:equatable/equatable.dart'; -import 'package:langsync/src/etc/extensions.dart'; import 'package:yaml/yaml.dart'; class LangSyncConfig extends Equatable { diff --git a/lib/src/etc/networking/client.dart b/lib/src/etc/networking/client.dart index ff86f64..4aedb6d 100644 --- a/lib/src/etc/networking/client.dart +++ b/lib/src/etc/networking/client.dart @@ -1,11 +1,9 @@ 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/operation.dart'; import 'package:langsync/src/etc/models/result_locale.dart'; -import 'package:langsync/src/etc/models/user_info.dart'; import 'package:langsync/src/etc/networking/client_boilerplate.dart'; import 'package:langsync/src/version.dart'; @@ -22,9 +20,7 @@ class NetClient extends NetClientBoilerPlate { required Iterable langs, required String apiKey, required String operationId, - bool includeOutput = false, - required int? languageLocalizationMaxDelay, - required String? instruction, + required int? languageLocalizationMaxDelay, required String? instruction, bool includeOutput = false, }) { return sseStreamReq>( '/process-translation', @@ -72,7 +68,7 @@ class NetClient extends NetClientBoilerPlate { '/file-operation-of-user', 'GET', { - 'Authorization': 'Bearer ${apiKey}', + 'Authorization': 'Bearer $apiKey', }, { 'operationId': outputoperationId, diff --git a/lib/src/etc/utils.dart b/lib/src/etc/utils.dart index 0ce4c4f..65d8eb3 100644 --- a/lib/src/etc/utils.dart +++ b/lib/src/etc/utils.dart @@ -1,9 +1,6 @@ import 'dart:io'; import 'dart:math'; -import 'package:langsync/src/etc/extensions.dart'; -import 'package:langsync/src/etc/networking/client.dart'; -import 'package:mason_logger/mason_logger.dart'; final utils = Utils(); diff --git a/pubspec.yaml b/pubspec.yaml index 2965e52..b731f44 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: langsync description: A Very Good Project created by Very Good CLI. -version: 0.9.43 +version: 0.9.6 homepage: https://langsync.app repository: https://github.com/LangSync/cli