Dependencies Upgrade
- Upgraded
phpto>=7.3; - Upgraded
phpunit/phpunitto^9.0; - Upgraded
guzzlehttp/guzzleto^6.0|^7.0; - Upgraded
vlucas/phpdotenvto^5.0; - Upgraded
endclothing/prometheus_client_phpto^1.0; - Upgraded
twig/twigto^3.0; - Upgraded
jcchavezs/zipkin-opentracingto^0.2.0; - Upgraded
doctrine/dbalto^3.0; - Upgraded
league/flysystemto^1.0|^2.0;
Removed
- Removed deprecated property
$namefromHyperf\Amqp\Builder. - Removed deprecated method
consumefromHyperf\Amqp\Message\ConsumerMessageInterface. - Removed deprecated property
$runningfromHyperf\AsyncQueue\Driver\Driver. - Removed deprecated method
parseParametersfromHyperf\HttpServer\CoreMiddleware. - Removed deprecated const
ON_WORKER_STARTandON_WORKER_EXITfromHyperf\Utils\Coordinator\Constants. - Removed deprecated method
getfromHyperf\Utils\Coordinator. - Removed config
rate-limit.php, please userate_limit.phpinstead. - Removed useless class
Hyperf\Resource\Response\ResponseEmitter. - Removed component
hyperf/paginatorfrom database's dependencies. - Removed method
statsfromHyperf\Utils\Coroutine\Concurrent.
Changed
-
Hyperf\Utils\Coroutine::parentIdwhich 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
initHeaderswill return$headers, instead of assigning "$headers" directly to the client. - Deleted method
checkStatusCode
- Deleted method
-
#2720 Don't set
data_typeforPDOStatement::bindValue. -
#2871 Use
(string) $bodyinstead 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
decimaltofloatfor commandgen:modelby default.
Deprecated
Hyperf\AsyncQueue\Signal\DriverStopHandlerwill be deprecated in v2.2, please useHyperf\Process\Handler\ProcessStopHandlerinstead.Hyperf\Server\SwooleEventwill be deprecated in v3.0, please useHyperf\Server\Eventinstead.
Added
- #2659 #2663 Support
HttpServerfor Swow. - #2671 Added
Hyperf\AsyncQueue\Listener\QueueHandleListenerwhich can record running logs for async-queue. - #2923 Added
Hyperf\Utils\Waiterwhich can wait coroutine to end. - #3001 Added method
Hyperf\Database\Model\Collection::columns(). - #3002 Added params
$depthand$flagsforJson::decodeandJson::encode.
Fixed
- #2741 Fixed bug that process does not works in swow server.
Optimized
- #3009 Optimized code for prometheus which support
httpsnot onlyhttp.