Skip to content

Commit cb3545a

Browse files
committed
🚀 release: bump version to 0.13.1
Update version and changelog for WebSocket frame payload parsing fix and enhanced websocket_client example. Changes: - Update Cargo.toml version to 0.13.1 - Add v0.13.1 changelog entry with WebSocket fix details - Update README.md version references to 0.13.1
1 parent 2a59e55 commit cb3545a

File tree

5 files changed

+41
-614
lines changed

5 files changed

+41
-614
lines changed

CHANGELOG.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
## [0.13.0] - 2025-01-03
10+
## [0.13.1] - 2025-08-12
11+
12+
### Fixed - 🐛 WebSocket 关键修复
13+
14+
#### 修复 WebSocket frame payload 解析问题
15+
- **✅ 单包消息 payload 恢复** - 修复相比版本 52e069ee 的关键回归问题
16+
- 单包消息的 payload 在 `process_frame_packages_internal` 中被 `take()` 但未重新设置
17+
- 导致下游处理器接收到没有 payload 的 frame,事件处理失败
18+
- 现在正确恢复单包消息的 payload,确保消息完整传递
19+
- **🧪 完整测试覆盖** - 添加 WebSocket payload 处理的单元测试
20+
- `test_single_package_payload_preservation` - 验证单包消息 payload 保存
21+
- `test_multi_package_payload_combination` - 验证多包消息组合逻辑
22+
- 测试辅助方法 `new_for_test()` 支持隔离测试
23+
24+
#### WebSocket 客户端示例增强
25+
- **📡 完整 WebSocket 连接示例** - `websocket_client.rs` 添加实际功能
26+
- 集成 `LarkWsClient::open()` 建立 WebSocket 连接
27+
- 配置 `EventDispatcherHandler` 处理实时事件
28+
- 注册 `p2_im_message_receive_v1` 事件处理器
29+
- 提供完整的错误处理和日志输出
30+
- **📚 改进示例文档** - 清晰的功能说明和使用指导
31+
- WebSocket 功能特性说明
32+
- 事件类型和处理器注册示例
33+
- 特性标志 (`--features websocket`) 使用说明
34+
35+
### Technical Details
36+
- 修复了 WebSocket 消息处理的核心逻辑缺陷
37+
- 所有测试通过,代码检查无警告
38+
- 向后兼容,不影响现有 API
39+
40+
## [0.13.0] - 2025-07-03
1141

1242
### Added - 📚 全面文档完善与质量提升
1343

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "open-lark"
3-
version = "0.13.0"
3+
version = "0.13.1"
44
edition = "2021"
55
authors = ["ZoOL <[email protected]>"]
66
readme = "README.md"

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
## 🎉 最新更新
1212

13+
### v0.13.1 WebSocket 关键修复 🔧
14+
- **🐛 关键问题修复**: 修复 WebSocket frame payload 解析回归问题
15+
- **📡 完整示例**: websocket_client.rs 添加完整的连接和事件处理功能
16+
- **🧪 测试覆盖**: 完整的单包和多包消息处理测试
17+
1318
### v0.12.0+ 全面文档完善与质量提升 📚
1419
- **📝 完整中文文档**: 43个服务模块100%文档覆盖,企业级文档标准
1520
- **✅ 文档测试保证**: 72个文档测试100%通过,确保示例代码正确性
@@ -40,25 +45,25 @@
4045
### 默认功能
4146
```toml
4247
[dependencies]
43-
open-lark = "0.12.0" # 包含: im, cloud-docs, contact, group, authentication, search
48+
open-lark = "0.13.1" # 包含: im, cloud-docs, contact, group, authentication, search
4449
```
4550

4651
### 仅使用云文档 API
4752
```toml
4853
[dependencies]
49-
open-lark = { version = "0.12.0", default-features = false, features = ["cloud-docs"] }
54+
open-lark = { version = "0.13.1", default-features = false, features = ["cloud-docs"] }
5055
```
5156

5257
### 仅使用消息 API
5358
```toml
5459
[dependencies]
55-
open-lark = { version = "0.12.0", default-features = false, features = ["im"] }
60+
open-lark = { version = "0.13.1", default-features = false, features = ["im"] }
5661
```
5762

5863
### 启用所有功能
5964
```toml
6065
[dependencies]
61-
open-lark = { version = "0.12.0", features = ["full"] }
66+
open-lark = { version = "0.13.1", features = ["full"] }
6267
```
6368

6469
### 可用的功能模块

0 commit comments

Comments
 (0)