Commit Graph

231 Commits

Author SHA1 Message Date
tw2066
107e08d185
Fixed bug that heartbeat failed caused by nacos light beat enabled. (#3925)
* Format code

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-10 10:47:57 +08:00
李铭昕
6bf0f5d3da Format code 2021-08-10 10:20:43 +08:00
李铭昕
3b4403df3c
Release v2.2.3 2021-08-09 09:37:46 +08:00
李铭昕
b7bcfa2a3f
Fixed bug that the process couldn't be restarted caused by loop which using CoordinatorManager. (#3908)
* Fixed bug the consumer restart failed when AMQP server restart.

* Update CHANGELOG-2.2.md
2021-08-05 14:20:33 +08:00
李铭昕
fecba7a7d9
Fixed bug that close connection failed caused by wait channels flushed. (#3906)
* Fixed bug that close connection failed caused by wait channels flushed.

* Don't close connection again when connection exited.

* Added test cases for AMQP
2021-08-05 13:08:28 +08:00
李铭昕
4ffa822873
Fixed null pointer exception when closing AMQPConnection. (#3905)
* Fixed null pointer exception when AMQPConnection closed.

* Update CHANGELOG-2.2.md
2021-08-05 10:45:55 +08:00
tw2066
f19d5c46f1
Fixed bug that nacos instance will be registered more than once, because heartbeat failed caused by light beat enabled. (#3897)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-04 21:06:04 +08:00
李铭昕
c9b0254a18
Release v2.2.2 (#3899) 2021-08-03 13:47:46 +08:00
tw2066
5eb2ab37a8
Fixed bug that heartbeat will be registered more than once. (#3877)
1.nacos 心跳bug 掉线问题
2.nacos 增加20404 状态码判断
3.优化元数据获取

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-30 19:01:55 +08:00
zxyfaxcn
2132ee5ebe
Fixed bug that heartbeat failed when using nacos without default group. (#3873)
* fixed 修复nacos原生用法心跳异常

* fixed 修复ephemeral 是否临时实例设置不生效问题

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-30 18:32:38 +08:00
biausix
91aae7df4f
Fixed bug that watcher does not work caused by proxies replaced. (#3879)
* Fixed bug that `watcher` does not work caused by proxies replaced.

* Update CHANGELOG-2.2.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-29 10:39:11 +08:00
alexzy228
f0cdde4523
Fixed bug that heartbeat failed when using nacos without default group. (#3872)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-28 13:28:07 +08:00
李铭昕
5efe21fc5b
Release v2.2.1 (#3861) 2021-07-27 11:01:21 +08:00
upper1027
a794a17a79
Fixed bug that the metadata of nacos instance can't be registered successfully. (#3866)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-27 10:43:10 +08:00
pandaLIU
195a2f28bf
Fixed fatal error which caused by dispatching a non exist namespace when using socket-io. (#3750)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-25 22:57:16 +08:00
hesunfly
301278bfcf
Support chained calls for JsonResource::wrap() and JsonResource::withoutWrapping(). (#3763)
* 修改Resource包 调用wrap方法和withoutWrapping方法调用错误的问题

* Update CHANGELOG-2.2.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-25 22:35:00 +08:00
LosingBattle
08ee962ef5
Support RFC 5987 for download() which allows utf-8 encoding, percentage encoded (url-encoded). (#3854)
* Support RFC 5987 for `Hyperf\HttpServer\Contract\ResponseInterface::download()` which allows utf-8 encoding, percentage encoded (url-encoded).

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-25 22:14:58 +08:00
alexzy228
9331644273
Fixed bug that the metadata of nacos instance can't be registered successfully. (#3843)
* Check the status code and body of the response to ensure whether the instance already be registered.

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-25 21:36:31 +08:00
zxyfaxcn
27daf56166
Fixed bug that the usage of registering itself like nacos v2.1 does not work. (#3848)
* changed 更改Nacos心跳Process命名空间问题
fixed 兼容Nacos查询服务、实例不存在时返回500状态码的情况

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-21 16:42:10 +08:00
李铭昕
6300efaf81
Fixed bug that watcher does not work for v2.2. (#3845) 2021-07-20 21:49:49 +08:00
李铭昕
d117f59d58
Fixed bug that lazy inject does not work for Hyperf\Redis\Redis. (#3828)
* Fixed bug that lazy inject does not work for `Hyperf\Redis\Redis`.

* Update CHANGELOG-2.2.md
2021-07-19 23:28:36 +08:00
李铭昕
366b6991d5 Use his own configuration below config_center.php for config center component which using ETCD. 2021-07-19 10:36:38 +08:00
huangzhhui
fa26c91e95 Update CHANGELOG-2.2.md 2021-07-19 09:41:04 +08:00
huangzhhui
4c0a2f21dc Update 2.2 docs 2021-07-19 09:41:04 +08:00
李铭昕
6f9dbd713a Removed useless code 2021-07-18 13:53:33 +08:00
李铭昕
efcdf18a93 Split service-governance into service-governance and service-governance-consul. 2021-07-18 13:53:33 +08:00
沈唁
84679ddc0c
Fixed bug that libxml_disable_entity_loader() has been deprecated as of PHP 8.0.0. (#3814)
close https://github.com/hyperf/hyperf/issues/3813

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-16 09:49:15 +08:00
李铭昕
21d245c1aa
Added heartbeat for nacos service governance. (#3806) 2021-07-12 16:44:16 +08:00
李铭昕
58bb6392d0
Fixed bug that amqp consumer couldn't restart when rabbitmq server stopped. (#3798) 2021-07-11 09:05:42 +08:00
李铭昕
1b2cb6aa18
Fixed bug that retry_interval does not work for rpc-multiplex. (#3794) 2021-07-09 20:45:20 +08:00
张城铭
29fca4319b
Support setting multiple annotations by inheriting AbstractMultipleAnnotation, such as @Middleware. (#3791)
Co-authored-by: assert <zhangchengming@kkguan.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-09 17:48:39 +08:00
cmm
aa269a9d72
Fixed type error when using BladeCompiler::getRawPlaceholder(). (#3788)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-07-07 20:49:19 +08:00
李铭昕
ef7cfee3f5 Upgraded league/flysystem to ^1.0|^2.0. 2021-07-07 13:27:38 +08:00
李铭昕
657f3ed8c7 Fixed bug that nacos driver do not work. 2021-06-30 22:00:06 +08:00
李铭昕
75f92b879a
Fixed type error when using Str::slug(). (#3770) 2021-06-30 13:12:59 +08:00
李铭昕
31705459c3
Fixed bug that config-center conflicts with metrics. (#3769)
TypeError: Hyperf\ConfigCenter\AbstractDriver::onPipeMessage(): Argument #1 ($pipeMessage) must be of type Hyperf\ConfigCenter\Contract\PipeMessageInterface, Hyperf\Metric\Adapter\RemoteProxy\Histogram given
2021-06-30 12:34:51 +08:00
李铭昕
5e515f5452 Fixed composer.json 2021-06-29 13:59:58 +08:00
李铭昕
6bbc208c80
Optimized code for pool which get connection again when first failed. (#3758)
* Optimized code for pool which get connection again when first failed.

* Update
2021-06-29 09:51:46 +08:00
李铭昕
2bbbe8689b Close the channel when loop broken to avoid coroutine couldn't be stopped. 2021-06-27 13:11:50 +08:00
李铭昕
eb9788a609 Added document about how to use custom driver for service governance. 2021-06-26 09:54:06 +08:00
李铭昕
057626c6ca Use string instead of int for mode which used more friendly in .env. 2021-06-25 10:04:45 +08:00
李铭昕
bf77b1f6b0 Added nacos adapter for config center. 2021-06-24 16:30:27 +08:00
李铭昕
55d00ad2b6
Removed config zookeeper.php, please use config_center.php instead. (#3733) 2021-06-24 11:23:29 +08:00
李铭昕
da60424b8c
Optimized code for kafka. (#3730)
- Support `timeout` for `Producer` to avoid requests not responding.
- Removed useless code with pool.
- Throw exceptions when connect kafka failed.
- Removed config `brokers` and `update_brokers` from kafka.
2021-06-23 20:25:22 +08:00
李铭昕
94d117fa9d Format 2021-06-23 15:11:58 +08:00
李铭昕
c4c4482823 Support etcd config center 2021-06-23 10:52:42 +08:00
李铭昕
fc023147f6 Restructure nacos component 2021-06-22 19:49:34 +08:00
pandaLIU
20c875bd36
Removed broker and bootstrap_server from kafka. (#3550)
please use `brokers` and `bootstrap_servers` instead

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-06-22 18:19:46 +08:00
李铭昕
a280656acf
Added ide-helper component (#3714) 2021-06-20 10:18:28 +08:00
李铭昕
4a89d40f3b
The input parameters of InstanceProvider::update() are modified to make it more friendly. (#3712)
* change the arguments for `instance::update()`.

* Update InstanceProvider.php

* Update CHANGELOG-2.2.md
2021-06-20 08:45:33 +08:00
李铭昕
b9b921cf60
Upgraded markrogoyski/math-php to ^2.0 (#3709) 2021-06-18 18:42:01 +08:00
张城铭
0d2b45c168
Changed the style of writing for #[Middlewares(FooMiddleware::class)]. (#3706)
Changed the style of writing to `#[Middlewares(FooMiddleware::class)]` from `@Middlewares({@Middleware(FooMiddleware::class)})` in PHP8.

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-06-18 18:18:34 +08:00
李铭昕
c4977ca518
Removed useless code from AbstractAnnotation. (#3700) 2021-06-16 00:27:11 +08:00
李铭昕
ee156ab50d Removed $formattedValue from AbstractAnnotation. 2021-06-15 23:48:30 +08:00
李铭昕
08f9a78db8
Adapt circuit-breaker component to support php8. (#3694) 2021-06-11 11:01:20 +08:00
李铭昕
2a7f69fd8d
Fixed bug that class proxies couldn't be included when building phar (#3692) 2021-06-10 21:07:12 +08:00
李铭昕
a2041956bf
Fixed bug that rpc client does not work for amqp. (#3681) 2021-06-07 21:42:09 +08:00
pandaLIU
5eb2dbfe5c
Added Nacos SDK component (#3679)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-06-06 14:19:18 +08:00
李铭昕
17048c0128
Use promphp instead of endclothing for prometheus_client_php. (#3676) 2021-06-05 22:39:01 +08:00
李铭昕
ee52457062
Adapt other components to support php8. (#3673) 2021-06-05 13:42:37 +08:00
李铭昕
e96d722075
Adapt database component to support php8. (#3670) 2021-06-05 12:03:34 +08:00
GanymedeNil
c0baa40704
Changed the return value of LengthAwarePaginator::toArray() to be consistent with that of Paginator::toArray(). (#3334)
Co-authored-by: jinhongyang <jinhongyang@tal.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-06-05 00:17:11 +08:00
李铭昕
337eccfd96
Optimized code which be used to close connection friendly. (#3659) 2021-06-03 09:50:25 +08:00
李铭昕
f56fac8aa6
Fixed memory exhausted for rabbitmq caused by confirm channel. (#3657) 2021-06-02 22:22:41 +08:00
李铭昕
e6650112a0
Removed roave/better-reflection from other components. (#3654) 2021-06-02 13:18:33 +08:00
张城铭
250b06e2ea
Removed roave/better-reflection from LazyLoader. (#3651)
* Removed `roave/better-reflection` from LazyLoader.
* Renamed `Hyperf\Utils\CodeGen\PhpParser::getAstFromReflectionParameter()`

Co-authored-by: assert <zhangchengming@kkguan.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-06-02 10:52:56 +08:00
李铭昕
f09ab017a4
Fixed bug that ReflectionParameter::getClass() will be deprecated in php8. (#3650) 2021-06-01 22:01:53 +08:00
李铭昕
6bc61103af
Removed roave/better-reflection from hyperf/database. (#3649) 2021-06-01 21:14:32 +08:00
李铭昕
4bbea8d4f4
Added PhpDocReaderManager to manage php doc reader. (#3648)
- Optimized code for using PhpParser
- Optimized code for using PhpDocReader
2021-06-01 19:10:45 +08:00
张城铭
ae9d1e3268
Use Fork Process strategy to replace BetterReflection strategy (#3634)
* 2.2

* Format code

* optimization

* ast parser

* temp data of scan process

* replace BetterReflection strategy

* Optimized code

* Update Scanner.php

* Fixed phpunit

* Fixed phpunit

* replace BetterReflection strategy

* Update AsyncQueueAspectTest.php

* optimization

* Update InjectTest.php

* Update CHANGELOG-2.2.md

Co-authored-by: assert <zhangchengming@kkguan.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-06-01 00:56:09 +08:00
李铭昕
1daa06fd04 Fixed test cases for amqp 2021-05-30 10:17:07 +08:00
李铭昕
7af798f8fa
Hyperf\Utils\Resource will be deprecated in v2.3. (#3636)
* `Hyperf\Utils\Resource` will be deprecated in v2.3, please use `Hyperf\Utils\ResourceGenerator` instead.

* Update composer.json
2021-05-29 23:26:08 +08:00
李铭昕
90623860ab
Added Hyperf\Utils\CodeGen\PhpParser which used to generate AST for reflection. (#3635) 2021-05-29 23:14:55 +08:00
李铭昕
f1825a9f33
Added Hyperf\Utils\Channel\ChannelManager which used to manage channels. 2021-05-28 11:57:20 +08:00
李铭昕
1af932a66c
Added DAG component. (#3589) 2021-05-15 17:46:42 +08:00
李铭昕
669fa75738
Changed the consumer tag of amqp to empty string. (#3582) 2021-05-13 16:07:31 +08:00
李铭昕
80c1c818fe
Changed the default priority of aspect to 0. (#3580) 2021-05-13 15:35:09 +08:00
李铭昕
42bf89639b
domnikl/statsd is no longer maintained, using the slickdeals/statsd package instead. 2021-05-13 09:58:05 +08:00
李铭昕
42b9a78860
Upgraded egulias/email-validator to ^3.0 (#3576) 2021-05-13 09:37:44 +08:00
李铭昕
62f7c49352
Upgraded psr/container to ^1.0|^2.0 (#3337)
* Support psr/container ^2.0

* Update composer.json

* Update CHANGELOG-2.2.md
2021-05-11 13:27:43 +08:00
李铭昕
3b097dc70a
Upgrade friendsofphp/php-cs-fixer to ^3.0 (#3566)
* Upgrade friendsofphp/php-cs-fixer to ^3.0 and format code

* Rename barnch  to 2.2

* Create CHANGELOG-2.2.md
2021-05-11 12:18:49 +08:00