From 42e030d3d8eb400a18c8a003775190ca205e848f Mon Sep 17 00:00:00 2001 From: Brett Sutton Date: Fri, 9 Aug 2024 08:31:49 +1000 Subject: [PATCH] Released 6.0.0. --- dcli_sdk/CHANGELOG.md | 11 +++++++++++ dcli_sdk/lib/src/version/version.g.dart | 2 +- template/project/cmd_args/pubspec.yaml | 2 +- template/project/find/pubspec.yaml | 4 ++-- template/project/full/pubspec.yaml | 4 ++-- template/project/simple/pubspec.yaml | 2 +- template/script/pubspec.yaml | 2 +- 7 files changed, 19 insertions(+), 8 deletions(-) diff --git a/dcli_sdk/CHANGELOG.md b/dcli_sdk/CHANGELOG.md index bf3fc5ee..6a44c7c6 100644 --- a/dcli_sdk/CHANGELOG.md +++ b/dcli_sdk/CHANGELOG.md @@ -1,3 +1,14 @@ +# 6.0.0 +- Breaking +The AskValidator now takes an additional argument 'customErrorMessage'. This will only affect +users that have built custom ask validators. +change `String validate(String line) ` to `String validate(String line, {String? customErrorMessage})` + and then return the customErrorMessage rather than you usual error message if the customErrorMessage is not null. + When outputing an error from you validator you should use `customErrorMessage??'my original error'` +Thanks to Emad Beltaje for the contribution! + +- Upgraded to win32 v5 to fix an issue with a deprecated api for dart 3.5. + # 5.0.0 - Breaking -- Removed a number of the withXX sync functions in favour of withXXAsync diff --git a/dcli_sdk/lib/src/version/version.g.dart b/dcli_sdk/lib/src/version/version.g.dart index 99a0718a..00571a6e 100644 --- a/dcli_sdk/lib/src/version/version.g.dart +++ b/dcli_sdk/lib/src/version/version.g.dart @@ -1,3 +1,3 @@ /// GENERATED BY pub_release do not modify. /// Instance of 'Name' version -String packageVersion = '5.0.0'; +String packageVersion = '6.0.0'; diff --git a/template/project/cmd_args/pubspec.yaml b/template/project/cmd_args/pubspec.yaml index 9ae2bcab..1a1aa1a0 100644 --- a/template/project/cmd_args/pubspec.yaml +++ b/template/project/cmd_args/pubspec.yaml @@ -8,7 +8,7 @@ environment: dependencies: args: ^2.0.0 - dcli: 5.0.0 + dcli: 6.0.0 dev_dependencies: lint_hard: ^4.0.0 diff --git a/template/project/find/pubspec.yaml b/template/project/find/pubspec.yaml index 1f3be059..42205750 100644 --- a/template/project/find/pubspec.yaml +++ b/template/project/find/pubspec.yaml @@ -6,8 +6,8 @@ environment: flutter: dependencies: args: ^2.3.1 - dcli: 5.0.0 - dcli_core: 5.0.0 + dcli: 6.0.0 + dcli_core: 6.0.0 path: ^1.0.0 dev_dependencies: lint_hard: ^4.0.0 diff --git a/template/project/full/pubspec.yaml b/template/project/full/pubspec.yaml index ec98cfb2..bce48b18 100644 --- a/template/project/full/pubspec.yaml +++ b/template/project/full/pubspec.yaml @@ -7,8 +7,8 @@ environment: dependencies: args: ^2.5.0 - dcli: 5.0.0 - dcli_core: 5.0.0 + dcli: 6.0.0 + dcli_core: 6.0.0 http: ^1.2.1 path: ^1.9.0 settings_yaml: ^8.2.0 diff --git a/template/project/simple/pubspec.yaml b/template/project/simple/pubspec.yaml index a3fb108c..04062346 100644 --- a/template/project/simple/pubspec.yaml +++ b/template/project/simple/pubspec.yaml @@ -6,7 +6,7 @@ environment: flutter: dependencies: - dcli: 5.0.0 + dcli: 6.0.0 dev_dependencies: lint_hard: ^4.0.0 diff --git a/template/script/pubspec.yaml b/template/script/pubspec.yaml index db51556e..d087dc10 100644 --- a/template/script/pubspec.yaml +++ b/template/script/pubspec.yaml @@ -7,7 +7,7 @@ environment: dependencies: args: ^2.4.2 - dcli: 5.0.0 + dcli: 6.0.0 dev_dependencies: lint_hard: ^4.0.0