Skip to content

Commit c6f860b

Browse files
feat: translate 58 changelog files to zh
1 parent d26aac5 commit c6f860b

58 files changed

Lines changed: 461 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## 4.37.0
2+
**`(feat):`** 分页功能:`page.response` 现在是每页的类型化 API 响应对象(例如 `ListUsersPaginationResponse`),而不是原始的 HTTP 包装器。这只是一个类型改进;运行时行为没有变化,现有代码继续有效。如果您明确为分页器添加类型注解,请使用两个类型参数(`SyncPager[T, R]` / `AsyncPager[T, R]`)。
3+
4+
```python
5+
# 遍历页面并访问每页的类型化响应
6+
pager = client.users.list(...)
7+
for page in pager.iter_pages():
8+
print(page.response) # 类型化响应对象
9+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## 4.38.0
2+
**`(feat):`** 在生成的 SDK 中添加 pytest-xdist 以支持并行测试执行,并将 CI Python 版本升级到 3.9。
3+
4+
## 4.37.1
5+
**`(chore):`** 升级生成器 CLI 版本以发布新的 Docker 镜像。
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## 4.38.3-rc1
2+
**`(feat):`**`enable_wire_tests` 标志后添加 wire 测试生成功能。
3+
4+
## 4.38.3-rc0
5+
**`(feat):`** 添加自定义分页支持
6+
7+
## 4.38.2
8+
**`(fix):`** 修复使用懒导入时缺失 websocket 服务的问题
9+
10+
## 4.38.1
11+
**`(fix):`** 为生成的发布工作流添加 contents:read 权限,以支持 OIDC 身份验证,修复 actions/checkout@v4 要求。
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## 4.38.4
2+
**`(fix):`** 移除使用 generator-cli 推送到 GitHub 的自托管 SDK 功能;这现在由本地工作区运行器处理。
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## 4.38.5
2+
**`(fix):`** 修复判别联合类型 Field(discriminator=...) 和 UnionMetadata(discriminant=...) 使用 Python 字段名而不是 JSON 别名,以兼容 Pydantic v2。
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## 4.40.0
2+
**`(feat):`** 添加对 X-RateLimit-Reset 头的支持
3+
重试策略与其他 SDK 保持一致(初始延迟 1 秒,最大延迟 60 秒)。
4+
5+
6+
## 4.39.2
7+
**`(fix):`** 对 wire 测试进行更多修复和改进。
8+
9+
## 4.39.1
10+
**`(fix):`** 对 wire 测试进行各种修复和改进。
11+
12+
## 4.39.0
13+
**`(feat):`** 添加 environment_class_name 配置选项以自定义环境类名称。默认值保持为 `{ClientName}Environment`
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## 4.41.2
2+
**`(fix):`** 对 wire 测试进行更多修复和改进。
3+
4+
## 4.41.1
5+
**`(fix):`** 对 wire 测试进行更多修复和改进。
6+
7+
## 4.41.0
8+
**`(feat):`** `package_path: sub/directory` 将 SDK 生成到指定的子目录中。
9+
只有顶级关注点(`pyproject.toml``README.md` 等)被豁免。
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## 4.42.0
2+
**`(feat):`** 为 OAuth token provider 添加异步支持。生成的 SDK 现在包含一个 AsyncOAuthTokenProvider
3+
类,它使用 asyncio.Lock 进行异步安全的令牌刷新,同时保留使用 threading.Lock 的现有同步 OAuthTokenProvider。
4+
异步客户端现在使用异步令牌提供程序进行正确的异步令牌管理。
5+
6+
7+
## 4.41.3
8+
**`(fix):`** 修复多部分表单数据请求以忽略 None 值而不是将其转换为空字符串。
9+
这防止 httpx 为应该缺失的可选参数发送空字符串。
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## 4.41.8
2+
**`(fix):`** 修复判别联合类型中的重复字段名问题。
3+
4+
5+
## 4.41.7
6+
**`(fix):`** 修复当响应类型为可选或可空时的分页响应处理。
7+
8+
9+
## 4.41.6
10+
**`(fix):`** 修复 Python wire 测试生成,删除仅字面量参数并填充所需的文件参数,使测试与生成的 SDK 签名匹配。
11+
12+
13+
## 4.41.5
14+
**`(fix):`** `package_path` 配置现在作为模块层次结构中的后缀工作,而不是前缀。
15+
例如,`package_path: sub/dir` 现在生成到 `src/name/sub/dir/...`,支持像
16+
`from name.sub.dir import Client` 这样的导入。
17+
18+
19+
## 4.41.4
20+
**`(fix):`** 确保 Pydantic v2 中的 `UncheckedBaseModel.model_validate` 遵循 `FieldMetadata(alias=...)`
21+
使别名字段能正确从 JSON 验证。
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## 4.41.11
2+
**`(fix):`** 修复端点和 websocket 文档字符串中的反斜杠转义。包含反斜杠序列(如 `DOMAIN\username`)的 OpenAPI 描述现在正确转义反斜杠,避免因无效 unicode 转义序列导致的 Python SyntaxError。
3+
4+
5+
## 4.41.10
6+
**`(fix):`**`pyproject.toml` 中添加 `dynamic = ["version"]`,允许 `uv sync``uv` 命令开箱即用。
7+
8+
9+
## 4.41.9
10+
**`(fix):`** 修复 wire 测试 WireMock 容器生命周期以兼容 pytest-xdist 并行化。
11+
容器现在使用 pytest_configure/pytest_unconfigure 钩子而不是会话范围的 fixture 来启动/停止,
12+
确保只有控制器进程管理容器。

0 commit comments

Comments
 (0)