2021-01-04 11:03:02 +08:00
# v2.1.2 - TBD
2020-12-30 00:13:06 +08:00
## Fixed
- [#3050 ](https://github.com/hyperf/hyperf/pull/3050 ) Fixed extra data saved twice when use `save()` after `increment()` with `extra` .
2021-01-07 16:39:49 +08:00
- [#3082 ](https://github.com/hyperf/hyperf/pull/3082 ) Fixed connection has already been bound to another coroutine when used in defer for `hyperf/db` .
2021-01-10 11:37:33 +08:00
- [#3084 ](https://github.com/hyperf/hyperf/pull/3084 ) Fixed `getRealPath` does not works in phar.
2021-01-08 15:06:04 +08:00
- [#3087 ](https://github.com/hyperf/hyperf/pull/3087 ) Fixed memory leak when using pipeline sometimes.
2021-01-09 17:44:10 +08:00
- [#3095 ](https://github.com/hyperf/hyperf/pull/3095 ) Fixed unexpected behavior for `ElasticsearchEngine::getTotalCount()` in `hyperf/scout` .
2020-12-30 00:13:06 +08:00
2021-01-07 15:50:28 +08:00
## Added
- [#3066 ](https://github.com/hyperf/hyperf/pull/3066 ) Added method `ConnectionInterface::run(Closure $closure)` for `hyperf/db` .
2021-01-07 17:12:25 +08:00
## Optimized
- [#3046 ](https://github.com/hyperf/hyperf/pull/3046 ) Optimized `phar:build` for rewriting `scan_cacheable` .
2021-01-06 16:01:13 +08:00
## Changed
- [#3077 ](https://github.com/hyperf/hyperf/pull/3077 ) Reduced `league/flysystem` to `^1.0` .
2021-01-04 11:03:02 +08:00
# v2.1.1 - 2021-01-04
2020-12-28 10:57:25 +08:00
2020-12-28 18:11:01 +08:00
## Fixed
- [#3045 ](https://github.com/hyperf/hyperf/pull/3045 ) Fixed type hint error, when don't set `true` for `PDO::ATTR_PERSISTENT` .
2021-01-04 11:03:02 +08:00
- [#3047 ](https://github.com/hyperf/hyperf/pull/3047 ) Fixed bug that renew sid in all namespaces failed.
- [#3062 ](https://github.com/hyperf/hyperf/pull/3062 ) Fixed bug that parameters don't parsed correctly in grpc server.
2020-12-28 18:11:01 +08:00
2021-01-04 10:32:49 +08:00
## Added
2021-01-04 11:03:02 +08:00
- [#3052 ](https://github.com/hyperf/hyperf/pull/3052 ) Support collecting metrics while running command.
2021-01-04 10:32:49 +08:00
- [#3054 ](https://github.com/hyperf/hyperf/pull/3054 ) Support `Engine::close` protocol and improve error handling for `socketio-server` .
2020-12-28 10:57:25 +08:00
# v2.1.0 - 2020-12-28
2020-12-25 10:11:53 +08:00
2020-10-13 12:47:58 +08:00
## Dependencies Upgrade
2020-12-27 13:34:58 +08:00
- Upgraded `php` to `>=7.3` ;
2020-10-13 12:47:58 +08:00
- 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` ;
2020-10-29 15:26:12 +08:00
- Upgraded `jcchavezs/zipkin-opentracing` to `^0.2.0` ;
2020-12-01 14:55:18 +08:00
- Upgraded `doctrine/dbal` to `^3.0` ;
2020-12-27 10:24:51 +08:00
- Upgraded `league/flysystem` to `^1.0|^2.0` ;
2020-10-13 12:47:58 +08:00
## 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-21 13:50:23 +08:00
- Removed component `hyperf/paginator` from database's dependencies.
2020-10-31 12:29:27 +08:00
- Removed method `stats` from `Hyperf\Utils\Coroutine\Concurrent` .
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-24 17:43:46 +08:00
- `Hyperf\Guzzle\CoroutineHandler`
* Deleted method `execute`
* Method `initHeaders` will return `$headers` , instead of assigning "$headers" directly to the client.
* Deleted method `checkStatusCode`
2020-10-28 10:57:29 +08:00
- [#2720 ](https://github.com/hyperf/hyperf/pull/2720 ) Don't set `data_type` for `PDOStatement::bindValue` .
2020-11-25 17:45:43 +08:00
- [#2871 ](https://github.com/hyperf/hyperf/pull/2871 ) Use `(string) $body` instead of `$body->getContents()` for getting contents from `StreamInterface` , because method `getContents()` only returns the remaining contents in a string.
2020-12-02 16:29:54 +08:00
- [#2909 ](https://github.com/hyperf/hyperf/pull/2909 ) Allow setting repeated middlewares.
2020-12-08 10:09:30 +08:00
- [#2935 ](https://github.com/hyperf/hyperf/pull/2935 ) Changed the string format for default exception formatter.
2020-12-16 09:38:41 +08:00
- [#2979 ](https://github.com/hyperf/hyperf/pull/2979 ) Don't format `decimal` to `float` for command `gen:model` by default.
2020-10-28 10:57:29 +08:00
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.
2020-12-07 01:51:34 +08:00
- [#2923 ](https://github.com/hyperf/hyperf/pull/2923 ) Added `Hyperf\Utils\Waiter` which can wait coroutine to end.
2020-12-24 09:58:29 +08:00
- [#3001 ](https://github.com/hyperf/hyperf/pull/3001 ) Added method `Hyperf\Database\Model\Collection::columns()` .
2020-12-23 13:42:40 +08:00
- [#3002 ](https://github.com/hyperf/hyperf/pull/3002 ) Added params `$depth` and `$flags` for `Json::decode` and `Json::encode` .
2020-10-31 10:49:05 +08:00
## Fixed
- [#2741 ](https://github.com/hyperf/hyperf/pull/2741 ) Fixed bug that process does not works in swow server.
2020-12-25 10:11:53 +08:00
## Optimized
- [#3009 ](https://github.com/hyperf/hyperf/pull/3009 ) Optimized code for prometheus which support `https` not only `http` .