diff --git a/CHANGELOG-2.0.md b/CHANGELOG-2.0.md index 7a928de54..cbe4ac593 100644 --- a/CHANGELOG-2.0.md +++ b/CHANGELOG-2.0.md @@ -1,4 +1,6 @@ -# v2.0.20 - TBD +# v2.0.21 - TBD + +# v2.0.20 - 2020-11-23 ## Added @@ -16,6 +18,7 @@ ## Optimized +- [#2766](https://github.com/hyperf/hyperf/pull/2766) Safely finish spans in case of exception for tracer. - [#2805](https://github.com/hyperf/hyperf/pull/2805) Optimized nacos process which can stop safely. - [#2821](https://github.com/hyperf/hyperf/pull/2821) Optimized the exceptions thrown by `Json` and `Xml`. - [#2827](https://github.com/hyperf/hyperf/pull/2827) Optimized `Hyperf\Server\ServerConfig` which return type of `__set` should be void. diff --git a/docs/zh-cn/changelog.md b/docs/zh-cn/changelog.md index 3d7acfc8d..f2ea9609d 100644 --- a/docs/zh-cn/changelog.md +++ b/docs/zh-cn/changelog.md @@ -1,5 +1,29 @@ # 版本更新记录 +# v2.0.20 - 2020-11-23 + +## 新增 + +- [#2824](https://github.com/hyperf/hyperf/pull/2824) 为 `Hyperf\Database\Query\Builder` 增加方法 `simplePaginate()`。 + +## 修复 + +- [#2820](https://github.com/hyperf/hyperf/pull/2820) 修复使用 `fanout` 交换器时,`AMQP` 消费者无法正常工作的问题。 +- [#2831](https://github.com/hyperf/hyperf/pull/2831) 修复 `AMQP` 连接会被客户端意外关闭的问题。 +- [#2848](https://github.com/hyperf/hyperf/pull/2848) 修复在 `defer` 中使用数据库组件时,会导致数据库连接会同时被其他协程绑定的问题。 + +## 变更 + +- [#2824](https://github.com/hyperf/hyperf/pull/2824) 修改 `Hyperf\Database\Query\Builder` 方法 `paginate()` 返回值类型,由 `PaginatorInterface` 变更为 `LengthAwarePaginatorInterface`。 + +## 优化 + +- [#2766](https://github.com/hyperf/hyperf/pull/2766) 优化 `Tracer` 组件,在抛出异常的情况下,也可以执行 `finish` 方法,记录链路。 +- [#2805](https://github.com/hyperf/hyperf/pull/2805) 优化 `Nacos` 进程,可以安全停止。 +- [#2821](https://github.com/hyperf/hyperf/pull/2821) 优化工具类 `Json` 和 `Xml`,使其抛出一致的异常。 +- [#2827](https://github.com/hyperf/hyperf/pull/2827) 优化 `Hyperf\Server\ServerConfig`,使其方法 `__set` 因返回值不为 `void`,导致 `PHP8` 不兼容的问题。 +- [#2839](https://github.com/hyperf/hyperf/pull/2839) 优化 `Hyperf\Database\Schema\ColumnDefinition` 的注释。 + # v2.0.19 - 2020-11-17 ## 新增 diff --git a/src/session/tests/SessionMiddlewareTest.php b/src/session/tests/SessionMiddlewareTest.php index 9fe9a8f7d..f8c442f5f 100644 --- a/src/session/tests/SessionMiddlewareTest.php +++ b/src/session/tests/SessionMiddlewareTest.php @@ -189,7 +189,7 @@ class SessionMiddlewareTest extends TestCase 'gc_maxlifetime' => 1200, 'session_name' => 'HYPERF_SESSION_ID', 'domain' => 'hyperf.wiki', - 'cookie_lifetime' => 5 * 60 * 60, + 'cookie_lifetime' => 5 * 60 * 60, ], ], ]);