Skip to content

Commit 14f0f64

Browse files
committed
docs: 更新 ChangeLog
1 parent 6043c57 commit 14f0f64

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
### Added
13+
14+
- DNS pre-resolution support with ability to disable DNS resolution
15+
- Custom DNS resolution timeout configuration
16+
- Extended sync and async ping interfaces with DNS configuration options
17+
- Extended streaming interfaces with DNS configuration support
18+
- Comprehensive documentation for ping module and related error types
19+
- Documentation for Python bindings ping functionality and streaming interfaces
20+
- Rust code quality and style checking configuration (Clippy and Rust lints)
21+
22+
### Changed
23+
24+
- Refactored positive integer conversion logic for improved parameter validation
25+
- Optimized parameter validation with extracted conversion functions
26+
- Enhanced build.rs with improved robustness for build environment variables
27+
- Unified documentation comment formatting with consistent backtick usage for code identifiers
28+
- Standardized string formatting to Rust 1.58+ inline variable syntax
29+
- Improved code comments with consistent punctuation and spacing
30+
31+
### Fixed
32+
33+
- Fixed max_count conversion overflow error handling to prevent unwrap panics
34+
- Improved error handling robustness in build configuration
35+
1236
## [2.0.1] - 2025-11-15
1337

1438
### Fixed

CHANGELOG_ZH.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,40 @@
99

1010
## [Unreleased]
1111

12+
### Added
13+
14+
- DNS 预解析支持,支持禁用 DNS 预解析功能
15+
- 自定义 DNS 解析超时时间配置
16+
- 扩展同步和异步 ping 接口,支持 DNS 配置选项
17+
- 扩展流式接口,支持 DNS 配置
18+
- 补充 ping 模块及相关错误类型的完整文档
19+
- 添加 Python 绑定的 ping 功能及流式接口文档
20+
- 新增 Rust 代码质量和风格检查配置(Clippy 和 Rust lints)
21+
22+
### Changed
23+
24+
- 重构正整数转换逻辑,改进参数验证
25+
- 优化参数验证,提取转换函数
26+
- 增强 build.rs,提升构建环境变量的健壮性
27+
- 统一文档注释格式,规范代码标识的反引号使用
28+
- 统一字符串格式化为 Rust 1.58+ 的内嵌变量语法
29+
- 优化代码注释的标点和空格规范
30+
31+
### Fixed
32+
33+
- 修正 max_count 转换溢出时的错误处理,避免 unwrap 导致崩溃
34+
- 改进构建配置中的错误处理健壮性
35+
1236
## [2.0.1] - 2025-11-15
1337

14-
### Fixed(修复)
38+
### Fixed
1539

1640
- 在 Python < 3.12 环境下,通过在存根中从 `typing_extensions` 引入 `override` 以确保类型提示兼容性
1741
- 对齐 `PingStream` 的迭代协议存根:将 `__next__` 改为同步方法,并补全构造参数以匹配 Rust 实现
1842
- 移除顶层重复的存根文件,保留 `ping_rs/_ping_rs.pyi` 作为唯一权威存根,避免漂移
1943
- 修正 `PingResult` 存根:将嵌套变体的构造从 `__init__` 调整为 `__new__`,并为基类添加 `@disjoint_base` 注解,改进类型检查与模式匹配
2044

21-
### Changed(变更)
45+
### Changed
2246

2347
- 更新开发/校验相关依赖,新增 `typing_extensions`,并同步刷新依赖集合
2448
- CI:新增并发控制(快速连续 push 时自动取消旧运行)以避免重复任务

0 commit comments

Comments
 (0)