Commit Graph

204 Commits

Author SHA1 Message Date
李铭昕
835480c356
Added Annotation RewriteReturnType which used to rewrite the return type when generating models. 2023-12-28 16:46:40 +08:00
szutoutou
9ed7d0276e
Fixed bug that prepareHandler cannot work sometimes for circuit-breaker. (#6419) 2023-12-28 11:36:50 +08:00
guandeng
c1b7d6ae42
Throw InvalidArgumentException instead of TypeError for decoding an empty string when using Base62::decode. (#6415)
Co-authored-by: Lu Fei <52o@qq52o.cn>
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-12-25 14:07:48 +08:00
李铭昕
0182f4a60e
Release v3.1.3 (#6409) 2023-12-21 20:57:52 +08:00
chenkby
96e2764c4f
Added template_suffix configuration to twig engine. (#6402)
Co-authored-by: sy-records <52o@qq52o.cn>
2023-12-21 20:34:18 +08:00
Gang Wu
5a15726600
Fixed bug that Hyperf\Scout\Searchable don't import namespace of function config. (#6406) 2023-12-20 18:27:21 +08:00
Nash Gao
cec648106d
Added timezone parameter to hyperf/crontab component. (#6398)
Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
Co-authored-by: Lu Fei <52o@qq52o.cn>
2023-12-19 17:01:35 +08:00
李铭昕
009c364d61
Fixed bug that es version cannot be found when the index is null. (#6389) 2023-12-15 14:55:23 +08:00
李铭昕
18725acd09
Release v3.1.2 (#6387) 2023-12-15 09:36:36 +08:00
李铭昕
8b90b8ed89
Fixed bug that scout cannot work when using elasticsearch(which version is less than 7) without index. (#6384) 2023-12-14 17:32:53 +08:00
宣言就是Siam
ff4451014a
Support collect swagger validation rules and attribute for mediaType request body. (#6380) 2023-12-14 12:05:10 +08:00
李铭昕
5748c8dc15
Support to read custom attribute for validation when using swagger. (#6379) 2023-12-12 17:40:33 +08:00
Deeka Wong
f8ccb927b5
Don't need to close swoole short name when don't use swoole or don't require hyperf/polyfill-coroutine (#6376)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-12-12 16:06:45 +08:00
xiechenghua
d11c018daf
Fixed bug that Hyperf\RateLimit\Aspect\RateLimitAnnotationAspect::getWeightingAnnotation() cannot work. (#6374)
Co-authored-by: xiechenghua <chenghua.xie@ehang.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-12-12 16:00:41 +08:00
guandeng
5f22575ae8
Support ping method for grpc client. (#6373) 2023-12-12 15:37:26 +08:00
张城铭
fdf3934ad8
Fixed bug that AOP not working when using variadic parameters. (#6372)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-12-11 11:14:01 +08:00
Binary Alan
6fc5e179b4
🛠️refactor(scanHandler): handle fork process execution failure (#6369) 2023-12-11 09:53:47 +08:00
李铭昕
b7f8b587fd
Support symfony 7.x for some components such as command config devtool di and server. (#6368) 2023-12-08 11:15:29 +08:00
李铭昕
d8bb4303ed
Release v3.1.1 (#6367) 2023-12-08 09:44:24 +08:00
Binary Alan
7e2e019ed5
🛠️refactor(circuit-breaker) remove unnecessary condition (#6364) 2023-12-07 11:40:41 +08:00
张城铭
7f03249ed7
Add callable type support to the fallback property of CircuitBreaker Attribute (#6363)
Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
2023-12-07 11:25:12 +08:00
xiechenghua
af608b8e4a
Fixed bug that Hyperf\SocketIOServer\Emitter\Future cannot be resolved.
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-12-06 13:31:17 +08:00
宣言就是Siam
cb609975e0
Added response content-type header for swagger server. (#6360)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-12-06 09:35:06 +08:00
guandeng
50b7fa9f37
Fixed bug that the recv channel cannot be found, because GrpcClient::runReceiveCoroutine will unset streamId before recv method. (#6350) 2023-12-05 14:15:56 +08:00
李铭昕
823596fbe0
Fixed bug that nacos config center cannot work when using grpc protocol. (#6352) 2023-12-05 10:11:19 +08:00
Binary Alan
0a4fe46065
🛠️refactor(view-engine) fix header setting in view function (#6347)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-12-04 16:39:23 +08:00
Deeka Wong
de0fdd9078
Added Coroutine::fork() and Coroutine::pid() (#6342) 2023-12-01 14:59:45 +08:00
李铭昕
861ce7aee7
Release v3.1.0 (#6340) 2023-12-01 00:00:30 +08:00
宣言就是Siam
09a4127ee3
Added config processors for swagger. (#6338)
Co-authored-by: Lu Fei <52o@qq52o.cn>
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-11-30 17:23:17 +08:00
李铭昕
05530c98bd
Changed the branch-alias of all components to 3.1-dev. (#6320) 2023-11-24 11:10:53 +08:00
宣言就是Siam
d11673381f
Improve storage switcher for rate-limit. (#6301) 2023-11-23 20:55:38 +08:00
李铭昕
4ce77bc1c8
Fixed bug that logger cannot work in LoadBalancerInterface::refresh(). (#6260) 2023-11-03 16:32:47 +08:00
李铭昕
0481f6979c
Support to use model builder as the column in Hyperf\Database\Query\Builder\addSelect. (#6259) 2023-11-03 15:28:43 +08:00
李铭昕
fdd501d96d
Optimized code that you can get request from BadRequestHttpException. (#6247) 2023-11-01 11:22:10 +08:00
Lu Fei
29959f38af
Remove deprecated component swoole-tracker (#6244) 2023-11-01 10:32:14 +08:00
李铭昕
10413ec0de Throw exceptions when the redis option key is invalid. 2023-10-10 10:05:43 +08:00
李铭昕
84350c4eba
Set logger when using safe socket in coroutine style tcp server. 2023-09-30 23:16:50 +08:00
Deeka Wong
1bbed67d5d
Optimize ProcessManager to make the running status more clear (#6172) 2023-09-22 16:30:01 +08:00
李铭昕
08eb8be7f7
Throw invalid argument exception when the crontab task is null. (#6131) 2023-09-05 10:52:48 +08:00
宣言就是Siam
e7a82ce706
Support to use config('a.c') to get the configurations from autoload/a/c.php. (#6128)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-09-04 21:23:06 +08:00
Deeka Wong
f716771642
Adds Hyperf\AsyncQueue\Job::fail() method (#6124) 2023-09-02 23:09:18 +08:00
陈文锋
d1323e9707
Added new rules to the validation (#6106) 2023-08-31 19:56:59 +08:00
李铭昕
d4f14fd945
Added an error count to the database connection to ensure that the connection can be reset when occur too many exceptions. (#6085) 2023-08-25 21:34:08 +08:00
Deeka Wong
5d2d69a80b
Adds hyperf/stdlib component (#6082)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-08-25 11:55:47 +08:00
李铭昕
54ea6fcdcd
Fixed bug that Hyperf\HttpServer\Request::hasFile don't support Swow. (#6056) 2023-08-18 15:28:12 +08:00
张城铭
da32a0ee6c
Removed deprecated Hyperf\Coroutine\Traits\Container. (#6043) 2023-08-17 14:22:08 +08:00
Albert Chen
4ca7b2fa8a
[feat] Support buffer mechanism in standalone process of metric (#6030)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-08-17 10:00:28 +08:00
李铭昕
b6538c14da
Removed some deprecated methods from Hyperf\Di\Annotation\AbstractAnnotation. (#6040) 2023-08-16 20:45:43 +08:00
Albert Chen
056f72a36d
Support semantic crontab rules.
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-08-16 18:08:51 +08:00
李铭昕
aa6fe7d1e6
Fixed bug that RequestContext and ResponseContext cannot get instance from another coroutines. (#6033) 2023-08-16 13:50:12 +08:00
guandeng
4773ff4c8e
When using Base62::decode to decode the incorrect data, it will be thrown InvalidArgumentException instead of TypeError. (#6022)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-08-15 16:48:23 +08:00
她和她的猫
3ab5329ae3
Throw exception when cast class is not existed. (#6010)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-08-09 12:19:05 +08:00
gaichao168
a6e1014f70
Optimized the code for pgsql. 2023-08-09 09:55:43 +08:00
Deeka Wong
8293491fde
Adds events of crontab lifecycle (#5994) 2023-08-02 13:01:51 +08:00
Deeka Wong
08f131c6d8
Support set skip_cache_results in the config of hyperf/cache (#5985)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-07-31 14:37:29 +08:00
Deeka Wong
329a04ad24
Adds skipCacheResults to annotations of hyperf/cache (#5983)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-07-28 23:26:37 +08:00
Deeka Wong
f21eb6dda7
Update CHANGELOG-3.1.md (#5976)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-07-27 10:25:49 +08:00
Deeka Wong
dc331072b7
Simplified the handlers definition of logger (#5973)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-07-26 16:20:38 +08:00
Deeka Wong
9a59c57f37
Collection::except() with null returns all (#5972) 2023-07-26 09:25:51 +08:00
李铭昕
9fd7752de6
Added component hyperf/migration-generator which used to generate migrations from databases. (#5967) 2023-07-23 20:01:33 +08:00
Deeka Wong
b3119a2349
Allow set poolName in Annotation (#5960) 2023-07-19 16:52:12 +08:00
Deeka Wong
dfecb0fe72
Adds Job::setMaxAttempts and dispatch helper function (#5950)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-07-17 19:31:14 +08:00
李铭昕
1e6be7c4cf
Optimized Hyperf\Coroutine\Locker. (#5948) 2023-07-15 09:09:38 +08:00
李铭昕
e846045984
Don't sync config frequently when listen more than one namespace for apollo config center. (#5945) 2023-07-14 18:43:45 +08:00
李铭昕
d367f2eb2b
Don't remove the node from load balancer when the status code isn't 200. (#5943) 2023-07-14 16:19:52 +08:00
Deeka Wong
606da42216
Optimize the code for setting input and output (#5934) 2023-07-14 09:34:12 +08:00
Deeka Wong
93969e5ac5
Remove closure-command component (#5933)
Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
2023-07-13 16:04:15 +08:00
Deeka Wong
e051e3b2c3
Adds AsCommand annotation and ClosureCommand support (#5930)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-07-13 15:11:39 +08:00
李铭昕
117bbfefa3
Fixed bug that int cannot work when using model enum case. (#5926) 2023-07-11 11:26:40 +08:00
李铭昕
e614f5db13
Allow model attributes to be casted to/from an Enum (#5925) 2023-07-11 08:58:49 +08:00
Deeka Wong
f36fe23d6f
Adds the \Stringable interface to classes that have __toString() method (#5920)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-07-10 16:08:17 +08:00
Deeka Wong
e5440c894c
Adds isList method to Arr (#5918)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-07-10 09:56:25 +08:00
Deeka Wong
cfdf089eaf
Upgrade URL pattern for Str::isUrl() (#5917) 2023-07-09 19:52:01 +08:00
Deeka Wong
f8610a086c
Adds Str::isUrl() and use it from the validator (#5914)
* Adds `Str::isUrl()` and use it from the validator

* Update CHANGELOG-3.1.md
2023-07-09 13:30:28 +08:00
Deeka Wong
6d4f647ac9
Adds data_forget() helper (#5915)
* Adds `data_forget()` helper

* Update CHANGELOG-3.1.md
2023-07-09 11:27:32 +08:00
Deeka Wong
37f2405ecc
Adds Connection::getRawQueryLog() method (#5906) 2023-07-05 09:55:50 +08:00
Deeka Wong
4c6b928f2d
Forget with collections (#5905) 2023-07-05 09:54:22 +08:00
李铭昕
e736786d15
Optimized code for identifer established by the rpc client that must contain a string,number or null if included. (#5901) 2023-07-04 09:56:13 +08:00
Deeka Wong
83dc4d9edf
Adds toRawSql() to Query Builders (#5898)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-07-03 18:27:25 +08:00
Deeka Wong
47a30da53a
Adds define() method to ModelFactory (#5897)
* Adds `define()` method to `ModelFactory`

* Update CHANGELOG-3.1.md
2023-07-03 12:40:26 +08:00
Deeka Wong
030405b092
Adds ModelFactory support for hyperf/testing (#5894) 2023-07-01 20:25:51 +08:00
Deeka Wong
6c4cb30f5d
Improve Command (#5879) 2023-06-26 17:11:21 +08:00
李铭昕
191042b4a1
Support stream for nacos naming service. (#5586) 2023-06-24 14:49:49 +08:00
李铭昕
076ca73f62
Avoid to execute the refresh callback more than once when calling refresh() multi times. (#5872) 2023-06-24 09:47:30 +08:00
李铭昕
728a3ca131
Use StrCache instead of Str in special cases. (#5866) 2023-06-20 12:11:58 +08:00
Liu
56dce81c26
Removed string cache from Hyperf\Stringable\Str
Co-authored-by: Deeka Wong <huangdijia@gmail.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-06-20 11:16:52 +08:00
Deeka Wong
8d2a243c51
Adds hyperf/closure-command component (#5855) 2023-06-19 14:56:46 +08:00
yansongda
f82bc145b5
Removed the deprecated code for metric. (#5847) 2023-06-18 20:57:40 +08:00
她和她的猫
2958364104
Support for insert update and select using enums. (#5849)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-06-18 19:40:39 +08:00
李铭昕
dc38e5a209
upgrade documents about websocket-server. (#5846) 2023-06-17 21:12:15 +08:00
李铭昕
664297c766
Support Swow for reactive-x. (#5843) 2023-06-17 07:56:21 +08:00
Deeka Wong
cf288037ba
Adds hyperf/polyfill-coroutine component (#5841)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-06-16 19:57:19 +08:00
李铭昕
5fc9571053
Support swow psr7-plus interface for all components. (#5839) 2023-06-16 15:56:37 +08:00
李铭昕
6bdb3863f4
Support swow psr7-plus interface for http-message. (#5828) 2023-06-15 18:15:06 +08:00
Deeka Wong
0e745ffeea
Adds alias as mysql for pdo in hyperf/db (#5815)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-06-08 17:56:39 +08:00
Deeka Wong
7bbc0ae02d
Removed support for swoole 4.x (#5813)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-06-08 16:48:41 +08:00
szutoutou
0f0cc7da6f
Fixed bug that the return type of Model::updateOrInsert isn't boolean. (#5771)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-06-08 15:14:17 +08:00
Deeka Wong
86eb53e0dc
Remove deprecated codes (#5812) 2023-06-07 22:31:03 +08:00
Deeka Wong
0a85b1edea
Remove redundant setAccessible methods (#5811) 2023-06-07 20:55:22 +08:00
Deeka Wong
9679f71ea4
Remove useless codes in hyperf/utils (#5810) 2023-06-07 17:00:55 +08:00
Deeka Wong
00e2854a3e
Adds hyperf/helper component (#5809) 2023-06-07 14:33:04 +08:00
Deeka Wong
d3ab30ca4b
[3.1] Support pest (#5805) 2023-06-07 13:05:40 +08:00
Deeka Wong
b18bf79b7e
Bumps phpunit to 10.x (#5802)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-06-07 10:16:25 +08:00
Deeka Wong
985ab58bb1
[3.1]Bumps dependencies (#5796)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-06-06 09:52:53 +08:00