From 19c00f2647b1ee49f3b8208cefbb4f21b1493ceb Mon Sep 17 00:00:00 2001 From: Brett Sutton Date: Wed, 31 Jul 2024 14:39:47 +1000 Subject: [PATCH] Released 5.0.0. --- dcli_unit_tester/CHANGELOG.md | 30 +++++++++++++++++++ .../lib/src/version/version.g.dart | 2 +- dcli_unit_tester/pubspec.lock | 16 +++++----- 3 files changed, 39 insertions(+), 9 deletions(-) diff --git a/dcli_unit_tester/CHANGELOG.md b/dcli_unit_tester/CHANGELOG.md index 9d44826c..089d5d35 100644 --- a/dcli_unit_tester/CHANGELOG.md +++ b/dcli_unit_tester/CHANGELOG.md @@ -1,3 +1,33 @@ +# 5.0.0 +- Breaking +-- Removed a number of the withXX sync functions in favour of withXXAsync +as the sync versions were dangerous as it was too easy to make async +calls within the callback and then the withXXX method would return +before the callback completed. + +We have left stub methods for the old withXXX form that are marked as deprecated and will throw an UnsupportedError if you call them. + +-- withTempDir replaced by withTempDirAsync +-- withTempFile replaced by withTempFileAsync +-- withFileProtection replaced by withFileProtectionAsync + + +- Removed a number of redundant methods from the dcli package that +were just pass throughs to the dcli_core package. As the dcli barrel +file now exports the dcli_core functions for these methods there should +be no noticiable difference in the API. + +- Added new method PubCache::pathToGlobalPackage + +- Fixed a bug in NamedLock which was causing a dead lock if the an existing +lock file was found but the owning process was no longer runnimg. +- upgraded to settings_yaml 8.2.0 +- removed the DCLIFunction wrapper for a number of functions as it serves no purpose. +- removed move_tree as it was just a wrapper for dcli_core method of the same name. +- moved the move and moveDir wrapper functions and exposed the dcli_core versions. +- replaced all occurances of withTempFile with withTempFileAsync +- move to using native_sychronisation_temp until the official release. + # 4.0.5 - change the dependency to native_sychronisation_temp until the offical package is released. diff --git a/dcli_unit_tester/lib/src/version/version.g.dart b/dcli_unit_tester/lib/src/version/version.g.dart index 94645cf5..99a0718a 100644 --- a/dcli_unit_tester/lib/src/version/version.g.dart +++ b/dcli_unit_tester/lib/src/version/version.g.dart @@ -1,3 +1,3 @@ /// GENERATED BY pub_release do not modify. /// Instance of 'Name' version -String packageVersion = '4.0.5'; +String packageVersion = '5.0.0'; diff --git a/dcli_unit_tester/pubspec.lock b/dcli_unit_tester/pubspec.lock index ed4e10f7..714886ff 100644 --- a/dcli_unit_tester/pubspec.lock +++ b/dcli_unit_tester/pubspec.lock @@ -103,28 +103,28 @@ packages: path: "../dcli" relative: true source: path - version: "4.0.5" + version: "5.0.0" dcli_common: dependency: "direct overridden" description: path: "../dcli_common" relative: true source: path - version: "4.0.3" + version: "5.0.0" dcli_core: dependency: "direct main" description: path: "../dcli_core" relative: true source: path - version: "4.0.7" + version: "5.0.0" dcli_terminal: dependency: "direct main" description: path: "../dcli_terminal" relative: true source: path - version: "4.0.3" + version: "5.0.0" equatable: dependency: transitive description: @@ -305,10 +305,10 @@ packages: dependency: transitive description: name: settings_yaml - sha256: "415bc91cbcfe8b66b0945fdad8823b439ec9bd31591db6c1a4d2d07cab97899d" + sha256: ed2714686a1a22d45c1454ca3da1b0ce889b639b929aa09f6afa2bba8c0a423e url: "https://pub.dev" source: hosted - version: "8.1.0" + version: "8.2.0" source_span: dependency: transitive description: @@ -393,10 +393,10 @@ packages: dependency: transitive description: name: uuid - sha256: "814e9e88f21a176ae1359149021870e87f7cddaf633ab678a5d2b0bff7fd1ba8" + sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90" url: "https://pub.dev" source: hosted - version: "4.4.0" + version: "4.4.2" validators2: dependency: transitive description: