mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	Reordered CHANGELOG
This commit is contained in:
		@ -4,87 +4,88 @@ Yii Framework 2 Change Log
 | 
			
		||||
2.0.12 under development
 | 
			
		||||
--------------------------
 | 
			
		||||
 | 
			
		||||
- Bug #14052: Fixed processing parse errors on PHP 7 since these are instances of `\ParseError` (samdark)
 | 
			
		||||
- Bug #13790: Fixed error in `\yii\widgets\MaskedInput` JavaScript by raising version required (samdark)
 | 
			
		||||
- Bug #14033: Fixed `yii\filters\AccessRule::matchIp()` erroring in case IP is not defined under HHVM (Kolyunya)
 | 
			
		||||
- Bug #13848: `yii\di\Instance::ensure()` wasn't throwing an exception when `$type` is specified and `$reference` object isn't instance of `$type` (c-jonua)
 | 
			
		||||
- Enh #13226: `yii cache` command now warns about the fact that it's not able to flush APC cache from console (samdark)
 | 
			
		||||
- Bug #13689: Fixed handling of errors in closures (mikehaertl)
 | 
			
		||||
- Bug #11719: Fixed `yii\db\Connection::$enableQueryCache` caused infinite loop when the same connection was used for `yii\caching\DbCache` (michaelarnauts)
 | 
			
		||||
- Bug #10346: Fixed "DOMException: Invalid Character Error" in `yii\web\XmlResponseFormatter::buildXml()` (sasha-ch)
 | 
			
		||||
- Bug #13694: `yii\widgets\Pjax` now sends `X-Pjax-Url` header with response to fix redirect (wleona3, Faryshta)
 | 
			
		||||
- Bug #14012: `yii\db\pgsql\Schema::findViewNames()` was skipping materialized views (insolita)
 | 
			
		||||
- Bug #13362: Fixed return value of `yii\caching\MemCache::setValues()`  (masterklavi)
 | 
			
		||||
- Enh #13963: Added tests for `yii\behaviors\TimestampBehavior` (vladis84)
 | 
			
		||||
- Enh #13994: Refactored `yii\filters\RateLimiter`. Added tests (vladis84)
 | 
			
		||||
- Enh #13820: Add new HTTP status code 451 (yyxx9988)
 | 
			
		||||
- Bug #13671: Fixed error handler trace to work correctly with XDebug (samdark)
 | 
			
		||||
- Bug #13657: Fixed `yii\helpers\StringHelper::truncateHtml()` skip extra tags at the end (sam002)
 | 
			
		||||
- Bug #4408: Add support for unicode word characters and `+` character in attribute names (sammousa, kmindi)
 | 
			
		||||
- Bug #7946: Fixed a bug when the `form` attribute was not propagated to the hidden input of the checkbox (Kolyunya)
 | 
			
		||||
- Bug #13087: Fixed getting active validators for safe attribute (developeruz, klimov-paul)
 | 
			
		||||
- Bug #13571: Fix `yii\db\mssql\QueryBuilder::checkIntegrity` for all tables (boboldehampsink)
 | 
			
		||||
- Bug #8120: Fixes LIKE special characters escaping for Cubrid/MSSQL/Oracle/SQLite in `yii\db\QueryBuilder` (sergeymakinen)
 | 
			
		||||
- Bug #10346: Fixed "DOMException: Invalid Character Error" in `yii\web\XmlResponseFormatter::buildXml()` (sasha-ch)
 | 
			
		||||
- Bug #10372: Fixed console controller including complex typed arguments in help (sammousa)
 | 
			
		||||
- Bug #11230: Include `defaultRoles` in `yii\rbac\DbManager->getRolesByUser()` results (developeruz)
 | 
			
		||||
- Enh #13243: Added support for unicode attribute names in `yii\widgets\DetailView` (arogachev)
 | 
			
		||||
- Bug #11404: `yii\base\Model::loadMultiple()` returns true even if `yii\base\Model::load()` returns false (zvook)
 | 
			
		||||
- Bug #11719: Fixed `yii\db\Connection::$enableQueryCache` caused infinite loop when the same connection was used for `yii\caching\DbCache` (michaelarnauts)
 | 
			
		||||
- Bug #12715: Exception `SAVEPOINT LEVEL1 does not exist` instead of deadlock exception (Vovan-VE)
 | 
			
		||||
- Bug #13087: Fixed getting active validators for safe attribute (developeruz, klimov-paul)
 | 
			
		||||
- Bug #13306: Wildcard in `reloadableScripts` in `yii.js` allows 0 characters (arogachev)
 | 
			
		||||
- Bug #13340: Fixed `yii\db\Connection::useMaster()` - exception within callback completely disables slaves (Vovan-VE)
 | 
			
		||||
