Merge branch 'master' into develop

This commit is contained in:
kercylan98 2023-09-21 15:46:51 +08:00
commit fc6c960a59
1 changed files with 66 additions and 0 deletions

View File

@ -1,5 +1,71 @@
# Changelog
## [0.2.1](https://github.com/kercylan98/minotaur/compare/v0.2.0...v0.2.1) (2023-09-19)
### Other | 其他更改
* gateway 优化代码逻辑,适配 client.Client 变更 ([0cc8fd8](https://github.com/kercylan98/minotaur/commit/0cc8fd818614a8836f35255c185975872bce797f))
### Features | 新特性
* buffer.Unbounded 增加新的构造函数,支持省略 generateNil 函数,新增 IsClosed 函数检查无界缓冲区是否已经关闭 ([e9bc9fb](https://github.com/kercylan98/minotaur/commit/e9bc9fb48175dc6544a570fd82d71af66ca8f801))
* concurrent.Pool 新增静默模式可选项 WithPoolSilent在该模式下当缓冲区大小不足时将不再输出警告日志 ([3ad1330](https://github.com/kercylan98/minotaur/commit/3ad1330cd937635ce56f1ca70365836f19c97fc8))
* random 包通过权重和概率随机产生一个成员支持返回产生成员的索引或 Key ([782a1ad](https://github.com/kercylan98/minotaur/commit/782a1adb37da396028987c3ff35917c0ddf8b4e2))
* 新增 writeloop 包,内置了一个写循环的实现 ([dd1acfd](https://github.com/kercylan98/minotaur/commit/dd1acfd017e9f0eccbc23663fa7f871a6b2b7de4))
### Bug Fixes | 修复
* super 包优化 GetError 函数的空指针问题 ([ab3926e](https://github.com/kercylan98/minotaur/commit/ab3926e307bed9d665010f6613409ed093e256fe))
### Docs | 文档优化
* 修复 server 在 WebSocket 模式下超时时间无效的问题 ([1bc32e2](https://github.com/kercylan98/minotaur/commit/1bc32e2026da59283b9302ec753699919a994cce))
### Styling | 可读性优化
* server 包为服务器启动添加 IP 信息,死锁检测的日志内容优化 ([42465a8](https://github.com/kercylan98/minotaur/commit/42465a8f42cb3a3515263318ac41403473476cb4))
### Code Refactoring | 重构
* client 包采用无界缓冲区替代通过 chan 实现的写通道,移除消息堆积功能,优化代码逻辑 ([2d9ffad](https://github.com/kercylan98/minotaur/commit/2d9ffad2ab0277c0a83842c3d27ca31b820a51de))
* server 移除 WithConnMessageChannelSize 可选项 ([31c0e1b](https://github.com/kercylan98/minotaur/commit/31c0e1b7356e062ee741cd4aeacca8f96b62953d))
### Performance Improvements | 性能优化
* server.Conn 写循环更改为采用无界缓冲区的写入,优化整体逻辑 ([551a3e5](https://github.com/kercylan98/minotaur/commit/551a3e5c51c048eac13bf31c0fc1665d2b7b8431))
## [0.2.0](https://github.com/kercylan98/minotaur/compare/v0.1.7...v0.2.0) (2023-09-18)
### Features | 新特性
* buffer 包新增 Unbounded 实现 ([d56c1df](https://github.com/kercylan98/minotaur/commit/d56c1df6e1d9f6f1f2f01d8f461858ec9c9139c2))
* random 包新增 ProbabilitySlice 函数,用于基于概率产生一个结果,当概率总和小于 1 会发生未命中的情况,概率总和大于 1 将等比缩放至 1 ([7c9bc46](https://github.com/kercylan98/minotaur/commit/7c9bc46a3506d5722da7b0062b9b493f709fbb97))
* 新增 buffer 包,内置了一个环形缓冲区的实现 ([12d1aba](https://github.com/kercylan98/minotaur/commit/12d1abab9aa4f09bf9c0f7b5628c50155f2aaf4e))
### Bug Fixes | 修复
* server 修复慢消息导致堆栈溢出的问题 ([e95e1ba](https://github.com/kercylan98/minotaur/commit/e95e1ba3997d57dc5eb7f8bd99e1d6adb7da19c2))
* 修复 gnet 作为服务器核心关闭时导致的空指针问题 ([2712f3b](https://github.com/kercylan98/minotaur/commit/2712f3b98e2d871e5bf2101e338c50b343fe05e0))
### Docs | 文档优化
* 优化文档内容兼容 WithShunt ([00eaa36](https://github.com/kercylan98/minotaur/commit/00eaa362262f158fd71bc72c8c0522a5b6bb0d0e))
### Code Refactoring | 重构
* server 包重构消息通道,采用无界缓冲区替代原本的 chan解决消息通道的缓冲区达到上限时造成永久阻塞的问题移除 WithMessageChannelSize 可选项,修改 WithShunt 可选项不再需要 channelGenerator 参数 ([810a9fd](https://github.com/kercylan98/minotaur/commit/810a9fdb73f4460f181ff7a60937615a6c926db8))
## [0.1.7](https://github.com/kercylan98/minotaur/compare/v0.1.6...v0.1.7) (2023-09-12)