0.34.1

(fix): Properly escape control characters, real newlines, real backslashes, and real double quotes when emitting Swift string literals that wrap raw user data (example values, dynamic snippet inputs, JSON wire test fixtures). Previously, an example value containing a real newline (e.g. a multi-line iCalendar string) caused the generated SDK to fail Swift compilation with error: unterminated string literal.


0.34.0

(feat): Add retryStatusCodes configuration option ("legacy" | "recommended"). Legacy (default) preserves existing behavior (408, 429, >= 500). Recommended retries only transient codes (408, 429, 502, 503, 504), excluding 500 Internal Server Error to avoid retrying non-idempotent failures.


0.33.1

(fix): Fix dynamic snippet generation for endpoints whose body $refs a top-level schema. The snippet now passes the referenced type directly instead of wrapping it in a non-existent .init(body:) on the request wrapper struct.


0.33.0

(feat): 在 README 代码片段(错误、自定义网络、环境部分)中显示明确的身份验证参数,而不是用 (...) 省略。在配置时使用 IR placeholder 字段,并提供合理的默认值。


0.32.2

(chore): 将 @fern-api/generator-cli 升级到 0.9.11 版本。GitHub 流水线步骤现在通过 GitHub REST API 创建签名提交(匹配 fiddle 的传统 InMemoryGitRepo 推送路径),为启用重放的组织恢复经过验证的 fern-api[bot] 提交。

0.32.1

(chore): 在生成器运行时中通过 Sentry 添加崩溃报告,并使用新的共享 GeneratorError 分类法对抛出的错误进行分类,以便将面向用户的故障(配置、验证、身份验证、网络、环境)与内部 Fern 错误区分开来——只有后者会转发给 Sentry。生成的输出没有变化。


0.32.0

(chore): 将 @fern-api/generator-cli 升级到 0.9.8 版本。生成的 PR 中的变更日志 URL 现在使用提交 SHA 而不是 PR 分支名称,这样在分支被删除或合并后链接仍然有效。



0.31.0

(feat): 生成一个包含 SDK 版本字符串的 Version.swift 源文件。这将版本嵌入到生成的源代码中,与其他生成器保持一致,并修复了 Swift SDK 的自动版本控制功能。


0.30.0

(feat): 添加 maxRetries 自定义配置选项,用于覆盖失败请求的默认最大重试次数。未指定时默认值仍为 2 次。


0.29.0

(feat): 在生成的 README 中添加环境部分,说明如何在初始化客户端时选择不同的环境(生产环境/沙盒环境)。