Skip to content

Releases: WuKongIM/WuKongIM

v2.2.2-20251229

29 Dec 00:40

Choose a tag to compare

update connect log

v2.2.1-20250624

13 Oct 03:33

Choose a tag to compare

[v2.2.1-20250624] - 2025-06-24

🚀 Major Features

Event-Based Messaging System

  • Event Message Support: Introduced event-based messaging protocol replacing chunk-based notifications for improved real-time communication
  • 事件消息支持: 引入基于事件的消息协议,替代基于块的通知,提升实时通信能力
  • Text Event Support: Added support for text events with enhanced event handling capabilities
  • 文本事件支持: 添加文本事件支持,增强事件处理能力

Stream V2 Implementation

  • Completed Stream V2: New streaming protocol implementation with improved performance and reliability
  • 完成Stream V2: 新的流式协议实现,提升性能和可靠性
  • Stream Message Support: Enhanced message streaming capabilities with better caching and storage
  • 流式消息支持: 增强消息流式传输能力,改进缓存和存储

Agent & Visitor Channel Support

  • Agent Channel: Added support for agent channels enabling customer service and support scenarios
  • 客服频道: 添加客服频道支持,支持客户服务场景
  • Visitor Channel: Implemented visitor channel functionality for anonymous user interactions
  • 访客频道: 实现访客频道功能,支持匿名用户交互
  • Agent Support: Comprehensive agent system with connection management and event handling
  • 客服系统: 完整的客服系统,支持连接管理和事件处理

🆕 New Features

API & Documentation

  • OpenAPI Documentation: Added comprehensive OpenAPI 3.0 specification and interactive documentation
  • OpenAPI文档: 添加完整的OpenAPI 3.0规范和交互式文档
  • Event API: New event-based API endpoints for real-time message handling
  • 事件API: 新的基于事件的API端点,用于实时消息处理
  • Message API Enhancements: Improved message API with better event handling and distribution
  • 消息API增强: 改进消息API,提升事件处理和分发能力

Permission System

  • Permission Service: New centralized permission service for unified access control
  • 权限服务: 新的集中式权限服务,统一访问控制
  • Cross-Node Permission Checks: Support for distributed permission validation across cluster nodes
  • 跨节点权限检查: 支持集群节点间的分布式权限验证

Caching Improvements

  • Conversation Cache: Added LRU caching for conversations to improve query performance
  • 会话缓存: 为会话添加LRU缓存,提升查询性能
  • Stream Cache: Implemented comprehensive caching system for stream messages
  • 流式缓存: 实现流式消息的完整缓存系统
  • Cache Service: New cache service layer for better data access patterns
  • 缓存服务: 新的缓存服务层,优化数据访问模式

Channel Management

  • SendBan Setting: Added SendBan configuration for channel-level message restrictions
  • SendBan设置: 添加频道级别的SendBan配置,限制消息发送
  • AllowStranger Setting: Implemented AllowStranger setting to control stranger message permissions
  • AllowStranger设置: 实现AllowStranger设置,控制陌生人消息权限

🐛 Bug Fixes

Distributed System Fixes

  • Slot Log Conflict: Fixed distributed slot log conflict that prevented message delivery
  • 槽位日志冲突: 修复分布式槽位日志冲突导致消息发送失败的问题
  • Raft Not Found: Resolved cluster raft not found error when replica count is less than node count
  • Raft未找到: 解决副本数小于节点数时集群raft未找到的错误
  • Chunk ID Generation: Removed problematic chunk ID generator to prevent conflicts
  • 块ID生成: 移除有问题的块ID生成器,防止冲突

Channel & Permission Fixes

  • SendBan/AllowStranger: Fixed SendBan and AllowStranger settings not taking effect
  • SendBan/AllowStranger: 修复SendBan和AllowStranger设置不生效的问题
  • Visitor Messages: Fixed issue where visitors could not receive messages
  • 访客消息: 修复访客无法接收消息的问题

🔧 Technical Improvements

