mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
7.6 KiB
7.6 KiB
v2.1.4 - TBD
Fixed
- #3165 Fixed
Hyperf\Database\Schema\MySqlBuilder::getColumnListing
does not works inMySQL 8.0
. - #3174 Fixed bug that the where bindings will be replaced by not rigorous code.
- #3179 Fixed json-rpc client failed to receive data when the target server restart.
- #3191 Fixed rpc-client with pool transporter recv failed once when the server restart in the next request.
Added
- #3170 Added
FindNewerDriver
which is friendly with mac, linux and docker for watcher.
Optimized
- #3169 Optimized code for
set_error_handler
ofErrorExceptionHandler
, which expectscallable(int, string, string, int, array): bool
. - #3191 Optimized code for
hyperf/json-rpc
, try to reconnect the server when connection closed.
Changed
- #3174 Assert the binding values for database by default.
v2.1.3 - 2021-01-18
Fixed
- #3070 Fixed
tracer
does not works in hyperfv2.1
. - #3106 Fixed bug that call to a member function getArrayCopy() on null when the parent coroutine context destroyed.
- #3108 Fixed routes will be replaced by another group when using
describe:routes
command. - #3118 Fixed bug that the config key of migrations is not correct.
- #3126 Fixed bug that swoole v4.6
SWOOLE_HOOK_SOCKETS
conflicts with jaeger tracing. - #3137 Fixed type hint error, when don't set
true
forPDO::ATTR_PERSISTENT
. - #3141 Fixed
doctrine/dbal
does not works when using migration.
Added
- #3059 The merged attributes in the view component support attributes other than 'class'.
- #3123 Added method
ComponentAttributeBag::has()
forview-engine
.
v2.1.2 - 2021-01-11
Fixed
- #3050 Fixed extra data saved twice when use
save()
afterincrement()
withextra
. - #3082 Fixed connection has already been bound to another coroutine when used in defer for
hyperf/db
. - #3084 Fixed
getRealPath
does not works in phar. - #3087 Fixed memory leak when using pipeline sometimes.
- #3095 Fixed unexpected behavior for
ElasticsearchEngine::getTotalCount()
inhyperf/scout
.
Added
- #2847 Added
hyperf/kafka
component. - #3066 Added method
ConnectionInterface::run(Closure $closure)
forhyperf/db
.
Optimized
- #3046 Optimized
phar:build
for rewritingscan_cacheable
.
Changed
- #3077 Reduced
league/flysystem
to^1.0
.
v2.1.1 - 2021-01-04
Fixed
- #3045 Fixed type hint error, when don't set
true
forPDO::ATTR_PERSISTENT
. - #3047 Fixed bug that renew sid in all namespaces failed.
- #3062 Fixed bug that parameters don't parsed correctly in grpc server.
Added
- #3052 Support collecting metrics while running command.
- #3054 Support
Engine::close
protocol and improve error handling forsocketio-server
.
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
.