2020-10-14 08:57:43 +08:00
# v2.1.0 - TBD
2020-10-13 12:47:58 +08:00
## Dependencies Upgrade
- 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` ;
## Removed
- Removed deprecated property `$name` from `Hyperf\Amqp\Builder` .
- Removed deprecated method `consume` from `Hyperf\Amqp\Message\ConsumerMessageInterface` .
- Removed deprecated property `$running` from `Hyperf\AsyncQueue\Driver\Driver` .
- Removed deprecated method `parseParameters` from `Hyperf\HttpServer\CoreMiddleware` .
- Removed deprecated const `ON_WORKER_START` and `ON_WORKER_EXIT` from `Hyperf\Utils\Coordinator\Constants` .
- Removed deprecated method `get` from `Hyperf\Utils\Coordinator` .
2020-10-14 08:57:43 +08:00
- Removed config `rate-limit.php` , please use `rate_limit.php` instead.
2020-10-15 11:31:31 +08:00
- Removed useless class `Hyperf\Resource\Response\ResponseEmitter` .
2020-10-13 12:47:58 +08:00
2020-10-15 19:42:26 +08:00
## 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
2020-10-13 12:47:58 +08:00
## Deprecated
- `Hyperf\AsyncQueue\Signal\DriverStopHandler` will be deprecated in v2.2, please use `Hyperf\Process\Handler\ProcessStopHandler` instead.
2020-10-16 10:14:05 +08:00
- `Hyperf\Server\SwooleEvent` will be deprecated in v3.0, please use `Hyperf\Server\Event` instead.
2020-10-15 11:31:31 +08:00
## Added
2020-10-15 19:42:26 +08:00
- [#2659 ](https://github.com/hyperf/hyperf/pull/2659 ) [#2663 ](https://github.com/hyperf/hyperf/pull/2663 ) Support `HttpServer` for [Swow ](https://github.com/swow/swow ).
2020-10-16 15:19:13 +08:00
- [#2671 ](https://github.com/hyperf/hyperf/pull/2671 ) Added `Hyperf\AsyncQueue\Listener\QueueHandleListener` which can record running logs for async-queue.