mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
b135804ba7
* Removed type hint form `MysqlConnector::setModes`. * Update CHANGELOG-2.1.md
3.7 KiB
3.7 KiB
v2.1.1 - TBD
Fixed
- #3045 Fixed type hint error, when don't set
true
forPDO::ATTR_PERSISTENT
.
v2.1.0 - 2020-12-28
Dependencies Upgrade
- Upgraded
php
to>=7.3
; - Upgraded
phpunit/phpunit
to^9.0
; - Upgraded
guzzlehttp/guzzle
to^6.0|^7.0
; - Upgraded
vlucas/phpdotenv
to^5.0
; - Upgraded
endclothing/prometheus_client_php
to^1.0
; - Upgraded
twig/twig
to^3.0
; - Upgraded
jcchavezs/zipkin-opentracing
to^0.2.0
; - Upgraded
doctrine/dbal
to^3.0
; - Upgraded
league/flysystem
to^1.0|^2.0
;
Removed
- Removed deprecated property
$name
fromHyperf\Amqp\Builder
. - Removed deprecated method
consume
fromHyperf\Amqp\Message\ConsumerMessageInterface
. - Removed deprecated property
$running
fromHyperf\AsyncQueue\Driver\Driver
. - Removed deprecated method
parseParameters
fromHyperf\HttpServer\CoreMiddleware
. - Removed deprecated const
ON_WORKER_START
andON_WORKER_EXIT
fromHyperf\Utils\Coordinator\Constants
. - Removed deprecated method
get
fromHyperf\Utils\Coordinator
. - Removed config
rate-limit.php
, please userate_limit.php
instead. - Removed useless class
Hyperf\Resource\Response\ResponseEmitter
. - Removed component
hyperf/paginator
from database's dependencies. - Removed method
stats
fromHyperf\Utils\Coroutine\Concurrent
.
Changed
-
Hyperf\Utils\Coroutine::parentId
which returns the parent coroutine ID- Returns 0 when running in the top level coroutine.
- Throws RunningInNonCoroutineException when running in non-coroutine context
- Throws CoroutineDestroyedException when the coroutine has been destroyed
-
Hyperf\Guzzle\CoroutineHandler
- Deleted method
execute
- Method
initHeaders
will return$headers
, instead of assigning "$headers" directly to the client. - Deleted method
checkStatusCode
- Deleted method
-
#2720 Don't set
data_type
forPDOStatement::bindValue
. -
#2871 Use
(string) $body
instead of$body->getContents()
for getting contents fromStreamInterface
, because methodgetContents()
only returns the remaining contents in a string. -
#2909 Allow setting repeated middlewares.
-
#2935 Changed the string format for default exception formatter.
-
#2979 Don't format
decimal
tofloat
for commandgen:model
by default.
Deprecated
Hyperf\AsyncQueue\Signal\DriverStopHandler
will be deprecated in v2.2, please useHyperf\Process\Handler\ProcessStopHandler
instead.Hyperf\Server\SwooleEvent
will be deprecated in v3.0, please useHyperf\Server\Event
instead.
Added
- #2659 #2663 Support
HttpServer
for Swow. - #2671 Added
Hyperf\AsyncQueue\Listener\QueueHandleListener
which can record running logs for async-queue. - #2923 Added
Hyperf\Utils\Waiter
which can wait coroutine to end. - #3001 Added method
Hyperf\Database\Model\Collection::columns()
. - #3002 Added params
$depth
and$flags
forJson::decode
andJson::encode
.
Fixed
- #2741 Fixed bug that process does not works in swow server.
Optimized
- #3009 Optimized code for prometheus which support
https
not onlyhttp
.