- Bug #13343: Fixed `yii\i18n\Formatter::asTime()` to process time-only values without time zone conversion (bizley)
 | 
			
		||||
- Bug #13362: Fixed return value of `yii\caching\MemCache::setValues()`  (masterklavi)
 | 
			
		||||
- Bug #13379: Fixed `applyFilter()` function in `yii.gridView.js` to work correctly when params in `filterUrl` are indexed (SilverFire, arogachev)
 | 
			
		||||
- Bug #13418: Fixed `QueryBuilder::batchInsert()` if `$rows` is `\Generator` (lav45)
 | 
			
		||||
- Bug #13494: Fixed `yii\console\controllers\MessageConstroller::saveMessagesToDb()` to work on different DBMS correctly (silverfire)
 | 
			
		||||
- Bug #13513: Fixed RBAC migration to work correctly on Oracle DBMS (silverfire)
 | 
			
		||||
- Bug #13537: Fixed `yii\web\CacheSession::destroySession()` to work correctly when session is not written yet (silverfire, papalapa)
 | 
			
		||||
- Bug #13538: Fixed `yii\db\BaseActiveRecord::deleteAll()` changes method signature declared by `yii\db\ActiveRecordInterface::deleteAll()` (klimov-paul)
 | 
			
		||||
- Bug #13571: Fix `yii\db\mssql\QueryBuilder::checkIntegrity` for all tables (boboldehampsink)
 | 
			
		||||
- Bug #13577: `yii\db\QueryBuilder::truncateTable` should work consistent over all databases (boboldehampsink)
 | 
			
		||||
- Bug #13582: PK column in `yii\db\pgsql\QueryBuilder::resetSequence()` was not quoted properly (boboldehampsink)
 | 
			
		||||
- Bug #13592: Fixes `yii\db\oci\Schema::setTransactionIsolationLevel()` in Oracle (sergeymakinen)
 | 
			
		||||
- Bug #13594: Fixes insufficient quoting in `yii\db\QueryBuilder::prepareInsertSelectSubQuery()` (sergeymakinen)
 | 
			
		||||
- Bug #8120: Fixes LIKE special characters escaping for Cubrid/MSSQL/Oracle/SQLite in `yii\db\QueryBuilder` (sergeymakinen)
 | 
			
		||||
- Bug #12715: Exception `SAVEPOINT LEVEL1 does not exist` instead of deadlock exception (Vovan-VE)
 | 
			
		||||
- Bug #13649: Fixes issue where `['uncheck' => false]` and `['label' => false]` options for `ActiveRadio` and `ActiveCheckbox` were ignored (Alex-Code)
 | 
			
		||||
- Bug #13657: Fixed `yii\helpers\StringHelper::truncateHtml()` skip extra tags at the end (sam002)
 | 
			
		||||
- Bug #13670: Fixed alias option from console when it includes `-` or `_` in option name (pana1990)
 | 
			
		||||
- Bug #13671: Fixed error handler trace to work correctly with XDebug (samdark)
 | 
			
		||||
- Bug #13689: Fixed handling of errors in closures (mikehaertl)
 | 
			
		||||
- Bug #13694: `yii\widgets\Pjax` now sends `X-Pjax-Url` header with response to fix redirect (wleona3, Faryshta)
 | 
			
		||||
- Bug #13704: Fixed `yii\validators\UniqueValidator` to prefix attribute name with model's database table name (vladis84)
 | 
			
		||||
- Bug #13707: Fixed `yii\web\ErrorHandler` and `yii\web\ErrorAction` not setting correct response code to response object before rendering error view (samdark)
 | 
			
		||||
- Bug #13728: Fixed the bug when `yii\behaviors\SluggableBehavior` wasn't preserving immutable slug values (Kolyunya)
 | 
			
		||||
- Bug #13738: Fixed `getQueryParams()` method in `yii.js` to correctly parse URL with question mark and no query parameters (vladdnepr)
 | 
			
		||||
- Bug #13776: Fixed setting precision and scale for decimal columns in MSSQL (arturf)
 | 
			
		||||
- Bug #13790: Fixed error in `\yii\widgets\MaskedInput` JavaScript by raising version required (samdark)
 | 
			
		||||
- Bug #13807: Fixed `yii\db\QueryBuilder` to inherit subquery params when building a `INSERT INTO ... SELECT` query (sergeymakinen)
 | 
			
		||||
- Bug #13848: `yii\di\Instance::ensure()` wasn't throwing an exception when `$type` is specified and `$reference` object isn't instance of `$type` (c-jonua)
 | 
			
		||||
- Bug #13901: Fixed passing unused parameter to `formatMessage()` call in `\yii\validators\IpValidator` (Kolyunya)
 | 
			
		||||