Protocol Enhancements

  • JSON-RPC Protocol: Updated JSON-RPC protocol with event-based notifications
  • JSON-RPC协议: 更新JSON-RPC协议,支持基于事件的通知
  • Event Schema: New event schema with header, id, type, timestamp, and data fields
  • 事件模式: 新的事件模式,包含header、id、type、timestamp和data字段

Code Quality & Architecture

  • Service Layer Refactoring: Introduced service layer for better separation of concerns
  • 服务层重构: 引入服务层,更好地分离关注点
  • Permission Service Extraction: Extracted permission logic into reusable service
  • 权限服务提取: 将权限逻辑提取到可复用的服务中
  • API Reorganization: Moved channel message sync APIs to dedicated message endpoints
  • API重组: 将频道消息同步API移至专用消息端点

Cluster Improvements

  • RPC Client Enhancements: Added new RPC methods for cross-node communication
  • RPC客户端增强: 添加新的RPC方法用于跨节点通信
  • Slot Management: Improved slot replica management and configuration
  • 槽位管理: 改进槽位副本管理和配置
  • Raft Timing Optimization: Enhanced raft tick timing and keepalive mechanisms
  • Raft时序优化: 增强raft tick时序和保活机制

Database & Storage

  • Stream V2 Storage: New storage layer for stream v2 messages
  • Stream V2存储: 新的Stream V2消息存储层
  • Conversation Storage: Enhanced conversation storage with caching support
  • 会话存储: 增强会话存储,支持缓存
  • Key Management: Improved database key management for stream messages
  • 键管理: 改进流式消息的数据库键管理

📚 Documentation

New Documentation

  • OpenAPI Specification: Complete OpenAPI 3.0 specification with 4000+ lines
  • OpenAPI规范: 完整的OpenAPI 3.0规范,超过4000行
  • API Documentation: Interactive API documentation with examples
  • API文档: 带示例的交互式API文档
  • Release Notes: Added detailed release notes for v2.2.0-20250426
  • 发布说明: 添加v2.2.0-20250426的详细发布说明
  • Cache Documentation: Comprehensive documentation for caching system
  • 缓存文档: 缓存系统的完整文档

Configuration Updates

  • Example Configs: Updated example configuration files with new options
  • 示例配置: 更新示例配置文件,添加新选项
  • Config Documentation: Enhanced configuration documentation in wk.yaml
  • 配置文档: 增强wk.yaml中的配置文档

🎨 UI/UX Improvements

Chat Demo

  • Event Message Display: Updated chat demo to support event message display
  • 事件消息显示: 更新聊天演示以支持事件消息显示
  • Message Conversion: Improved message conversion and rendering
  • 消息转换: 改进消息转换和渲染
  • Dependency Updates: Updated chat demo dependencies for better compatibility
  • 依赖更新: 更新聊天演示依赖以提高兼容性

Web Interface

  • Cluster Slot UI: Enhanced cluster slot management interface
  • 集群槽位界面: 增强集群槽位管理界面
  • API Integration: Improved web interface API integration
  • API集成: 改进Web界面API集成

🔄 Breaking Changes

API Changes

  • Channel Message Sync Removed: Removed /channel/messagesync and /channel/max_message_seq endpoints (moved to message API)
  • 频道消息同步移除: 移除/channel/messagesync/channel/max_message_seq端点(移至消息API)
  • Event Protocol: Changed from chunk-based to event-based notification protocol
  • 事件协议: 从基于块的通知协议改为基于事件的通知协议

Internal Changes

  • Chunk ID Generator Removed: Removed internal chunk ID generation mechanism
  • 块ID生成器移除: 移除内部块ID生成机制
  • Service Layer Introduction: New service layer may affect internal integrations
  • 服务层引入: 新的服务层可能影响内部集成

🛠️ Development & Testing

Testing Improvements

  • Event Tests: Added comprehensive test suite for event-based messaging
  • 事件测试: 添加基于事件的消息传递的完整测试套件
  • Stream Tests: Enhanced stream caching and storage tests
  • 流式测试: 增强流式缓存和存储测试
  • Cache Tests: Added example tests for caching functionality
  • 缓存测试: 添加缓存功能的示例测试

