2021-05-11 12:18:49 +08:00
# v2.2.0 - TBD
## Dependencies Upgrade
- Upgraded `friendsofphp/php-cs-fixer` to `^3.0` ;
2021-05-11 13:27:43 +08:00
- Upgraded `psr/container` to `^1.0|^2.0` ;
2021-05-13 09:37:44 +08:00
- Upgraded `egulias/email-validator` to `^3.0` ;
2021-06-18 18:42:01 +08:00
- Upgraded `markrogoyski/math-php` to `^2.0` ;
2021-05-13 09:58:05 +08:00
## Dependencies Changed
2021-06-01 19:10:45 +08:00
- [#3577 ](https://github.com/hyperf/hyperf/pull/3577 ) `domnikl/statsd` is abandoned and no longer maintained. The author suggests using the `slickdeals/statsd` package instead.
2021-05-13 15:35:09 +08:00
## Changed
2021-06-05 00:17:11 +08:00
- [#3334 ](https://github.com/hyperf/hyperf/pull/3334 ) Changed the return value of `LengthAwarePaginator::toArray()` to be consistent with that of `Paginator::toArray()` .
2021-06-22 18:19:46 +08:00
- [#3550 ](https://github.com/hyperf/hyperf/pull/3550 ) Removed `broker` and `bootstrap_server` from `kafka` , please use `brokers` and `bootstrap_servers` instead.
2021-06-01 19:10:45 +08:00
- [#3580 ](https://github.com/hyperf/hyperf/pull/3580 ) Changed the default priority of aspect to 0.
- [#3582 ](https://github.com/hyperf/hyperf/pull/3582 ) Changed the consumer tag of amqp to empty string.
2021-06-01 00:56:09 +08:00
- [#3634 ](https://github.com/hyperf/hyperf/pull/3634 ) Use Fork Process strategy to replace BetterReflection strategy.
2021-06-01 21:14:32 +08:00
- [#3649 ](https://github.com/hyperf/hyperf/pull/3649 ) Removed `roave/better-reflection` from `hyperf/database` when using `gen:model` .
2021-06-02 10:52:56 +08:00
- [#3651 ](https://github.com/hyperf/hyperf/pull/3651 ) Removed `roave/better-reflection` from LazyLoader.
2021-06-02 13:18:33 +08:00
- [#3654 ](https://github.com/hyperf/hyperf/pull/3654 ) Removed `roave/better-reflection` from other components.
2021-06-05 22:39:01 +08:00
- [#3676 ](https://github.com/hyperf/hyperf/pull/3676 ) Use `promphp/prometheus_client_php` instead of `endclothing/prometheus_client_php` .
2021-06-11 11:01:20 +08:00
- [#3694 ](https://github.com/hyperf/hyperf/pull/3694 ) Changed `Hyperf\CircuitBreaker\CircuitBreakerInterface` to support php8.
2021-06-16 00:27:11 +08:00
- Changed `CircuitBreaker::inc*Counter()` to `CircuitBreaker::incr*Counter()` .
- Changed type hint for method `AbstractHandler::switch()` .
2021-06-18 18:18:34 +08:00
- [#3706 ](https://github.com/hyperf/hyperf/pull/3706 ) Changed the style of writing to `#[Middlewares(FooMiddleware::class)]` from `@Middlewares({@Middleware(FooMiddleware::class)})` in PHP8.
2021-06-20 18:22:38 +08:00
- [#3715 ](https://github.com/hyperf/hyperf/pull/3715 ) Restructure nacos component, be sure to reread the documents.
2021-06-23 10:23:42 +08:00
- [#3722 ](https://github.com/hyperf/hyperf/pull/3722 ) Removed config `config_apollo.php` , please use `config_center.php` instead.
- [#3725 ](https://github.com/hyperf/hyperf/pull/3725 ) Removed config `config_etcd.php` , please use `config_center.php` instead.
2021-06-23 20:25:22 +08:00
- [#3730 ](https://github.com/hyperf/hyperf/pull/3730 ) Removed config `brokers` and `update_brokers` from kafka.
2021-06-05 22:39:01 +08:00
2021-05-29 23:26:08 +08:00
## Deprecated
2021-06-01 19:10:45 +08:00
- [#3636 ](https://github.com/hyperf/hyperf/pull/3636 ) `Hyperf\Utils\Resource` will be deprecated in v2.3, please use `Hyperf\Utils\ResourceGenerator` instead.
2021-05-29 23:26:08 +08:00
2021-05-15 17:46:42 +08:00
## Added
- [#3589 ](https://github.com/hyperf/hyperf/pull/3589 ) Added DAG component.
2021-05-28 11:57:20 +08:00
- [#3606 ](https://github.com/hyperf/hyperf/pull/3606 ) Added RPN component.
- [#3629 ](https://github.com/hyperf/hyperf/pull/3629 ) Added `Hyperf\Utils\Channel\ChannelManager` which used to manage channels.
2021-05-28 19:32:50 +08:00
- [#3631 ](https://github.com/hyperf/hyperf/pull/3631 ) Support multiplexing for AMQP component.
2021-06-02 22:22:41 +08:00
- [#3639 ](https://github.com/hyperf/hyperf/pull/3639 ) Close push channel and socket when worker exited.
- [#3640 ](https://github.com/hyperf/hyperf/pull/3640 ) Optimized log level for SwooleIO.
- [#3657 ](https://github.com/hyperf/hyperf/pull/3657 ) Fixed memory exhausted for rabbitmq caused by confirm channel.
2021-06-03 09:50:25 +08:00
- [#3659 ](https://github.com/hyperf/hyperf/pull/3659 ) Optimized code which be used to close connection friendly.
2021-06-07 21:42:09 +08:00
- [#3681 ](https://github.com/hyperf/hyperf/pull/3681 ) Fixed bug that rpc client does not work for amqp.
2021-06-01 19:10:45 +08:00
- [#3635 ](https://github.com/hyperf/hyperf/pull/3635 ) Added `Hyperf\Utils\CodeGen\PhpParser` which used to generate AST for reflection.
- [#3648 ](https://github.com/hyperf/hyperf/pull/3648 ) Added `Hyperf\Utils\CodeGen\PhpDocReaderManager` to manage `PhpDocReader` .
2021-06-06 14:19:18 +08:00
- [#3679 ](https://github.com/hyperf/hyperf/pull/3679 ) Added Nacos SDK component.
2021-06-20 08:45:33 +08:00
- [#3712 ](https://github.com/hyperf/hyperf/pull/3712 ) The input parameters of `InstanceProvider::update()` are modified to make it more friendly.
2021-06-15 23:13:21 +08:00
- [#3698 ](https://github.com/hyperf/hyperf/pull/3698 ) Support PHP8 Attribute which can replace doctrine annotations.
2021-06-20 10:18:28 +08:00
- [#3714 ](https://github.com/hyperf/hyperf/pull/3714 ) Added ide-helper component.
2021-06-23 10:23:42 +08:00
- [#3722 ](https://github.com/hyperf/hyperf/pull/3722 ) Added config-center component.
2021-06-23 15:11:58 +08:00
- [#3728 ](https://github.com/hyperf/hyperf/pull/3728 ) Added support for `secret` of Apollo.
2021-06-01 22:01:53 +08:00
2021-06-05 12:03:34 +08:00
## Optimized
- [#3670 ](https://github.com/hyperf/hyperf/pull/3670 ) Adapt database component to support php8.
2021-06-05 13:42:37 +08:00
- [#3673 ](https://github.com/hyperf/hyperf/pull/3673 ) Adapt all components to support php8.
2021-06-23 20:25:22 +08:00
- [#3730 ](https://github.com/hyperf/hyperf/pull/3730 ) Optimized code for kafka component.
- Support `timeout` for `Producer` to avoid requests not responding.
- Removed useless code with pool.
- Throw exceptions when connect kafka failed.
2021-06-05 12:03:34 +08:00
2021-06-01 22:01:53 +08:00
## Fixed
- [#3650 ](https://github.com/hyperf/hyperf/pull/3650 ) Fixed bug that `ReflectionParameter::getClass()` will be deprecated in php8.
2021-06-10 21:07:12 +08:00
- [#3692 ](https://github.com/hyperf/hyperf/pull/3692 ) Fixed bug that class proxies couldn't be included when building phar.