- Bug #13961: Fixed `unserialize()` error during RBAC rule retrieving from PostgreSQL DBMS (vsguts)
 | 
			
		||||
- Bug #14012: `yii\db\pgsql\Schema::findViewNames()` was skipping materialized views (insolita)
 | 
			
		||||
- Bug #14033: Fixed `yii\filters\AccessRule::matchIp()` erroring in case IP is not defined under HHVM (Kolyunya)
 | 
			
		||||
- Bug #14052: Fixed processing parse errors on PHP 7 since these are instances of `\ParseError` (samdark)
 | 
			
		||||
- Enh #8641: Enhanced `yii\console\Request::resolve()` to prevent passing parameters, that begin from digits (silverfire)
 | 
			
		||||
- Enh #13144: Refactored `yii\db\Query::queryScalar()` (Alex-Code)
 | 
			
		||||
- Enh #13179: Added `yii\data\Sort::parseSortParam` allowing to customize sort param in descendant class (leandrogehlen)
 | 
			
		||||
- Enh #13221: Make `\yii\db\QueryTrait::limit()` and `\yii\db\QueryTrait::offset()` methods work with `\yii\db\Expression` (Ni-san)
 | 
			
		||||
- Enh #13226: `yii cache` command now warns about the fact that it's not able to flush APC cache from console (samdark)
 | 
			
		||||
- Enh #13240: Client scripts registration in `yii\widgets\ActiverForm` was moved to the separate `registerClientScript()` method (uaoleg, silverfire)
 | 
			
		||||
- Enh #13243: Added support for unicode attribute names in `yii\widgets\DetailView` (arogachev)
 | 
			
		||||
- Enh #13254: Core validators no longer require `Yii::$app` to be set (sammousa)
 | 
			
		||||
- Enh #13278: `yii\caching\DbQueryDependency` created allowing specification of the cache dependency via `yii\db\QueryInterface` (klimov-paul)
 | 
			
		||||
- Enh #13360: Added Dockerized test setup for the framework tests (schmunk42)
 | 
			
		||||
- Enh #13369: Added ability to render current `yii\widgets\LinkPager` page disabled (aquy)
 | 
			
		||||
- Enh #13376: Data provider now automatically sets an ID so there is no need to set it manually in case multiple data providers are used with pagination (SamMousa)
 | 
			
		||||
- Enh #13407: Added URL-safe base64 encode/decode methods to `StringHelper` (andrewnester)
 | 
			
		||||
- Enh #13467: `yii\data\ActiveDataProvider` no longer queries models if models count is zero (kLkA, Kolyunya)
 | 
			
		||||
- Enh #13523: Fixed pluralization and singularization for words `pasta`, `currency` (developeruz, silverfire)
 | 
			
		||||
- Enh #13550: Refactored `unset()` call order in `yii\di\ServiceLocator::set()` (Lanrik)
 | 
			
		||||
- Enh #13560: Refactored `\yii\widgets\FragmentCache::getCachedContent()`, added tests (Kolyunya)
 | 
			
		||||
- Enh #13576: Added support of `srcset` to `yii\helpers\Html::img()` (Kolyunya)
 | 
			
		||||
- Enh #13577: Implemented `yii\db\mssql\QueryBuilder::resetSequence()` (boboldehampsink)
 | 
			
		||||
- Enh #13582: Added tests for all `yii\db\QueryBuilder::resetSequence()` implementations, fixed SQLite implementation (boboldehampsink)
 | 
			
		||||
- Enh #13407: Added URL-safe base64 encode/decode methods to `StringHelper` (andrewnester)
 | 
			
		||||
- Bug #13649: Fixes issue where `['uncheck' => false]` and `['label' => false]` options for `ActiveRadio` and `ActiveCheckbox` were ignored (Alex-Code)
 | 
			
		||||
- Enh #13221: Make `\yii\db\QueryTrait::limit()` and `\yii\db\QueryTrait::offset()` methods work with `\yii\db\Expression` (Ni-san)
 | 
			
		||||
- Enh #13144: Refactored `yii\db\Query::queryScalar()` (Alex-Code)
 | 
			
		||||
- Enh #13360: Added Dockerized test setup for the framework tests (schmunk42)
 | 
			
		||||
- Bug #13379: Fixed `applyFilter()` function in `yii.gridView.js` to work correctly when params in `filterUrl` are indexed (SilverFire, arogachev)
 | 
			
		||||
- Enh #13650: Improved `yii\base\Security::hkdf()` to take advantage of native `hash_hkdf()` implementation in PHP >= 7.1.2  (charlesportwoodii)
 | 
			
		||||
- Bug #13670: Fixed alias option from console when it includes `-` or `_` in option name (pana1990)
 | 
			
		||||