Build & Deployment

  • Makefile Updates: Updated build and deployment scripts
  • Makefile更新: 更新构建和部署脚本
  • Docker Tags: Updated Docker image tags for new version
  • Docker标签: 更新新版本的Docker镜像标签

📊 Project Updates

Repository Management

  • Issue Templates: Added bug report template for better issue tracking
  • 问题模板: 添加错误报告模板以更好地跟踪问题
  • README Updates: Updated README files with 10-year project milestone
  • README更新: 更新README文件,标注10年项目里程碑
  • Changelog: Added comprehensive changelog tracking
  • 变更日志: 添加完整的变更日志跟踪

🔗 Dependencies

Go Module Updates

  • WuKongIMGoProto: Updated to latest version for event support
  • WuKongIMGoProto: 更新到最新版本以支持事件
  • Chat Demo Dependencies: Updated marked library and other frontend dependencies
  • 聊天演示依赖: 更新marked库和其他前端依赖

v2.2.0-20250426

24 Jun 12:09

Choose a tag to compare

WuKongIM Changelog

[v2.2.0-20250426] - 2025-06-24

🚀 Major Features

Performance Optimization

  • Distributed Network Transmission Performance Optimization: Significantly improved cluster communication efficiency with adaptive send queues and batch message processing
  • 分布式网络传输性能优化: 通过自适应发送队列和批量消息处理显著提升集群通信效率

Database Caching System

  • Comprehensive Database Caching: Added LRU caching for channels, conversations, devices, and permissions to dramatically improve query performance
  • 全面的数据库缓存: 为频道、会话、设备和权限添加LRU缓存,显著提升查询性能

Advanced Send Queue

  • Adaptive Send Queue: Intelligent queue management with dynamic capacity scaling, priority handling, and timer optimization
  • 自适应发送队列: 智能队列管理,支持动态容量扩展、优先级处理和定时器优化

Batch Message Processing

  • Batch Message Protocol: New protocol for efficient batch message transmission reducing network overhead
  • 批量消息协议: 新的批量消息传输协议,减少网络开销

🆕 New Features

Channel Management

  • Added SendBan and AllowStranger settings for channel-level message restrictions
  • 添加频道级别的SendBan和AllowStranger设置

API Enhancements

  • Conversation Sync API now supports exclude_channel_types parameter
  • 会话同步API支持exclude_channel_types参数

Plugin System

  • Enhanced plugin support with reasonCode and connection field in send packets
  • 增强插件支持,添加reasonCode和连接字段

Web Interface

  • Enhanced cluster management UI for viewing slot replicas and channel raft configurations
  • 增强集群管理界面,支持查看槽副本和频道raft配置

🐛 Bug Fixes

Concurrency Issues

  • Fixed concurrent map writes and race conditions
  • 修复并发映射写入和竞态条件
  • Resolved duplicate ID generation during concurrent updates
  • 解决并发更新时的重复ID生成问题

Raft Consensus

  • Fixed multiple leaders issue in raft nodes
  • 修复raft节点多领导者问题
  • Optimized raft timing (150ms tick) and added keepalive mechanism
  • 优化raft时序(150ms tick)并添加保活机制

Message Processing

  • Fixed blacklist users receiving offline messages
  • 修复黑名单用户收到离线消息问题
  • Prevented circular synchronization in offline CMD processing
  • 防止离线CMD处理中的循环同步

Webhook & Notifications

  • Fixed webhook online status reporting
  • 修复webhook在线状态报告
  • Migrated notification queue to disk-based storage
  • 将通知队列迁移到磁盘存储

🔧 Technical Improvements

Protocol Enhancements

  • Updated JSON-RPC protocol (recvackRequest → recvackNotification)
  • 更新JSON-RPC协议

Performance Monitoring

  • Added comprehensive performance monitoring and analysis tools
  • 添加全面的性能监控和分析工具

Memory Management

  • Implemented timer pooling to reduce memory allocation overhead
  • 实现定时器池以减少内存分配开销

Testing & Quality

  • Added extensive test suite for adaptive queues and batch messages
  • 为自适应队列和批量消息添加广泛测试

📈 Performance Metrics

