2022-01-04 12:12:16 +08:00
# v2.2.23 - TBD
# v2.2.22 - 2022-01-04
2021-12-20 09:14:02 +08:00
2021-12-27 12:47:21 +08:00
## Fixed
- [#4399 ](https://github.com/hyperf/hyperf/pull/4399 ) Fixed bug that `Redis::scan` does not work when using redis cluster.
2021-12-30 11:06:34 +08:00
## Added
2021-12-30 18:52:44 +08:00
- [#4409 ](https://github.com/hyperf/hyperf/pull/4409 ) Added database handler for `session` .
2021-12-30 11:06:34 +08:00
- [#4411 ](https://github.com/hyperf/hyperf/pull/4411 ) Added `Hyperf\Tracer\Aspect\DbAspect` to log db records when using `hyperf/db` .
2021-12-30 16:16:01 +08:00
- [#4420 ](https://github.com/hyperf/hyperf/pull/4420 ) Support `SSL` for `Hyperf\Amqp\IO\SwooleIO` .
2021-12-30 11:06:34 +08:00
2021-12-29 11:14:18 +08:00
## Optimized
- [#4406 ](https://github.com/hyperf/hyperf/pull/4406 ) Adapt swoole 5.0 by removing swoole classes with `PSR-0` .
2022-01-04 11:56:53 +08:00
- [#4429 ](https://github.com/hyperf/hyperf/pull/4429 ) Added type hint for `Debug::getRefCount()` which only support `object` .
2021-12-29 11:14:18 +08:00
2021-12-20 09:14:02 +08:00
# v2.2.21 - 2021-12-20
2021-12-13 09:35:04 +08:00
2021-12-13 11:14:24 +08:00
## Fixed
- [#4347 ](https://github.com/hyperf/hyperf/pull/4347 ) Fixed bug that amqp io has been bound to more than one coroutine when out of buffer.
2021-12-18 12:01:27 +08:00
- [#4373 ](https://github.com/hyperf/hyperf/pull/4373 ) Fixed the metadata generation error caused by switching coroutine for snowflake.
2021-12-13 11:14:24 +08:00
2021-12-13 14:00:36 +08:00
## Added
- [#4344 ](https://github.com/hyperf/hyperf/pull/4344 ) Added `Hyperf\Crontab\Event\FailToExecute` event which will be dispatched when executing crontab failed.
2021-12-13 14:53:24 +08:00
- [#4348 ](https://github.com/hyperf/hyperf/pull/4348 ) Support to open the generated file with your IDE automatically.
2021-12-13 14:00:36 +08:00
2021-12-13 16:49:35 +08:00
## Optimized
- [#4350 ](https://github.com/hyperf/hyperf/pull/4350 ) Optimized the error message for `swoole.use_shortname` .
2021-12-15 16:18:55 +08:00
- [#4360 ](https://github.com/hyperf/hyperf/pull/4360 ) No longer uses `Swoole\Coroutine\Client` , but uses `Swoole\Coroutine\Socket` , which is more stable and has better performance in `Hyperf\Amqp\IO\SwooleIO` .
2021-12-13 16:49:35 +08:00
2021-12-13 09:35:04 +08:00
# v2.2.20 - 2021-12-13
2021-12-06 10:42:11 +08:00
2021-12-11 17:45:51 +08:00
## Fixed
- [#4338 ](https://github.com/hyperf/hyperf/pull/4338 ) Fixed bug that the path with query params won't match route when using testing client.
2021-12-13 09:53:18 +08:00
- [#4346 ](https://github.com/hyperf/hyperf/pull/4346 ) Fixed fatal error for declaration when using amqplib `3.1.1` .
2021-12-11 17:45:51 +08:00
2021-12-10 13:45:50 +08:00
## Added
- [#4330 ](https://github.com/hyperf/hyperf/pull/4330 ) Support pack vendor/bin files for `hyperf/phar` .
2021-12-13 09:35:04 +08:00
- [#4331 ](https://github.com/hyperf/hyperf/pull/4331 ) Added method `Hyperf\Testing\Debug::getRefCount($object)` .
2021-12-10 13:45:50 +08:00
2021-12-06 10:42:11 +08:00
# v2.2.19 - 2021-12-06
2021-11-29 09:55:47 +08:00
2021-12-02 09:30:30 +08:00
## Fixed
2021-12-06 09:44:39 +08:00
- [#4308 ](https://github.com/hyperf/hyperf/pull/4308 ) Fixed bug that `collector-reload` file not found when running `server:watch` with absolute path.
## Optimized
- [#4317 ](https://github.com/hyperf/hyperf/pull/4317 ) Improves `Hyperf\Utils\Collection` and `Hyperf\Database\Model\Collection` type definitions.
2021-12-02 09:30:30 +08:00
2021-11-29 09:55:47 +08:00
# v2.2.18 - 2021-11-29
2021-11-22 09:40:18 +08:00
2021-11-23 12:01:14 +08:00
## Fixed
- [#4283 ](https://github.com/hyperf/hyperf/pull/4283 ) Fixed type hint error for `Hyperf\Grpc\Parser::deserializeMessage()` when `$response->data` is null.
2021-11-23 17:01:56 +08:00
## Added
- [#4284 ](https://github.com/hyperf/hyperf/pull/4284 ) Added method `Hyperf\Utils\Network::ip()` .
2021-11-24 20:20:55 +08:00
- [#4290 ](https://github.com/hyperf/hyperf/pull/4290 ) Added HTTP chunk support for `hyperf/http-message` .
2021-11-25 09:43:31 +08:00
- [#4291 ](https://github.com/hyperf/hyperf/pull/4291 ) Support dynamic `$arguments` for function `value()` .
2021-11-25 14:43:23 +08:00
- [#4293 ](https://github.com/hyperf/hyperf/pull/4293 ) Support run with absolute paths for `server:watch` .
2021-11-27 09:31:04 +08:00
- [#4295 ](https://github.com/hyperf/hyperf/pull/4295 ) Added alias `id()` for `Hyperf\Database\Schema\Blueprint::bigIncrements()` .
2021-11-23 17:01:56 +08:00
2021-11-22 09:40:18 +08:00
# v2.2.17 - 2021-11-22
2021-11-15 10:27:27 +08:00
2021-11-16 12:47:00 +08:00
## Fixed
- [#4243 ](https://github.com/hyperf/hyperf/pull/4243 ) Fixed the bug that key sort of the result is inconsistent with `$callables` for `parallel` .
2021-11-16 12:03:12 +08:00
## Added
2021-11-19 09:40:33 +08:00
- [#4109 ](https://github.com/hyperf/hyperf/pull/4109 ) Added PHP8 support for `hyperf/tracer` .
2021-11-16 12:03:12 +08:00
- [#4260 ](https://github.com/hyperf/hyperf/pull/4260 ) Added force index for `hyperf/database` .
2021-11-15 10:27:27 +08:00
# v2.2.16 - 2021-11-15
2021-11-08 09:28:41 +08:00
2021-11-12 19:07:43 +08:00
## Added
- [#4252 ](https://github.com/hyperf/hyperf/pull/4252 ) Added method `getServiceName` for rpc client.
2021-11-13 12:35:05 +08:00
## Optimized
- [#4253 ](https://github.com/hyperf/hyperf/pull/4253 ) Skip class which is not found by class loader at scan time.
2021-11-08 09:28:41 +08:00
# v2.2.15 - 2021-11-08
2021-11-01 09:48:56 +08:00
2021-11-02 18:34:27 +08:00
## Fixed
- [#4200 ](https://github.com/hyperf/hyperf/pull/4200 ) Fixed bug that filesystem cache driver does not work when `runtime/caches` is not a directory.
2021-11-02 10:30:11 +08:00
## Added
- [#4157 ](https://github.com/hyperf/hyperf/pull/4157 ) Added `Macroable` for `Hyperf\Utils\Arr` .
2021-11-01 09:48:56 +08:00
# v2.2.14 - 2021-11-01
2021-10-25 09:37:58 +08:00
2021-10-28 17:13:49 +08:00
## Added
2021-11-01 11:02:11 +08:00
- [#4181 ](https://github.com/hyperf/hyperf/pull/4181 ) [#4192 ](https://github.com/hyperf/hyperf/pull/4192 ) Added versions (v1.0, v2.0, v3.0) support for `psr/log` .
2021-10-28 17:13:49 +08:00
2021-10-26 17:05:36 +08:00
## Fixed
- [#4171 ](https://github.com/hyperf/hyperf/pull/4171 ) Fixed health check failed when using consul with token.
2021-10-31 12:33:23 +08:00
- [#4188 ](https://github.com/hyperf/hyperf/pull/4188 ) Fixed bug that build phar failed when using composer `1.x` .
2021-10-26 17:05:36 +08:00
2021-10-25 09:37:58 +08:00
# v2.2.13 - 2021-10-25
2021-10-18 09:16:14 +08:00
2021-10-13 11:37:40 +08:00
## Added
2021-10-21 10:39:38 +08:00
- [#4159 ](https://github.com/hyperf/hyperf/pull/4159 ) Allow `Macroable::mixin` to only add macros that do not exist yet.
2021-10-13 11:37:40 +08:00
2021-10-13 19:33:22 +08:00
## Fixed
2021-10-21 11:36:40 +08:00
- [#4158 ](https://github.com/hyperf/hyperf/pull/4158 ) Fixed bug that generate proxy class failed when using union type.
2021-10-13 19:33:22 +08:00
2021-10-21 10:39:38 +08:00
## Optimized
2021-10-25 09:29:21 +08:00
- [#4159 ](https://github.com/hyperf/hyperf/pull/4159 ) [#4166 ](https://github.com/hyperf/hyperf/pull/4166 ) Split `hyperf/macroable` from `hyperf/utils` .
2021-10-21 10:39:38 +08:00
2021-10-22 15:03:47 +08:00
# v2.2.12 - 2021-10-18
## Added
- [#4129 ](https://github.com/hyperf/hyperf/pull/4129 ) Added methods `Str::stripTags()` and `Stringable::stripTags()` .
## Fixed
- [#4130 ](https://github.com/hyperf/hyperf/pull/4130 ) Fixed bug that generate model failed when using option `--with-ide` and `scope` methods.
- [#4141 ](https://github.com/hyperf/hyperf/pull/4141 ) Fixed bug that validator factory does not support other validators.
2021-10-11 09:51:09 +08:00
# v2.2.11 - 2021-10-11
2021-09-26 10:15:44 +08:00
2021-09-28 18:21:37 +08:00
## Fixed
2021-10-11 09:51:09 +08:00
- [#4101 ](https://github.com/hyperf/hyperf/pull/4101 ) Fixed bug that auth failed when password has special charsets for nacos.
2021-09-28 18:21:37 +08:00
2021-10-06 13:45:18 +08:00
# Optimized
- [#4114 ](https://github.com/hyperf/hyperf/pull/4114 ) Optimized get error code after Websocket upgrade failed.
2021-10-09 09:37:54 +08:00
- [#4119 ](https://github.com/hyperf/hyperf/pull/4119 ) Optimized testing client which create the directory again when the directory does not exist.
2021-10-06 13:45:18 +08:00
2021-09-26 10:15:44 +08:00
# v2.2.10 - 2021-09-26
## Fixed
- [#4088 ](https://github.com/hyperf/hyperf/pull/4088 ) Fixed bug that crontab rule convert `empty string` into `0` accidentally.
- [#4096 ](https://github.com/hyperf/hyperf/pull/4096 ) Fixed bug that generate proxy class failed caused by variadic parameters with type.
2021-09-22 09:46:38 +08:00
# v2.2.9 - 2021-09-22
2021-09-14 09:45:22 +08:00
2021-09-15 10:37:02 +08:00
## Fixed
- [#4061 ](https://github.com/hyperf/hyperf/pull/4061 ) Fixed the conflict between the latest version of prometheus_client_php and `hyperf/metric` .
2021-09-16 15:20:30 +08:00
- [#4068 ](https://github.com/hyperf/hyperf/pull/4068 ) Fixed bug that exit code of `Command` is incorrect when throwing an exception.
2021-09-17 12:03:36 +08:00
- [#4076 ](https://github.com/hyperf/hyperf/pull/4076 ) Fixed server broken caused by sending response failed.
2021-09-15 10:37:02 +08:00
2021-09-16 22:41:01 +08:00
## Added
2021-09-17 23:16:57 +08:00
- [#4014 ](https://github.com/hyperf/hyperf/pull/4014 ) [#4080 ](https://github.com/hyperf/hyperf/pull/4080 ) Support `sasl` and `ssl` for kafka.
2021-09-21 17:06:07 +08:00
- [#4045 ](https://github.com/hyperf/hyperf/pull/4045 ) [#4082 ](https://github.com/hyperf/hyperf/pull/4082 ) Support to control whether to report by `tracer` through config `opentracing.enable.exception` .
2021-09-21 06:53:41 +08:00
- [#4086 ](https://github.com/hyperf/hyperf/pull/4086 ) Support annotation for interface.
2021-09-16 22:41:01 +08:00
2021-09-21 06:29:17 +08:00
# Optimized
- [#4084 ](https://github.com/hyperf/hyperf/pull/4084 ) Optimized the exception message when the attribute not found.
2021-09-14 09:45:22 +08:00
# v2.2.8 - 2021-09-14
2021-09-06 10:50:20 +08:00
2021-09-08 12:05:29 +08:00
## Fixed
2021-09-08 14:38:50 +08:00
- [#4028 ](https://github.com/hyperf/hyperf/pull/4028 ) Fixed the success rate calculation in grafana dashboard.
2021-09-08 14:55:45 +08:00
- [#4030 ](https://github.com/hyperf/hyperf/pull/4030 ) Fixed bug that async-queue broken caused by uncompressing model failed.
2021-09-13 10:07:55 +08:00
- [#4042 ](https://github.com/hyperf/hyperf/pull/4042 ) Fixed coroutines deadlock caused by cleaning up expired fds in socketio-server when stop server.
2021-09-08 12:05:29 +08:00
2021-09-07 09:41:25 +08:00
## Added
2021-09-10 09:26:43 +08:00
- [#4013 ](https://github.com/hyperf/hyperf/pull/4013 ) Support `sameSite=None` when return response with cookies.
2021-09-08 14:55:45 +08:00
- [#4017 ](https://github.com/hyperf/hyperf/pull/4017 ) Added `Macroable` into `Hyperf\Utils\Collection` .
2021-09-07 09:41:25 +08:00
- [#4021 ](https://github.com/hyperf/hyperf/pull/4021 ) Added argument `$attempts` into `$callback` when using function `retry()` .
2021-09-10 12:12:02 +08:00
- [#4040 ](https://github.com/hyperf/hyperf/pull/4040 ) Added method `ConsumerDelayedMessageTrait::getDeadLetterExchange()` which used to rewrite `x-dead-letter-exchange` by yourself.
2021-09-07 09:41:25 +08:00
2021-09-08 14:55:45 +08:00
## Removed
- [#4017 ](https://github.com/hyperf/hyperf/pull/4017 ) Removed `Macroable` from `Hyperf\Database\Model\Collection` because it already exists in `Hyperf\Utils\Collection` .
2021-09-06 10:50:20 +08:00
# v2.2.7 - 2021-09-06
2021-08-30 10:46:59 +08:00
2021-08-31 23:50:50 +08:00
# Fixed
2021-08-31 23:52:25 +08:00
- [#3997 ](https://github.com/hyperf/hyperf/pull/3997 ) Fixed unexpected termination of nats consumer after timeout.
2021-08-31 23:50:50 +08:00
- [#3998 ](https://github.com/hyperf/hyperf/pull/3998 ) Fixed bug that `apollo` does not support `https` .
2021-09-03 23:52:27 +08:00
## Optimized
2021-09-04 17:35:00 +08:00
2021-09-03 23:52:27 +08:00
- [#4009 ](https://github.com/hyperf/hyperf/pull/4009 ) Optimized method `MethodDefinitionCollector::getOrParse()` to avoid deprecated in PHP8.
2021-09-04 17:35:00 +08:00
## Added
2021-09-05 00:00:43 +08:00
- [#4002 ](https://github.com/hyperf/hyperf/pull/4002 ) [#4012 ](https://github.com/hyperf/hyperf/pull/4012 ) Support method `FormRequest::scene()` which used to rewrite different rules according to different scenes.
- [#4011 ](https://github.com/hyperf/hyperf/pull/4011 ) Added some methods for `Hyperf\Utils\Str` .
2021-09-04 17:35:00 +08:00
2021-08-30 10:46:59 +08:00
# v2.2.6 - 2021-08-30
2021-08-23 11:09:11 +08:00
2021-08-23 15:38:19 +08:00
## Fixed
- [#3969 ](https://github.com/hyperf/hyperf/pull/3969 ) Fixed type error when using `Hyperf\Validation\Rules\Unique::__toString()` in PHP8.
2021-08-25 19:07:26 +08:00
- [#3979 ](https://github.com/hyperf/hyperf/pull/3979 ) Fixed bug that timeout property does not work in circuit breaker.
2021-08-28 12:09:18 +08:00
- [#3986 ](https://github.com/hyperf/hyperf/pull/3986 ) Fixed OSS hook failed when using `SWOOLE_HOOK_NATIVE_CURL` .
2021-08-23 15:38:19 +08:00
2021-08-28 17:36:30 +08:00
## Added
- [#3987 ](https://github.com/hyperf/hyperf/pull/3987 ) Support delayed message exchange for AMQP.
2021-08-30 14:47:00 +08:00
- [#3989 ](https://github.com/hyperf/hyperf/pull/3989 ) [#3992 ](https://github.com/hyperf/hyperf/pull/3992 ) Added option `command` which used to define your own start command.
2021-08-28 17:36:30 +08:00
2021-08-23 11:09:11 +08:00
# v2.2.5 - 2021-08-23
2021-08-15 09:55:23 +08:00
2021-08-18 16:51:36 +08:00
## Fixed
- [#3959 ](https://github.com/hyperf/hyperf/pull/3959 ) Fixed validate rule `date` does not work as expected when the value isn't string.
2021-08-19 10:21:00 +08:00
- [#3960 ](https://github.com/hyperf/hyperf/pull/3960 ) Fixed bug that crontab cannot be closed safely in coroutine style server.
2021-08-18 16:51:36 +08:00
2021-08-23 11:09:11 +08:00
## Added
- [code-generator ](https://github.com/hyperf/code-generator ) Added `code-generator` which used to regenerate classes with `Attributes` instead of `Doctrine Annotations` .
2021-08-18 12:21:05 +08:00
## Optimized
- [#3957 ](https://github.com/hyperf/hyperf/pull/3957 ) Support generate the type of getAttribute with `@return` for command `gen:model` .
2021-08-15 09:55:23 +08:00
# v2.2.4 - 2021-08-16
2021-08-09 09:37:46 +08:00
2021-08-10 10:47:57 +08:00
## Fixed
- [#3925 ](https://github.com/hyperf/hyperf/pull/3925 ) Fixed bug that heartbeat failed caused by nacos light beat enabled.
2021-08-10 12:56:07 +08:00
- [#3926 ](https://github.com/hyperf/hyperf/pull/3926 ) Fixed bug that the config of `config_center.drivers.nacos.client` does not work.
2021-08-10 10:47:57 +08:00
## Added
2021-08-10 10:04:45 +08:00
- [#3924 ](https://github.com/hyperf/hyperf/pull/3924 ) Added health check parameters for consul service register.
2021-08-12 10:16:00 +08:00
- [#3932 ](https://github.com/hyperf/hyperf/pull/3932 ) Support requeue the message when return `NACK` for `AMQP` consumer.
2021-08-13 18:07:28 +08:00
- [#3941 ](https://github.com/hyperf/hyperf/pull/3941 ) Support service register for `rpc-multiplex` .
2021-08-15 09:45:16 +08:00
- [#3947 ](https://github.com/hyperf/hyperf/pull/3947 ) Added method `Str::mask` which used to replace chars from a string by a given char.
2021-08-10 10:04:45 +08:00
2021-08-14 10:40:30 +08:00
## Optimized
- [#3944 ](https://github.com/hyperf/hyperf/pull/3944 ) Encapsulated the code for reading aspect meta properties.
2021-08-09 09:37:46 +08:00
# v2.2.3 - 2021-08-09
2021-08-03 13:47:46 +08:00
2021-08-04 21:06:04 +08:00
## Fixed
- [#3897 ](https://github.com/hyperf/hyperf/pull/3897 ) Fixed bug that nacos instance will be registered more than once, because heartbeat failed caused by light beat enabled.
2021-08-05 10:45:55 +08:00
- [#3905 ](https://github.com/hyperf/hyperf/pull/3905 ) Fixed null pointer exception when closing AMQPConnection.
2021-08-05 13:08:28 +08:00
- [#3906 ](https://github.com/hyperf/hyperf/pull/3906 ) Fixed bug that close connection failed caused by wait channels flushed.
2021-08-05 14:20:33 +08:00
- [#3908 ](https://github.com/hyperf/hyperf/pull/3908 ) Fixed bug that the process couldn't be restarted caused by loop which using `CoordinatorManager` .
2021-08-03 13:47:46 +08:00
# v2.2.2 - 2021-08-03
2021-07-27 11:01:21 +08:00
2021-07-28 13:28:07 +08:00
## Fixed
2021-07-30 18:32:38 +08:00
- [#3872 ](https://github.com/hyperf/hyperf/pull/3872 ) [#3873 ](https://github.com/hyperf/hyperf/pull/3873 ) Fixed bug that heartbeat failed when using nacos without default group.
2021-07-30 19:01:55 +08:00
- [#3877 ](https://github.com/hyperf/hyperf/pull/3877 ) Fixed bug that heartbeat will be registered more than once.
2021-07-29 10:39:11 +08:00
- [#3879 ](https://github.com/hyperf/hyperf/pull/3879 ) Fixed bug that `watcher` does not work caused by proxies replaced.
2021-07-28 13:28:07 +08:00
2021-07-30 19:01:55 +08:00
## Optimized
- [#3877 ](https://github.com/hyperf/hyperf/pull/3877 ) Support `lightBeatEnabled` for Nacos heartbeat.
2021-07-27 11:01:21 +08:00
# v2.2.1 - 2021-07-27
2021-07-19 02:42:29 +08:00
2021-07-19 23:28:36 +08:00
## Fixed
2021-07-25 22:57:16 +08:00
- [#3750 ](https://github.com/hyperf/hyperf/pull/3750 ) Fixed fatal error which caused by dispatching a non exist namespace when using `socket-io` .
2021-07-19 23:28:36 +08:00
- [#3828 ](https://github.com/hyperf/hyperf/pull/3828 ) Fixed bug that lazy inject does not work for `Hyperf\Redis\Redis` in `PHP8.0` .
2021-07-20 21:49:49 +08:00
- [#3845 ](https://github.com/hyperf/hyperf/pull/3845 ) Fixed bug that `watcher` does not work for `v2.2` .
2021-07-21 16:42:10 +08:00
- [#3848 ](https://github.com/hyperf/hyperf/pull/3848 ) Fixed bug that the usage of registering itself like `nacos v2.1` does not work.
2021-07-27 10:43:10 +08:00
- [#3866 ](https://github.com/hyperf/hyperf/pull/3866 ) Fixed bug that the metadata of nacos instance can't be registered successfully.
2021-07-25 21:36:31 +08:00
## Optimized
2021-07-25 22:35:00 +08:00
- [#3763 ](https://github.com/hyperf/hyperf/pull/3763 ) Support chained calls for `JsonResource::wrap()` and `JsonResource::withoutWrapping()` .
2021-07-25 21:36:31 +08:00
- [#3843 ](https://github.com/hyperf/hyperf/pull/3843 ) Check the status code and body of the response to ensure whether the instance already be registered.
2021-07-25 22:14:58 +08:00
- [#3854 ](https://github.com/hyperf/hyperf/pull/3854 ) Support RFC 5987 for `Hyperf\HttpServer\Contract\ResponseInterface::download()` which allows utf-8 encoding, percentage encoded (url-encoded).
2021-07-19 23:28:36 +08:00
2021-07-19 02:42:29 +08:00
# v2.2.0 - 2021-07-19
2021-05-11 12:18:49 +08:00
## 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-07-06 23:28:01 +08:00
- [3783 ](https://github.com/hyperf/hyperf/pull/3783 ) Upgraded `league/flysystem` to `^1.0|^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-24 11:23:29 +08:00
- [#3733 ](https://github.com/hyperf/hyperf/pull/3733 ) Removed config `zookeeper.php` , please use `config_center.php` instead.
2021-07-18 13:23:29 +08:00
- [#3734 ](https://github.com/hyperf/hyperf/pull/3734 ) Split `nacos` into `config-nacos` and `service-governance-nacos` .
2021-06-30 21:53:06 +08:00
- [#3772 ](https://github.com/hyperf/hyperf/pull/3772 ) Fixed bug that nacos driver do not work.
2021-06-24 14:18:16 +08:00
- [#3734 ](https://github.com/hyperf/hyperf/pull/3734 ) Renamed `nacos-sdk` as `nacos` .
2021-06-25 09:43:59 +08:00
- [#3737 ](https://github.com/hyperf/hyperf/pull/3737 ) Refactor config-center and config driver
- Added `AbstractDriver` and merge the duplicate code into the abstraction class
- Added `PipeMessageInterface` to uniform the message struct of config fetcher process
2021-07-19 02:47:17 +08:00
- [#3817 ](https://github.com/hyperf/hyperf/pull/3817 ) [#3818 ](https://github.com/hyperf/hyperf/pull/3818 ) Split `service-governance-consul` from `service-governance` .
2021-07-19 10:36:38 +08:00
- [#3819 ](https://github.com/hyperf/hyperf/pull/3819 ) Use their own configuration below `config_center.php` for config center component which using ETCD and Nacos.
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-26 09:40:52 +08:00
- [#3743 ](https://github.com/hyperf/hyperf/pull/3743 ) Support custom register for service governance.
2021-06-27 13:11:50 +08:00
- [#3753 ](https://github.com/hyperf/hyperf/pull/3753 ) Support long pulling mode for Apollo Client.
2021-06-29 13:41:42 +08:00
- [#3759 ](https://github.com/hyperf/hyperf/pull/3759 ) Added `rpc-multiplex` component.
2021-07-09 17:48:39 +08:00
- [#3791 ](https://github.com/hyperf/hyperf/pull/3791 ) Support setting multiple annotations by inheriting `AbstractMultipleAnnotation` , such as `@Middleware` .
2021-07-12 16:44:16 +08:00
- [#3806 ](https://github.com/hyperf/hyperf/pull/3806 ) Added heartbeat for nacos service governance.
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-29 09:51:46 +08:00
- [#3758 ](https://github.com/hyperf/hyperf/pull/3758 ) Optimized code for pool which get connection again when first 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.
2021-06-30 12:34:51 +08:00
- [#3769 ](https://github.com/hyperf/hyperf/pull/3769 ) Fixed bug that `config-center` conflicts with `metrics` .
2021-06-30 13:12:59 +08:00
- [#3770 ](https://github.com/hyperf/hyperf/pull/3770 ) Fixed type error when using `Str::slug()` .
2021-07-07 20:49:19 +08:00
- [#3788 ](https://github.com/hyperf/hyperf/pull/3788 ) Fixed type error when using `BladeCompiler::getRawPlaceholder()` .
2021-07-09 20:45:20 +08:00
- [#3794 ](https://github.com/hyperf/hyperf/pull/3794 ) Fixed bug that `retry_interval` does not work for `rpc-multiplex` .
2021-07-11 09:05:42 +08:00
- [#3798 ](https://github.com/hyperf/hyperf/pull/3798 ) Fixed bug that amqp consumer couldn't restart when rabbitmq server stopped.
2021-07-16 09:49:15 +08:00
- [#3814 ](https://github.com/hyperf/hyperf/pull/3814 ) Fixed bug that `libxml_disable_entity_loader()` has been deprecated as of PHP 8.0.0.