diff --git a/CHANGELOG.md b/CHANGELOG.md index f19c5bb1..8e6ec2ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [1.9.0] +- Update to Getx 5 standards + +## [1.8.4] +- Update dependencies + +## [1.8.3] +- jsonToJson updated +- version dependency updated + ## [1.8.2] - Replace cli_dialog with dcli - version dependency updated diff --git a/lib/common/menu/menu.dart b/lib/common/menu/menu.dart index dc590215..b9b3520a 100644 --- a/lib/common/menu/menu.dart +++ b/lib/common/menu/menu.dart @@ -17,8 +17,7 @@ class Menu { // final answer = dialog.ask(); // final result = answer['result'] as String; print(""); - final result = - menu(prompt: title, options: choices, defaultOption: choices[0]); + final result = menu(title, options: choices, defaultOption: choices[0]); final index = choices.indexOf(result); return Answer(result: result, index: index); diff --git a/lib/common/utils/json_serialize/json_ast/location.dart b/lib/common/utils/json_serialize/json_ast/location.dart index 5914d971..84f75e54 100644 --- a/lib/common/utils/json_serialize/json_ast/location.dart +++ b/lib/common/utils/json_serialize/json_ast/location.dart @@ -1,6 +1,3 @@ -import 'package:meta/meta.dart'; - -@immutable class Loc { final int? line; final int? column; @@ -25,7 +22,6 @@ class Segment extends Loc { int get hashCode => line.hashCode ^ column.hashCode ^ offset.hashCode; } -@immutable class Location { final Segment start; final Segment end; diff --git a/lib/common/utils/json_serialize/json_ast/tokenize.dart b/lib/common/utils/json_serialize/json_ast/tokenize.dart index 563f5492..027724ac 100644 --- a/lib/common/utils/json_serialize/json_ast/tokenize.dart +++ b/lib/common/utils/json_serialize/json_ast/tokenize.dart @@ -1,5 +1,3 @@ -import 'package:meta/meta.dart'; - import './error.dart'; import './location.dart'; import './tokenize_error_types.dart'; @@ -78,7 +76,6 @@ bool _compareDynamicList(List? l, List? other) { return true; } -@immutable class Node { final String type; final Location? loc; @@ -170,10 +167,6 @@ class ObjectNode extends Node { type == other.type && loc == other.loc && _compareDynamicList(children, other.children); - - @override - // TODO: implement hashCode - int get hashCode => super.hashCode; } class ArrayNode extends Node { @@ -201,10 +194,6 @@ class ArrayNode extends Node { type == other.type && loc == other.loc && _compareDynamicList(children, other.children); - - @override - // TODO: implement hashCode - int get hashCode => super.hashCode; } class PropertyNode extends Node { @@ -250,10 +239,6 @@ class PropertyNode extends Node { loc: loc ?? this.loc, ); } - - @override - // TODO: implement hashCode - int get hashCode => super.hashCode; } class LiteralNode extends Node { @@ -288,13 +273,8 @@ class LiteralNode extends Node { loc: loc ?? this.loc, ); } - - @override - // TODO: implement hashCode - int get hashCode => super.hashCode; } -@immutable class ValueIndex { final T value; final int index; @@ -306,8 +286,7 @@ class ValueIndex { other is ValueIndex && value == other.value && index == other.index; @override - // TODO: implement hashCode - int get hashCode => super.hashCode; + int get hashCode => value.hashCode ^ index.hashCode; } // HELPERS diff --git a/lib/common/utils/json_serialize/sintaxe.dart b/lib/common/utils/json_serialize/sintaxe.dart index a0235547..1df57d71 100644 --- a/lib/common/utils/json_serialize/sintaxe.dart +++ b/lib/common/utils/json_serialize/sintaxe.dart @@ -391,8 +391,4 @@ class ClassDefinition { } } } - - @override - // TODO: implement hashCode - int get hashCode => super.hashCode; } diff --git a/lib/samples/impl/get_binding.dart b/lib/samples/impl/get_binding.dart index 284ff179..448b30a1 100644 --- a/lib/samples/impl/get_binding.dart +++ b/lib/samples/impl/get_binding.dart @@ -23,12 +23,14 @@ class BindingSample extends Sample { String get content => '''$_import import 'package:${PubspecUtils.projectName}/$_controllerDir'; -class $_bindingName extends Bindings { +class $_bindingName extends Binding { @override - void dependencies() { - Get.lazyPut<${_fileName.pascalCase}Controller>( - () => ${_fileName.pascalCase}Controller(), - ); + List dependencies() { + return [ + Bind.lazyPut<${_fileName.pascalCase}Controller>( + () => ${_fileName.pascalCase}Controller(), + ) + ]; } } '''; diff --git a/lib/samples/impl/get_view.dart b/lib/samples/impl/get_view.dart index 69bb2da0..c44d4c3e 100644 --- a/lib/samples/impl/get_view.dart +++ b/lib/samples/impl/get_view.dart @@ -25,7 +25,7 @@ import 'package:get/get.dart'; $import class $_viewName extends $_controllerName { - const $_viewName({Key? key}) : super(key: key); + const $_viewName({super.key}); @override Widget build(BuildContext context) { return Scaffold( diff --git a/pubspec.yaml b/pubspec.yaml index fe726289..811d9bfb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,30 +1,34 @@ name: get_cli -version: 1.8.2 +version: 1.9.0 homepage: https://github.com/jonataslaw/get_cli description: Official CLI for GetX™ framework to build Flutter and Server Applications easily environment: sdk: ">=2.17.0 <3.0.0" +dependency_overrides: + _fe_analyzer_shared: ^61.0.0 + analyzer: ^5.4.0 + dependencies: # archive: ^3.1.2 - ansicolor: ">=2.0.1 <3.0.0" - collection: ">=1.15.0 <2.0.0" - dart_style: ">=2.0.1 <3.0.0" - dcli: ^1.31.2 - http: ">=0.13.4 <2.0.0" - intl: ">=0.17.0 <1.0.0" - meta: ">=1.7.0 <2.0.0" - path: ">=1.8.0 <2.0.0" - process_run: ">=0.12.2 <1.0.0" - pubspec: ">=2.0.1 <3.0.0" - recase: ">=4.0.0 <5.0.0" - version: ">=2.0.0 <4.0.0" - yaml: ">=3.1.0 <4.0.0" + analyzer: ^5.4.0 + ansicolor: ^2.0.1 + collection: ^1.17.1 + dart_style: ^2.0.1 + dcli: ^3.0.2 + http: ^0.13.5 + intl: ^0.18.0 + path: ^1.8.3 + process_run: ^0.12.5+3 + pubspec: ^2.3.0 + recase: ^4.1.0 + version: ^3.0.2 + yaml: ^3.1.1 dev_dependencies: - lints: ^2.0.0 - test: ^1.5.0 + lints: ^2.0.1 + test: ^1.23.1 executables: get: get