Batch Message Performance

  • Encoding: 1000 messages in ~17μs (58,000+ msg/sec)
  • Decoding: 1000 messages in ~18μs (55,000+ msg/sec)
  • Memory: Linear scaling with message count, no memory leaks

Cache Performance

  • Channel Cache: Sub-millisecond lookup times
  • Conversation Cache: Significant reduction in database queries
  • Device Cache: Improved connection management efficiency

🔄 Breaking Changes

  • Protocol version updated to support batch message protocol
  • Some internal APIs modified for performance improvements
  • New cache-related configuration options available

📚 Documentation

  • Added comprehensive developer documentation
  • Updated API documentation with new features
  • Added performance optimization guidelines

[v2.1.5-20250424] - Previous Release

For previous release notes, see the git history.


Full Changelog: v2.1.5-20250424...v2.2.0-20250426

v2.2.0-20250426

05 Aug 08:30

Choose a tag to compare

WuKongIM Changelog

[v2.2.0-20250426] - 2025-06-24

🚀 Major Features

Performance Optimization

  • Distributed Network Transmission Performance Optimization: Significantly improved cluster communication efficiency with adaptive send queues and batch message processing
  • 分布式网络传输性能优化: 通过自适应发送队列和批量消息处理显著提升集群通信效率

Database Caching System

  • Comprehensive Database Caching: Added LRU caching for channels, conversations, devices, and permissions to dramatically improve query performance
  • 全面的数据库缓存: 为频道、会话、设备和权限添加LRU缓存,显著提升查询性能

Advanced Send Queue

  • Adaptive Send Queue: Intelligent queue management with dynamic capacity scaling, priority handling, and timer optimization
  • 自适应发送队列: 智能队列管理,支持动态容量扩展、优先级处理和定时器优化

Batch Message Processing

  • Batch Message Protocol: New protocol for efficient batch message transmission reducing network overhead
  • 批量消息协议: 新的批量消息传输协议,减少网络开销

🆕 New Features

Channel Management

  • Added SendBan and AllowStranger settings for channel-level message restrictions
  • 添加频道级别的SendBan和AllowStranger设置

API Enhancements

  • Conversation Sync API now supports exclude_channel_types parameter
  • 会话同步API支持exclude_channel_types参数

Plugin System

  • Enhanced plugin support with reasonCode and connection field in send packets
  • 增强插件支持,添加reasonCode和连接字段

Web Interface

  • Enhanced cluster management UI for viewing slot replicas and channel raft configurations
  • 增强集群管理界面,支持查看槽副本和频道raft配置

🐛 Bug Fixes

Concurrency Issues

  • Fixed concurrent map writes and race conditions
  • 修复并发映射写入和竞态条件
  • Resolved duplicate ID generation during concurrent updates
  • 解决并发更新时的重复ID生成问题

Raft Consensus

  • Fixed multiple leaders issue in raft nodes
  • 修复raft节点多领导者问题
  • Optimized raft timing (150ms tick) and added keepalive mechanism
  • 优化raft时序(150ms tick)并添加保活机制

Message Processing

  • Fixed blacklist users receiving offline messages
  • 修复黑名单用户收到离线消息问题
  • Prevented circular synchronization in offline CMD processing
  • 防止离线CMD处理中的循环同步

Webhook & Notifications

  • Fixed webhook online status reporting
  • 修复webhook在线状态报告
  • Migrated notification queue to disk-based storage
  • 将通知队列迁移到磁盘存储

🔧 Technical Improvements

Protocol Enhancements

  • Updated JSON-RPC protocol (recvackRequest → recvackNotification)
  • 更新JSON-RPC协议

Performance Monitoring

  • Added comprehensive performance monitoring and analysis tools
  • 添加全面的性能监控和分析工具

Memory Management

  • Implemented timer pooling to reduce memory allocation overhead
  • 实现定时器池以减少内存分配开销

Testing & Quality

  • Added extensive test suite for adaptive queues and batch messages
  • 为自适应队列和批量消息添加广泛测试

📈 Performance Metrics

Batch Message Performance

  • Encoding: 1000 messages in ~17μs (58,000+ msg/sec)
  • Decoding: 1000 messages in ~18μs (55,000+ msg/sec)
  • Memory: Linear scaling with message count, no memory leaks

