From ea8fe8dcc1ddff5cf0155860ada50c7feb40401d Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 23 Dec 2020 18:44:43 +0300 Subject: [PATCH] release version 2.0.40 --- framework/BaseYii.php | 2 +- framework/CHANGELOG.md | 24 ++++++++++++------------ framework/helpers/mimeTypes.php | 3 ++- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/framework/BaseYii.php b/framework/BaseYii.php index 58f9a908a2e..5e6ce7913e7 100644 --- a/framework/BaseYii.php +++ b/framework/BaseYii.php @@ -93,7 +93,7 @@ class BaseYii */ public static function getVersion() { - return '2.0.40-dev'; + return '2.0.40'; } /** diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index e712c50d13e..64e7d9ef6bd 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -1,27 +1,27 @@ Yii Framework 2 Change Log ========================== -2.0.40 under development +2.0.40 December 23, 2020 ------------------------ +- Bug #16492: Fix eager loading Active Record relations when relation key is a subject to a type-casting behavior (bizley) +- Bug #18199: Fix content body response on 304 HTTP status code, according to RFC 7232 (rad8329) +- Bug #18287: Fix the OUTPUT got SQL syntax error if the column name is MSSQL keyword e.g. key (darkdef) +- Bug #18339: Fix migrate controller actions to return exit codes (haohetao, bizley) +- Bug #18365: Move quoting of table names to upper level to function `getSchemaMetadata()` in MSSQL driver to get clean names from the schema (darkdef) - Bug #18383: RBAC's generated file made PSR-12 compliant (perlexed) -- Bug #18393: Fix `ActiveRecord::refresh()` to load data from the database even if cache is enabled (hooman-mirghasemi) - Bug #18386: Fix `assets/yii.activeForm.js` incorrect target selector for `validatingCssClass` (brussens) -- Enh #18381: The `yii\web\AssetManager` `$basePath` readable and writeable check has been moved to the `checkBasePathPermission()`. This check will run once before `publishFile()` and `publishDirectory()` (nadar) -- Bug #18199: Fix content body response on 304 HTTP status code, according to RFC 7232 (rad8329) -- Enh #18394: Add support for setting `yii\web\Response::$stream` to a callable (brandonkelly) +- Bug #18393: Fix `ActiveRecord::refresh()` to load data from the database even if cache is enabled (hooman-mirghasemi) +- Bug #18395: Fix regression in `yii\helpers\BaseArrayHelper::filter()` (allowing filtering arrays with numeric keys) (bizley) +- Bug #18400: Set parent module of the newly attached child module by `Module::setModule()` and `Module::setModules()` (sup-ham) - Bug #18406: Fix PDO exception when committing or rolling back an autocommitted transaction in PHP 8 (brandonkelly) -- Bug #18339: Fix migrate controller actions to return exit codes (haohetao, bizley) -- Bug #18287: Fix the OUTPUT got SQL syntax error if the column name is MSSQL keyword e.g. key (darkdef) +- Bug #18414: Fix `AssetManager::appendTimestamp()` not appending timestamp for website root in sub-directory (Isitar) - Bug #18426: Fix check for route's leading slash in `yii\widgets\Menu` (stevekr) -- Bug #16492: Fix eager loading Active Record relations when relation key is a subject to a type-casting behavior (bizley) - Bug #18435: Fix ensuring Active Record relation links' keys to be strings (bizley) - Bug #18435: Change the check order whether an object is an implementation of `Arrayable` or `JsonSerializable` in `\yii\base\ArrayableTrait::toArray()` and `\yii\rest\Serializer::serialize()` (spell6inder) - Bug #18442: Fix calls with array access to string (bizley) -- Bug #18395: Fix regression in `yii\helpers\BaseArrayHelper::filter()` (allowing filtering arrays with numeric keys) (bizley) -- Bug #18414: Fix `AssetManager::appendTimestamp()` not appending timestamp for website root in sub-directory (Isitar) -- Bug #18365: Move quoting of table names to upper level to function `getSchemaMetadata()` in MSSQL driver to get clean names from the schema (darkdef) -- Bug #18400: Set parent module of the newly attached child module by `Module::setModule()` and `Module::setModules()` (sup-ham) +- Enh #18381: The `yii\web\AssetManager` `$basePath` readable and writeable check has been moved to the `checkBasePathPermission()`. This check will run once before `publishFile()` and `publishDirectory()` (nadar) +- Enh #18394: Add support for setting `yii\web\Response::$stream` to a callable (brandonkelly) 2.0.39.3 November 23, 2020 diff --git a/framework/helpers/mimeTypes.php b/framework/helpers/mimeTypes.php index 95713079155..3056874fd6c 100644 --- a/framework/helpers/mimeTypes.php +++ b/framework/helpers/mimeTypes.php @@ -480,7 +480,6 @@ 'mpkg' => 'application/vnd.apple.installer+xml', 'mpm' => 'application/vnd.blueice.multipass', 'mpn' => 'application/vnd.mophun.application', - 0 => 'application/vnd.lotus-1-2-3', 'mpp' => 'application/vnd.ms-project', 'mpt' => 'application/vnd.ms-project', 'mpy' => 'application/vnd.ibm.minipay', @@ -492,6 +491,7 @@ 'mseed' => 'application/vnd.fdsn.mseed', 'mseq' => 'application/vnd.mseq', 'msf' => 'application/vnd.epson.msf', + 0 => 'application/vnd.lotus-1-2-3', 'msh' => 'model/mesh', 'msi' => 'application/x-msdownload', 'msl' => 'application/vnd.mobius.msl', @@ -553,6 +553,7 @@ 'opf' => 'application/oebps-package+xml', 'opml' => 'text/x-opml', 'oprc' => 'application/vnd.palm', + 'opus' => 'audio/ogg', 'org' => 'application/vnd.lotus-organizer', 'osf' => 'application/vnd.yamaha.openscoreformat', 'osfpvg' => 'application/vnd.yamaha.openscoreformat.osfpvg+xml',