From e7b8408dce19eb00f79c49db6d6644c5b017a2be Mon Sep 17 00:00:00 2001 From: shalvah Date: Mon, 30 Nov 2020 13:30:12 +0100 Subject: [PATCH] Update changelog --- CHANGELOG.md | 5 +++++ src/Extracting/DatabaseTransactionHelpers.php | 2 +- src/Tools/ConsoleOutputUtils.php | 6 ++---- src/Tools/Globals.php | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 496c6b8d..ff97ff23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Removals +## 2.4.1 (Monday, 30 November 2020) +### Changes +- Scribe will no longer throw an error if you describe an object subfield without adding the parent. We'll add it automatically for you (but you really should). (https://github.com/knuckleswtf/scribe/commit/77d516cbdbc6aa66466a640e20092d6e7a8df456) +- Changed the auto-generated descriptions when using validation rules to work without "The". (https://github.com/knuckleswtf/scribe/commit/0b6e609dd067b43301e709e54c339c64519725dd) + ## 2.4.0 (Monday, 30 November 2020) Turns out 2.2.0 wasn't really working.😕 This version fixes that, but introduces a behaviour change, so it may be a breaking change. diff --git a/src/Extracting/DatabaseTransactionHelpers.php b/src/Extracting/DatabaseTransactionHelpers.php index 02bbc3f9..5e34d008 100644 --- a/src/Extracting/DatabaseTransactionHelpers.php +++ b/src/Extracting/DatabaseTransactionHelpers.php @@ -83,7 +83,7 @@ private function excludedDrivers(): array $excludedDrivers = $this->getConfig()->get('continue_without_database_transactions', []); if (count($excludedDrivers)) { - c::deprecated('`continue_without_database_transactions`', 'use `database_connections_to_transact`'); + c::deprecated('`continue_without_database_transactions`', '2.4.0', 'use `database_connections_to_transact`'); } return Globals::$excludedDbDrivers = $excludedDrivers; diff --git a/src/Tools/ConsoleOutputUtils.php b/src/Tools/ConsoleOutputUtils.php index a16b19c0..341c8bb0 100644 --- a/src/Tools/ConsoleOutputUtils.php +++ b/src/Tools/ConsoleOutputUtils.php @@ -21,7 +21,7 @@ public static function bootstrapOutput(OutputInterface $outputInterface) ->only(); } - public static function deprecated($feature, $should = null, $link = null) + public static function deprecated($feature, $inVersion, $should = null) { if (!self::$clara) { self::bootstrapOutput(new ConsoleOutput); @@ -31,9 +31,7 @@ public static function deprecated($feature, $should = null, $link = null) if ($should) { $message .= "\nYou should $should instead."; } - $message .= $link - ? " See $link for details" - : (" See the changelog for details (v".Globals::SCRIBE_VERSION.")."); + $message .= " See the changelog for details (v$inVersion)."; self::$clara->warn($message); } diff --git a/src/Tools/Globals.php b/src/Tools/Globals.php index 9678a759..7e6526da 100644 --- a/src/Tools/Globals.php +++ b/src/Tools/Globals.php @@ -4,7 +4,7 @@ class Globals { - public const SCRIBE_VERSION = '2.4.0'; + public const SCRIBE_VERSION = '2.4.1'; public static $shouldBeVerbose = false;