Skip to content

v3.2.0

Compare
Choose a tag to compare
@lumina37 lumina37 released this 14 Feb 15:19
· 592 commits to master since this release
baa0d78

新增特性

  • 所有使用prorobuf序列化请求参数的接口现在都支持 websocket 模式,使用 Client(enable_ws=True) 以启用并优先使用 websocketwebsocket 模式的优势是: get_threadsget_posts 的响应会使用 gzip 压缩;预期稳定性更好

变化特性

  • 重新组织命名空间,这可能引入一些Breaking Changes:请使用 aiotieba.typing 编写类型提示,如 tb.typing.Threadaiotieba.enums 访问枚举变量,如 tb.enums.ReqUInfo.BASICaiotieba.exception 访问异常信息,如 tb.exception.exc_handlersaiotieba.core 以使用核心参数容器,如 tb.core.WsCore 。现在保留在最高级包命名空间中的唯一一个类定义是 Client
  • cookies流程不再兼容 aiohttp<3.8.4 aio-libs/aiohttp#6638