2021-03-22 09:48:28 +08:00
# v2.1.12 - TBD
2021-03-29 09:30:55 +08:00
# v2.1.12 - 2021-03-29
2021-03-27 09:36:05 +08:00
## Fixed
- [#3423 ](https://github.com/hyperf/hyperf/pull/3423 ) Fixed crontab does not works when worker_num isn't integer for task worker strategy.
2021-03-28 12:11:41 +08:00
- [#3426 ](https://github.com/hyperf/hyperf/pull/3426 ) Fixed bug that middleware will be handled twice when used in optional route.
2021-03-27 09:36:05 +08:00
2021-03-26 22:19:19 +08:00
## Optimized
- [#3422 ](https://github.com/hyperf/hyperf/pull/3422 ) Optimized code for `co-phpunit` .
2021-03-22 09:48:28 +08:00
# v2.1.11 - 2021-03-22
2021-03-15 09:48:32 +08:00
2021-03-17 16:42:19 +08:00
## Added
- [#3376 ](https://github.com/hyperf/hyperf/pull/3376 ) Support `$connection` and `$attempts` for `Hyperf\DbConnection\Annotation\Transactional` .
2021-03-21 18:10:30 +08:00
- [#3403 ](https://github.com/hyperf/hyperf/pull/3403 ) Added method `Hyperf\Testing\Client::sendRequest()` that you can use your own server request.
2021-03-17 16:42:19 +08:00
## Fixed
- [#3380 ](https://github.com/hyperf/hyperf/pull/3380 ) Fixed bug that super globals does not work when request don't persist to context.
2021-03-19 13:53:18 +08:00
- [#3394 ](https://github.com/hyperf/hyperf/pull/3394 ) Fixed bug that the injected property will be replaced by injected property defined in trait.
2021-03-19 14:50:04 +08:00
- [#3395 ](https://github.com/hyperf/hyperf/pull/3395 ) Fixed bug that the private property which injected by parent class does not exists in class.
2021-03-19 18:18:08 +08:00
- [#3398 ](https://github.com/hyperf/hyperf/pull/3398 ) Fixed UploadedFile::isValid() does not works in phpunit.
2021-03-17 16:42:19 +08:00
2021-03-15 09:48:32 +08:00
# v2.1.10 - 2021-03-15
2021-03-08 09:09:58 +08:00
2021-03-08 18:32:08 +08:00
## Fixed
- [#3348 ](https://github.com/hyperf/hyperf/pull/3348 ) Fixed bug that `Arr::forget` failed when the integer key does not exists.
2021-03-10 11:27:01 +08:00
- [#3351 ](https://github.com/hyperf/hyperf/pull/3351 ) Fixed bug that `FormRequest` could't get the changed data from `Context` .
2021-03-11 20:52:50 +08:00
- [#3356 ](https://github.com/hyperf/hyperf/pull/3356 ) Fixed bug that could't get the valid `uri` when using `Hyperf\Testing\Client` .
2021-03-15 09:48:32 +08:00
- [#3363 ](https://github.com/hyperf/hyperf/pull/3363 ) Fixed bug that `constants` which defined in `bin/hyperf.php` does not works for `server:start` .
- [#3365 ](https://github.com/hyperf/hyperf/pull/3365 ) Fixed bug that `pid_file` will be created accidently when you don't configure `pid_file` in coroutine style server.
2021-03-08 18:32:08 +08:00
2021-03-13 21:11:10 +08:00
## Optimized
- [#3364 ](https://github.com/hyperf/hyperf/pull/3364 ) Optimized `phar:build` that you can run phar without `php` , such as `./composer.phar` instead of `php composer.phar` .
2021-03-14 17:49:28 +08:00
- [#3367 ](https://github.com/hyperf/hyperf/pull/3367 ) Optimized code for guessing the return type for custom caster when using `gen:model` .
2021-03-13 21:11:10 +08:00
2021-03-08 09:09:58 +08:00
# v2.1.9 - 2021-03-08
2021-03-01 09:34:33 +08:00
2021-03-02 19:07:31 +08:00
## Fixed
- [#3326 ](https://github.com/hyperf/hyperf/pull/3326 ) Fixed bug that `unpack` custom data failed when using `JsonEofPacker` .
2021-03-03 20:07:29 +08:00
- [#3330 ](https://github.com/hyperf/hyperf/pull/3330 ) Fixed data query error caused by unexpected change of `$constraints` by other coroutine.
2021-03-02 19:07:31 +08:00
2021-03-02 19:39:31 +08:00
## Added
- [#3325 ](https://github.com/hyperf/hyperf/pull/3325 ) Added `enable` to control the crontab task which to register or not.
2021-03-06 10:21:36 +08:00
## Optimized
- [#3338 ](https://github.com/hyperf/hyperf/pull/3338 ) Optimized code for `testing` which mock request in an alone coroutine.
2021-03-01 09:34:33 +08:00
# v2.1.8 - 2021-03-01
2021-02-22 08:56:22 +08:00
2021-02-24 08:36:57 +08:00
## Fixed
- [#3301 ](https://github.com/hyperf/hyperf/pull/3301 ) Fixed bug that the value of ttl will be converted to 0 when you don't set it for `hyperf/cache` .
2021-02-25 10:56:23 +08:00
## Added
- [#3310 ](https://github.com/hyperf/hyperf/pull/3310 ) Added `Blueprint::comment()` which you can set comment of table for migration.
2021-02-25 11:53:01 +08:00
- [#3311 ](https://github.com/hyperf/hyperf/pull/3311 ) Added `RouteCollector::getRouteParser` which you can get `RouteParser` from `RouteCollector` .
2021-02-26 19:09:30 +08:00
- [#3316 ](https://github.com/hyperf/hyperf/pull/3316 ) Allow custom driver which you can used to register your own driver for `hyperf/db` .
2021-02-25 10:56:23 +08:00
2021-02-24 17:56:01 +08:00
## Optimized
- [#3308 ](https://github.com/hyperf/hyperf/pull/3308 ) Send response directly when the handler does not exists.
2021-02-27 13:31:07 +08:00
- [#3319 ](https://github.com/hyperf/hyperf/pull/3319 ) Optimized code that get connection from pool.
2021-02-24 17:56:01 +08:00
2021-02-27 14:58:06 +08:00
## Incubator
- [rpc-multiplex ](https://github.com/hyperf/rpc-multiplex-incubator ) Rpc for multiplexing connection
- [db-pgsql ](https://github.com/hyperf/db-pgsql-incubator ) PgSQL driver for Hyperf DB Component
2021-02-22 08:56:22 +08:00
# v2.1.7 - 2021-02-22
2021-02-08 14:23:40 +08:00
2021-02-18 19:46:39 +08:00
## Fixed
- [#3272 ](https://github.com/hyperf/hyperf/pull/3272 ) Fixed bug that rename column name failed when using `doctrine/dbal` .
2021-02-13 17:52:59 +08:00
## Added
- [#3261 ](https://github.com/hyperf/hyperf/pull/3261 ) Added method `Pipeline::handleCarry()` which to handle the returning value.
2021-02-16 11:27:03 +08:00
- [#3267 ](https://github.com/hyperf/hyperf/pull/3267 ) Added `Hyperf\Utils\Reflection\ClassInvoker` which you can used to execute non public methods or get non public properties.
2021-02-18 18:24:16 +08:00
- [#3268 ](https://github.com/hyperf/hyperf/pull/3268 ) Added support for kafka consumers to subscribe to multiple topics.
2021-02-21 18:36:03 +08:00
- [#3193 ](https://github.com/hyperf/hyperf/pull/3193 ) [#3296 ](https://github.com/hyperf/hyperf/pull/3296 ) Added option `-M` which you can mount external files or dirs to a virtual location within the phar archive for `phar:build` .
2021-02-20 10:22:50 +08:00
2021-02-18 19:04:12 +08:00
## Changed
- [#3258 ](https://github.com/hyperf/hyperf/pull/3258 ) Set different client ids based on different kafka consumers.
2021-02-19 19:18:45 +08:00
- [#3282 ](https://github.com/hyperf/hyperf/pull/3282 ) Renamed `stoped` to `stopped` for `hyperf/signal` .
2021-02-18 19:04:12 +08:00
2021-02-08 14:23:40 +08:00
# v2.1.6 - 2021-02-08
2021-02-01 11:18:42 +08:00
2021-02-01 13:43:16 +08:00
## Fixed
- [#3233 ](https://github.com/hyperf/hyperf/pull/3233 ) Fixed connection exhausted, when connect amqp server failed.
2021-02-05 10:51:04 +08:00
- [#3245 ](https://github.com/hyperf/hyperf/pull/3245 ) Fixed `autoCommit` does not works when you set `false` for `hyperf/kafka` .
2021-02-07 15:17:18 +08:00
- [#3255 ](https://github.com/hyperf/hyperf/pull/3255 ) Fixed bug that `defer` cannot be triggered in nsq consumer.
2021-02-01 13:43:16 +08:00
2021-02-05 11:18:15 +08:00
## Optimized
- [#3249 ](https://github.com/hyperf/hyperf/pull/3249 ) Optimized `hyperf/kafka` which won't make a new producer to requeue message.
2021-02-03 09:55:04 +08:00
## Removed
- [#3235 ](https://github.com/hyperf/hyperf/pull/3235 ) Removed rebalance check, because `longlang/phpkafka` checked.
2021-02-01 11:18:42 +08:00
# v2.1.5 - 2021-02-01
2021-01-25 10:17:05 +08:00
2021-01-26 15:41:44 +08:00
## Fixed
- [#3204 ](https://github.com/hyperf/hyperf/pull/3204 ) Fixed unexpected behavior for `middlewares` when using `rpc-server` .
2021-01-27 10:10:06 +08:00
- [#3209 ](https://github.com/hyperf/hyperf/pull/3209 ) Fixed bug that connection was not be released to pool when the amqp consumer broken in coroutine style server.
2021-01-28 11:44:57 +08:00
- [#3222 ](https://github.com/hyperf/hyperf/pull/3222 ) Fixed memory leak for join queries in `hyperf/database` .
2021-01-30 19:47:11 +08:00
- [#3228 ](https://github.com/hyperf/hyperf/pull/3228 ) Fixed bug that server crash when tracer flush failed in defer.
2021-01-31 13:11:26 +08:00
- [#3230 ](https://github.com/hyperf/hyperf/pull/3230 ) Fixed `orderBy` does not works for `hyperf/scout` .
2021-01-26 15:41:44 +08:00
2021-01-27 13:46:44 +08:00
## Added
2021-01-28 12:02:54 +08:00
- [#3211 ](https://github.com/hyperf/hyperf/pull/3211 ) Added optional configuration url for nacos which used to request nacos server.
2021-01-27 13:46:44 +08:00
- [#3214 ](https://github.com/hyperf/hyperf/pull/3214 ) Added Caller which help you to use instance in coroutine security mode.
2021-01-30 16:02:22 +08:00
- [#3224 ](https://github.com/hyperf/hyperf/pull/3224 ) Added `Hyperf\Utils\CodeGen\Package::getPrettyVersion()` .
2021-01-27 13:46:44 +08:00
2021-01-27 17:49:00 +08:00
## Changed
- [#3218 ](https://github.com/hyperf/hyperf/pull/3218 ) Set qos of amqp by default.
2021-01-30 16:02:22 +08:00
- [#3224 ](https://github.com/hyperf/hyperf/pull/3224 ) Upgrade `jean85/pretty-package-versions` to `^1.2|^2.0` , which support `composer 2.x` .
2021-01-27 17:49:00 +08:00
2021-01-29 14:33:59 +08:00
## Optimized
- [#3226 ](https://github.com/hyperf/hyperf/pull/3226 ) Run pagination count as subquery for group by and havings.
2021-01-25 10:17:05 +08:00
# v2.1.4 - 2021-01-25
2021-01-18 09:49:08 +08:00
2021-01-20 18:17:54 +08:00
## Fixed
- [#3165 ](https://github.com/hyperf/hyperf/pull/3165 ) Fixed `Hyperf\Database\Schema\MySqlBuilder::getColumnListing` does not works in `MySQL 8.0` .
2021-01-22 13:03:40 +08:00
- [#3174 ](https://github.com/hyperf/hyperf/pull/3174 ) Fixed bug that the where bindings will be replaced by not rigorous code.
2021-01-22 21:41:30 +08:00
- [#3179 ](https://github.com/hyperf/hyperf/pull/3179 ) Fixed json-rpc client failed to receive data when the target server restart.
2021-01-25 10:17:05 +08:00
- [#3189 ](https://github.com/hyperf/hyperf/pull/3189 ) Fixed kafka producer unusable in cluster setup.
2021-01-24 20:06:11 +08:00
- [#3191 ](https://github.com/hyperf/hyperf/pull/3191 ) Fixed rpc-client with pool transporter recv failed once when the server restart in the next request.
2021-01-20 18:17:54 +08:00
2021-01-23 13:09:45 +08:00
## Added
- [#3170 ](https://github.com/hyperf/hyperf/pull/3170 ) Added `FindNewerDriver` which is friendly with mac, linux and docker for watcher.
2021-01-25 11:48:00 +08:00
- [#3195 ](https://github.com/hyperf/hyperf/pull/3195 ) Added `retry_count` for JsonRpcPoolTransporter, the default retry count is 2.
2021-01-23 13:09:45 +08:00
2021-01-20 17:41:26 +08:00
## Optimized
- [#3169 ](https://github.com/hyperf/hyperf/pull/3169 ) Optimized code for `set_error_handler` of `ErrorExceptionHandler` , which expects `callable(int, string, string, int, array): bool` .
2021-01-24 20:06:11 +08:00
- [#3191 ](https://github.com/hyperf/hyperf/pull/3191 ) Optimized code for `hyperf/json-rpc` , try to reconnect the server when connection closed.
2021-01-20 17:41:26 +08:00
2021-01-22 13:03:40 +08:00
## Changed
- [#3174 ](https://github.com/hyperf/hyperf/pull/3174 ) Assert the binding values for database by default.
2021-01-25 10:17:05 +08:00
## Incubator
- [DAG ](https://github.com/hyperf/dag-incubator ) Directed Acyclic Graph.
- [RPN ](https://github.com/hyperf/rpn-incubator ) Reverse Polish Notation.
2021-01-18 09:49:08 +08:00
# v2.1.3 - 2021-01-18
2021-01-11 09:57:22 +08:00
2021-01-11 19:08:16 +08:00
## Fixed
2021-01-18 09:49:08 +08:00
- [#3070 ](https://github.com/hyperf/hyperf/pull/3070 ) Fixed `tracer` does not works in hyperf `v2.1` .
2021-01-11 19:08:16 +08:00
- [#3106 ](https://github.com/hyperf/hyperf/pull/3106 ) Fixed bug that call to a member function getArrayCopy() on null when the parent coroutine context destroyed.
2021-01-13 09:46:37 +08:00
- [#3108 ](https://github.com/hyperf/hyperf/pull/3108 ) Fixed routes will be replaced by another group when using `describe:routes` command.
2021-01-13 10:53:01 +08:00
- [#3118 ](https://github.com/hyperf/hyperf/pull/3118 ) Fixed bug that the config key of migrations is not correct.
2021-01-14 09:57:01 +08:00
- [#3126 ](https://github.com/hyperf/hyperf/pull/3126 ) Fixed bug that swoole v4.6 `SWOOLE_HOOK_SOCKETS` conflicts with jaeger tracing.
2021-01-15 15:18:41 +08:00
- [#3137 ](https://github.com/hyperf/hyperf/pull/3137 ) Fixed type hint error, when don't set `true` for `PDO::ATTR_PERSISTENT` .
2021-01-15 17:00:52 +08:00
- [#3141 ](https://github.com/hyperf/hyperf/pull/3141 ) Fixed `doctrine/dbal` does not works when using migration.
2021-01-11 19:08:16 +08:00
2021-01-13 10:13:49 +08:00
## Added
- [#3059 ](https://github.com/hyperf/hyperf/pull/3059 ) The merged attributes in the view component support attributes other than 'class'.
2021-01-14 12:00:25 +08:00
- [#3123 ](https://github.com/hyperf/hyperf/pull/3123 ) Added method `ComponentAttributeBag::has()` for `view-engine` .
2021-01-13 10:13:49 +08:00
2021-01-11 09:57:22 +08:00
# v2.1.2 - 2021-01-11
2021-01-04 11:03:02 +08:00
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
2021-01-11 09:57:22 +08:00
- [#2847 ](https://github.com/hyperf/hyperf/pull/2847 ) Added `hyperf/kafka` component.
2021-01-07 15:50:28 +08:00
- [#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` .