- Enh: Added `yii\di\Instance::__set_state()` method to restore object after serialization using `var_export()` function (silvefire)
 | 
			
		||||
- Enh #13695: `yii\web\Response::setStatusCode()` method now returns the Response object itself (kyle-mccarthy)
 | 
			
		||||
- Bug #13728: Fixed the bug when `yii\behaviors\SluggableBehavior` wasn't preserving immutable slug values (Kolyunya)
 | 
			
		||||
- Bug #13707: Fixed `yii\web\ErrorHandler` and `yii\web\ErrorAction` not setting correct response code to response object before rendering error view (samdark)
 | 
			
		||||
- Enh #13698: `yii\grid\DataColumn` filter is automatically generated as dropdown list in case of `format` set to `boolean` (bizley)
 | 
			
		||||
- Enh #13254: Core validators no longer require `Yii::$app` to be set (sammousa)
 | 
			
		||||
- Bug #4408: Add support for unicode word characters and `+` character in attribute names (sammousa, kmindi)
 | 
			
		||||
- Bug #10372: Fixed console controller including complex typed arguments in help (sammousa)
 | 
			
		||||
- Bug #13738: Fixed `getQueryParams()` method in `yii.js` to correctly parse URL with question mark and no query parameters (vladdnepr)
 | 
			
		||||
- Bug #13776: Fixed setting precision and scale for decimal columns in MSSQL (arturf)
 | 
			
		||||
- Bug #13704: Fixed `yii\validators\UniqueValidator` to prefix attribute name with model's database table name (vladis84)
 | 
			
		||||
- Enh #13770: Added support for `yii\widgets\Menu` item classes definition in the form of an array (Kolyunya)
 | 
			
		||||
- Enh #13820: Add new HTTP status code 451 (yyxx9988)
 | 
			
		||||
- Enh #13823: Refactored migrations template (Kolyunya)
 | 
			
		||||
- Bug #13807: Fixed `yii\db\QueryBuilder` to inherit subquery params when building a `INSERT INTO ... SELECT` query (sergeymakinen)
 | 
			
		||||
- Enh #13837: Refactored masking of CSRF tokens (sammousa)
 | 
			
		||||
- Enh #13845: `mt_rand()` is used instead of `rand()` in `yii\captcha\CaptchaAction` (kalessil)
 | 
			
		||||
- Enh #13883: `yii\data\SqlDataProvider` now provides automatic fallback for the case when `totalCount` is not specified (SamMousa)
 | 
			
		||||
- Enh #13376: Data provider now automatically sets an ID so there is no need to set it manually in case multiple data providers are used with pagination (SamMousa)
 | 
			
		||||
- Enh #13369: Added ability to render current `yii\widgets\LinkPager` page disabled (aquy)
 | 
			
		||||
- Enh #13837: Refactored masking of CSRF tokens (sammousa)
 | 
			
		||||
- Enh #13560: Refactored `\yii\widgets\FragmentCache::getCachedContent()`, added tests (Kolyunya)
 | 
			
		||||
- Bug #13901: Fixed passing unused parameter to `formatMessage()` call in `\yii\validators\IpValidator` (Kolyunya)
 | 
			
		||||
- Enh #13911: Significantly enhanced MSSQL schema reading performance (paulzi, WebdevMerlion)
 | 
			
		||||
- Enh #13945: Removed Courier New from error page fonts list since it looks bad on Linux (samdark)
 | 
			
		||||
- Bug #13961: Fixed `unserialize()` error during RBAC rule retrieving from PostgreSQL DBMS (vsguts)
 | 
			
		||||
- Enh #13963: Added tests for `yii\behaviors\TimestampBehavior` (vladis84)
 | 
			
		||||
- Enh #13976: Disabled IPv6 check on `\yii\validators\IpValidator` as it turns out it is not needed for `inet_*` methods to work (mikk150)
 | 
			
		||||
- Enh #13981: `yii\caching\Cache::getOrSet()` now supports both `Closure` and `callable` (silverfire)
 | 
			
		||||
- Enh #13911: Significantly enhanced MSSQL schema reading performance (paulzi, WebdevMerlion)
 | 
			
		||||
- Enh #13994: Refactored `yii\filters\RateLimiter`. Added tests (vladis84)
 | 
			
		||||
- Enh #14059: Removed unused AR instantiating for calling of static methods (ElisDN)
 | 
			
		||||
- Enh #13240: Client scripts registration in `yii\widgets\ActiverForm` was moved to the separate `registerClientScript()` method (uaoleg, silverfire)
 | 
			
		||||
- Enh: Added `yii\di\Instance::__set_state()` method to restore object after serialization using `var_export()` function (silvefire)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
2.0.11.2 February 08, 2017
 | 
			
		||||
--------------------------
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user