Cache Performance

  • Channel Cache: Sub-millisecond lookup times
  • Conversation Cache: Significant reduction in database queries
  • Device Cache: Improved connection management efficiency

🔄 Breaking Changes

  • Protocol version updated to support batch message protocol
  • Some internal APIs modified for performance improvements
  • New cache-related configuration options available

📚 Documentation

  • Added comprehensive developer documentation
  • Updated API documentation with new features
  • Added performance optimization guidelines

[v2.1.5-20250424] - Previous Release

For previous release notes, see the git history.


Full Changelog: v2.1.5-20250424...v2.2.0-20250426

v2.1.5-20250424

26 Apr 02:59

Choose a tag to compare

fix: 修复一个比较严重的BUG #358

v2.1.4-20250319

24 Apr 04:54

Choose a tag to compare

v2.1.4-20250319

更新内容

  • fix: 当订阅者移除后最近会话数据也需要移除 #354
  • fix: 解决获取在线状态接口有竞锁的问题
  • fix: 增加黑名单或移除订阅者的时候需要移除最近会话的缓存
  • feat: 添加 DisableJSONRPC 配置,可以关闭JSON-RPC协议 #353
  • fix: 修复webhook离线消息通知里to_uids数据重复问题
  • fix: 修复红点显示错误问题
  • fix: 修复客户端有时候会出现未知频道(CMD频道)问题
  • feat: 支持 json-rpc协议,让通讯更加简单 #350
  • fix: 优化最近会话数据管理逻辑
  • fix:修复直播频道产生了最近会话的问题
  • fix: 解决客服频道没有最近会话的问题
  • feat: 添加更新会话已删除消息序号位置的功能,优化会话管理逻辑

完整的更新日志: https://gitee.com/WuKongDev/WuKongIM/compare/v2.1.3-20250210...v2.1.4-20250319

v2.1.3-20250210

20 Mar 02:32

Choose a tag to compare

  • feat: 支持插件功能,通过插件可以完成AI,敏感词过滤,消息分析等等功能
  • feat: 增加流式消息,类似chatgpt一样输出消息内容
  • feat: 新增直播频道
  • fix:修复有时候离线webhook收不到问题
  • fix: 修复离线cmd多次收到问题
  • fix: 修复同步最近会话接口 version版本获取不到正确数据
  • fix: 修复clean定时器没有过停止的问题
  • fix: 修复关闭最近会话功能发消息程序崩溃的问题 #267
  • fix: update chatdemo user avatar url

Full Changelog: v2.1.2-20250120...v2.1.3-20250210

v2.1.2-20250120

10 Feb 09:32

Choose a tag to compare

  • 🎈 perf: 移除不必要的nil判断
  • ✨ feat: wkhttp适配wklog统一日志输出
  • 🐞 fix: 修复离线webhook消息发送者也在其中的问题 #265
  • fix: #289
  • fix: 修复频道有时候集群失败的问题

v2.1.1-20241230

20 Jan 01:07

Choose a tag to compare

更新内容

  • perf: 大幅提升消息收发延迟和存储性能
  • fix: 修复新的订阅者有时候收不到消息的问题
  • fix: 修复在线用户统计不准确问题
  • fix: 移除订阅者的时候有崩溃的概率
  • feat: 优化管理后台,连接新增“断开”,“踢掉”功能
  • fix: 修复离线cmd有时候收不到问题
  • fix: 修复代理连接关闭了,领导连接还没关闭的问题
  • perf: 优化channelClusterConfig存储的性能
  • feat: 后台连接页面显示当前节点的所有连接包括逻辑连接
  • feat: web后台适配黑暗模式
  • feat: 日志增加控制台的输出配置
  • perf: 优化后台启动时创建server的时机
  • fix: 修复webhook消息队列里的消息负载过大导致webhook收不到推送问题
  • fix:解决发送到指定人,指定人列表uid不在toUids中
  • refactor: 移除webhook多余的创建操作

v2.1.0-20241224

30 Dec 04:45

Choose a tag to compare

upgrade to v2.1.0-20241224