Commit Graph

66 Commits

Author SHA1 Message Date
李铭昕
a3f52abd78
Fixed connection exhausted, when connect amqp server failed. (#3233)
* Fixed connection exhausted, when connect amqp server failed.

* Update CHANGELOG-2.1.md
2021-02-01 13:43:16 +08:00
李铭昕
aa8218ab4b
v2.1.5 (#3232) 2021-02-01 11:18:42 +08:00
李铭昕
3629fafeef
Fixed orderBy does not works for scout. (#3230)
* Fixed orderBy does not works for scout.

* Added Test Cases
2021-01-31 13:11:26 +08:00
李铭昕
80830d726f
Fixed bug that server crash when tracer flush failed in defer. (#3228)
* Fixed bug that server crash when tracer flush failed in defer.
* Update CHANGELOG-2.1.md
2021-01-30 19:47:11 +08:00
李铭昕
0bfb89fa1c Format code 2021-01-30 16:08:16 +08:00
tw2066
0ec731f1ca
Run pagination count as subquery for group by and havings. (#3226)
* Run pagination count as subquery for group by and havings

* Added Test cases.

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-29 14:33:59 +08:00
刀刀
7d32ef4780
Added optional configuration url for nacos which used to request nacos server. (#3211)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-28 12:02:54 +08:00
李铭昕
1f40236e35 Format code 2021-01-28 11:44:57 +08:00
李铭昕
4790d69878
Set qos of amqp by default. (#3218)
* Set qos of amqp by default.

* Update CHANGELOG-2.1.md
2021-01-27 17:49:00 +08:00
李铭昕
604e4dd276
Added Caller which help you to use instance in coroutine security mode. (#3214)
* Added Caller which using instance in coroutine security mode.

* Update CHANGELOG-2.1.md
2021-01-27 13:46:44 +08:00
李铭昕
8272be2bfe
Fixed bug that connection was not be released to pool when the consumer broken in coroutine style server. (#3209) 2021-01-27 10:10:06 +08:00
lionXu
b7687d998d
Fixed unexpected behavior for middlewares when using rpc-server. (#3204)
* Fixed unexpected behavior for `middlewares` when using `rpc-server`.

* Added test cases

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-26 15:41:44 +08:00
李铭昕
4b78aeaaaf
Don't retry, when recv timeout for json-rpc client. (#3195)
* Don't retry, when recv timeout for json-rpc client.
2021-01-25 11:48:00 +08:00
李铭昕
4ee143b87a
v2.1.4 (#3190) 2021-01-25 10:17:05 +08:00
李铭昕
44e038cbb3 Try to reconnect the target server when json-rpc connectoin closed. 2021-01-24 20:14:42 +08:00
张子彬
0fbda4f915
Added FindNewerDriver which is friendly with mac, linux and docker for watcher. (#3170)
* Added FindNewerDriver
* Update documents and changelog

Co-authored-by: zhangzibin <zhangzibin@idvert.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-23 13:09:45 +08:00
李铭昕
2cc73d72cb Merge branch 'master' into merge
# Conflicts:
#	composer.json
2021-01-22 21:41:30 +08:00
江湖大牛
429d317638
Fixed bug that the where bindings will be replaced by not rigorous code. (#3174)
* Fixed bug that the where bindings will be replaced by not rigorous code.

* Assert the binding values for database by default.

* Added test cases.

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-22 13:03:40 +08:00
毛自豪
0b0df042ab
Fixed Hyperf\Database\Schema\MySqlBuilder::getColumnListing does not works in MySQL 8.0. (#3165)
* Fixed bug

* Added test cases.

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-20 18:17:54 +08:00
李铭昕
70249eb840
Optimized code for ErrorExceptionHandler (#3169)
* Optimized code for ErrorExceptionHandler

* Update CHANGELOG-2.1.md

* Update test.yml
2021-01-20 17:41:26 +08:00
李铭昕
8e550e04cf
v2.1.3 (#3147) 2021-01-18 09:49:08 +08:00
李铭昕
fecdb5034d
Fixed doctrine/dbal does not works. (#3141)
* Fixed doctrine/dbal does not works.

* Fixed by https://github.com/laravel/framework/pull/35236
2021-01-15 17:00:52 +08:00
李铭昕
53c84628c9
Fixed type hint error, when don't set true for PDO::ATTR_PERSISTENT. (#3137)
* Revert #3045

* Fixed type hint error, when don't set `true` for `PDO::ATTR_PERSISTENT`.
2021-01-15 15:18:41 +08:00
江湖大牛
c9a6f5a5ac
Added method ComponentAttributeBag::has() for view-engine. (#3123)
* feat: Add has() method to Hyperf\ViewEngine\Component\ComponentAttributeBag

* docs: update view-engine.md

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-14 12:00:25 +08:00
李铭昕
eab49ac7bf FIxed new chan without capacity does not works in Swow. 2021-01-14 10:20:54 +08:00
李铭昕
49eb5014f3
Fixed bug that the config key of migrations is not correct. (#3118)
* Fixed bug that the config key of migrations is not correct.

* Update CHANGELOG-2.1.md
2021-01-13 10:53:01 +08:00
李铭昕
3b9c4c427e Update CHANGELOG-2.1.md 2021-01-13 10:18:43 +08:00
pandaLIU
6f3351a744
Fixed routes will be replaced by another group when using describe:routes command.
* Fixed routes will be replaced by another group when using `describe:routes` command.

* Updated CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-13 09:46:37 +08:00
李铭昕
17a4e2f52a
Fixed bug that call to a member function getArrayCopy() on null when the parent coroutine context destroyed. (#3106)
* Fixed copy failed when the parent coroutine context destroyed.

* Update CHANGELOG-2.1.md
2021-01-11 19:08:16 +08:00
李铭昕
7139be6a43
v2.1.2 (#3100) 2021-01-11 09:57:22 +08:00
刘志铭
2da93f3af4
Fixed getRealPath does not works in phar. (#3084)
* Fixed `getRealPath` does not works in phar.

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-10 11:37:33 +08:00
pandaLIU
a11748003e
Fixed unexpected behavior for ElasticsearchEngine::getTotalCount() in hyperf/scout. (#3095)
* Fixed unexpected behavior for `ElasticsearchEngine::getTotalCount()` in `hyperf/scout`.

* Format code

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-09 17:44:10 +08:00
李铭昕
ef63719d55
Added test case for checking refcount for aop pipeline. (#3088)
* Added test case for checking refcount for aop pipeline.

* Update
2021-01-08 15:06:04 +08:00
刘志铭
cb86ba1c42
Optimized phar:build for rewriting scan_cacheable. (#3046)
- Optimized `phar:build` for rewriting `scan_cacheable`
- Support option phar-version for `phar:build`


Co-authored-by: liuzhiming1 <liuzhiming1@chelun.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-07 17:12:25 +08:00
李铭昕
a35c7f16c4
Fixed db connection has already been bound to another coroutine when used in defer (#3082)
* Fixed db connection has already been bound to another coroutine when used in defer

* Update CHANGELOG-2.1.md
2021-01-07 16:39:49 +08:00
pandaLIU
390e70839e
Added method ConnectionInterface::run(Closure $closure) for hyperf/db. (#3066)
* Added method `ConnectionInterface::run(Closure $closure)` for `hyperf/db`

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-07 15:50:28 +08:00
李铭昕
a616fdeab9 Fixed extra data saved twice when use save() after increment() with extra. 2021-01-07 14:39:11 +08:00
谷溪
e0533cb7f9
revert: flysystem v2.0 support (#3077)
* revert: flysystem v2.0 support

v2.0 is incompatible with almost all adapters available.

* Update composer.json

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-06 16:01:13 +08:00
李铭昕
462c361c44
v2.1.1 (#3067)
* v2.1.1

* Update
2021-01-04 11:03:02 +08:00
谷溪
cfaf5869ff
feat: improve error handling and support Engine::close protocol. (#3054)
* feat: improve error handling and Support Engine::close protocol.

* Update ConnectionClosedException.php

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-04 10:32:49 +08:00
李铭昕
b135804ba7
Removed type hint form MysqlConnector::setModes. (#3045)
* Removed type hint form `MysqlConnector::setModes`.

* Update CHANGELOG-2.1.md
2020-12-28 18:11:01 +08:00
李铭昕
f5a1fbb1ed v2.1.0 2020-12-28 11:05:18 +08:00
李铭昕
93ded3bc8a
Added document for how to upgrade to 2.1 (#3037)
* Added document for how to upgrade to 2.1

* Update
2020-12-27 13:34:58 +08:00
李铭昕
2ff91b21f8
Upgraded league/flysystem to ^1.0|^2.0 (#3034) 2020-12-27 10:24:51 +08:00
ushell
39b36eff3f
Optimized code for prometheus which support https not only http. (#3009)
* Optimized code for prometheus which support `https` not only `http`.

* Update composer.json

* Format code.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-12-25 10:11:53 +08:00
李铭昕
4ae92ac453
Added method Model\Collection::columns(). (#3001)
* Added method `Model\Collection::columns()`.

* Update CHANGELOG-2.1.md
2020-12-24 09:58:29 +08:00
李铭昕
276cac2dbb
Added params $depth and $flags for Json::decode and Json::encode. (#3002)
* Added params `$depth` and `$flags` for `Json::decode` and `Json::encode`.

* Added test cases

* Added PHPUnit for Swoole 4.5 and 4.6
2020-12-23 13:42:40 +08:00
李铭昕
c74e5d8368
Don't format decimal to float for command gen:model by default. (#2979)
* Don't format `decimal` to `float` for command `gen:model` by default.

* Update CHANGELOG-2.1.md

* Added test case.
2020-12-16 09:38:41 +08:00
李铭昕
4a01fa1135
Changed the string format for default exception formatter. (#2935) 2020-12-08 10:09:30 +08:00
huangzhhui
600817be72 Move waiter from Utils\Coroutine\Waiter to Utils src 2020-12-07 09:45:54 +08:00