Skip to content

Commit 7511dac

Browse files
feat: translate 70 changelog files to zh
1 parent b96ed60 commit 7511dac

70 files changed

Lines changed: 454 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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## 1.0.0-rc49
2+
**`(fix):`** 在检查输出中添加了敏感字段的自动脱敏功能,以防止在日志和调试输出中意外暴露凭据和令牌。
3+
4+
## 1.0.0-rc48
5+
**`(feat):`** 添加了通过 customPagerName 配置选项支持的自定义分页功能。
6+
当配置了 customPagerName 时,生成器包含一个 CustomPager 工具类,
7+
为自定义分页端点提供导航方法(has_next_page?、has_prev_page?、get_next_page、get_prev_page)。
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## 1.0.0-rc53
2+
**`(feat):`** 将 raw_client 传递给自定义分页器用于分页。这允许自定义分页器实现
3+
使用 HTTP 客户端获取其他页面。
4+
5+
6+
## 1.0.0-rc52
7+
**`(fix):`** 修复了推断身份验证的根客户端生成。客户端现在正确地为身份验证端点创建
8+
未经身份验证的客户端,将 auth_client 和选项传递给
9+
InferredAuthProvider,并使用正确的 Internal 命名空间。
10+
11+
12+
## 1.0.0-rc51
13+
**`(fix):`** 修复推断身份验证令牌刷新,以在缓冲期内正确刷新。
14+
令牌现在在当前时间距离过期时间 2 分钟内时刷新,
15+
而不是仅在令牌完全过期后刷新。
16+
17+
18+
## 1.0.0-rc50
19+
**`(feat):`** 为 Ruby SDK 添加推断身份验证支持。SDK 现在生成一个 InferredAuthProvider 类,
20+
处理自动令牌检索和缓存以及过期处理。根客户端
21+
接受令牌端点请求参数用于推断身份验证。
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## 1.0.0-rc57
2+
**`(fix):`** 修复生成的 SDK 代码中的其他 RuboCop 警告:
3+
- 重命名迭代器方法以遵循 Ruby 约定(get_next -> next_element/next_page,has_next? -> next?)
4+
- 重命名自定义分页器方法(get_next_page -> next_page,has_next_page? -> next_page?)
5+
- 在迭代器初始化器中添加 super() 调用以修复 Lint/MissingSuper
6+
- 在 utils.rb 中合并重复的模式匹配分支以修复 Lint/DuplicateBranch
7+
- 更新 .rubocop.yml 以针对 Ruby 3.3 并禁用其他检查器
8+
9+
10+
## 1.0.0-rc56
11+
**`(fix):`** 在生成的 .rubocop.yml 中禁用 Metrics/CyclomaticComplexity 以消除
12+
具有多个查询参数的端点方法的警告。
13+
14+
15+
## 1.0.0-rc55
16+
**`(fix):`** 修复生成代码中的 RuboCop Lint/UnderscorePrefixedVariableName 警告。
17+
将带下划线前缀的局部变量(_query、_request、_response 等)
18+
重命名为非下划线名称(query_params、request、response 等),以遵循
19+
Ruby 已使用变量的约定。
20+
21+
22+
## 1.0.0-rc54
23+
**`(fix):`** 自动换行长注释行以适应 RuboCop 的 120 字符行长度限制。
24+
这可以防止从长 OpenAPI 描述生成的注释出现 Layout/LineLength 警告。
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## 1.0.0-rc58
2+
**`(fix):`** 修复生成的 SDK 代码中的其他 RuboCop 警告:
3+
- 禁用 Layout/LineLength 检查器(长类型名称和 require 路径不可避免)
4+
- 将 Naming/VariableNumber 设置为 snake_case 样式(允许 `last_4``address_1` 等)
5+
-`get_token``get_auth_headers` 方法重命名为 `token``auth_headers`
6+
- 在迭代器测试中用 Struct 替换 OpenStruct
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 1.0.0-rc59
2+
**`(feat):`** 为 Ruby SDK 添加线路测试生成支持。当在自定义配置中将 enableWireTests 设置为 true 时,
3+
生成器产生基于 Minitest 的集成测试,验证 SDK 序列化/反序列化对 WireMock 的支持。
4+
包括用于本地运行测试的 docker-compose.test.yml 和 wiremock-mappings.json。
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## 1.0.0-rc61
2+
**`(fix):`** 将默认环境解析从请求函数移至根客户端实例化。
3+
没有此更改,在客户端初始化时设置的非默认基础 URL 永远不会被使用。
4+
默认环境回退发生在请求层,这意味着传递给单个请求的任何 base_url
5+
如果在 request_options 中没有明确提供,将回退到默认环境——即使根客户端
6+
是用自定义 base_url 初始化的。
7+
8+
9+
## 1.0.0-rc60
10+
**`(feat):`** 为 Ruby v2 SDK 生成器添加 extraDependencies 和 extraDevDependencies 配置标志。
11+
这些选项允许用户指定要包含在生成的 gemspec(extraDependencies)
12+
和 Gemfile(extraDevDependencies)中的其他 gem 依赖项。值直接写为
13+
版本约束(例如,`{ "my-gem": "~> 6.0" }` 产生 `spec.add_dependency "my-gem", "~> 6.0"`)。
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 1.0.0-rc62
2+
**`(feat):`** 在动态代码片段中添加对判别联合、枚举和非判别联合的支持。
3+
这修复了代码片段示例对复杂类型(如电子邮件/消息发送操作中的联合收件人)
4+
显示空数组或缺失值的问题。
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## 1.0.0-rc64
2+
**`(chore):`** 改进 reference.md 生成以与 TypeScript SDK 生成器保持一致:
3+
- 为所有端点添加 request_options 参数文档
4+
- 在参考文档中为方法名添加源文件链接(超链接)
5+
- 为详细代码片段优先选择包含请求体数据的示例,确保
6+
端点显示包含嵌套对象和数组的完整请求体,而不是
7+
最小的单行示例
8+
- 当 jsonExample 为 null/空时,从结构化属性合成 requestBody
9+
10+
11+
## 1.0.0-rc63
12+
**`(fix):`** 修复 GitHub、直接发布和种子测试模式的 README.md 生成。
13+
- 更新 shouldGenerateReadme 默认返回 true,而不是需要 snippetFilepath
14+
- 修复 getGitHubConfig 返回 uri/token 的 undefined,而不是导致
15+
无效 git clone 尝试的占位符值
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## 1.0.0-rc66
2+
**`(fix):`** 修复 Hash 和 Array 类型包装器的联合类型匹配。现在 `type_matches?` 方法
3+
正确处理 `Internal::Types::Hash``Internal::Types::Array` 实例,通过检查
4+
值是否为 `::Hash``::Array` 而不是直接在类型包装器类上使用 `is_a?`
5+
6+
7+
## 1.0.0-rc65
8+
**`(feat):`** 添加 CI 工作流生成、.gitignore 文件和连接测试基础设施:
9+
- 生成 `.github/workflows/ci.yml` 包含 lint 和 test 任务(在 push 和 pull_request 时触发)
10+
- 生成包含 `*.gem``.gitignore` 文件
11+
- 配置驱动的 wire-tests 任务:当 `enableWireTests: true` 时,生成 wire-tests CI 任务
12+
- 添加 `wire_helper.rb` 用于使用 Minitest 的 `after_run` 钩子管理 WireMock 容器生命周期,
13+
允许用户在本地运行 `bundle exec rake test` 而无需手动管理 docker compose
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## 1.0.0-rc68
2+
**`(feat):`** 在生成的 CI 中添加 RubyGems.org OIDC 发布工作流:
3+
- 在 CI 中生成使用 `rubygems/release-gem@v1` 进行 OIDC 可信发布的 `publish` 任务
4+
- 发布任务在 lint 和 test 任务通过后在标签推送时运行
5+
- 通过使用 `RUN_WIRE_TESTS=true` 环境变量与常规测试内联运行而不是单独的 CI 任务来简化 wire tests 执行
6+
7+
8+
## 1.0.0-rc67
9+
**`(feat):`** 添加对 x-fern-server-name(每个环境多个基础 URL)的支持。具有不同
10+
端点路由到不同基础 URL 的 API(例如,独立的 api 和 identity URL)现在生成
11+
具有基于哈希的 URL 映射的适当 Environment 类。每个端点根据 IR 中的 endpoint.baseUrl 属性使用其指定的
12+
基础 URL。

0 commit comments

Comments
 (0)