Skip to content

Bump mirai-core-jvm from 2.9.0-M1 to 2.12.0-RC#66

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/maven/net.mamoe-mirai-core-jvm-2.12.0-RC
Closed

Bump mirai-core-jvm from 2.9.0-M1 to 2.12.0-RC#66
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/maven/net.mamoe-mirai-core-jvm-2.12.0-RC

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 20, 2022

Bumps mirai-core-jvm from 2.9.0-M1 to 2.12.0-RC.

Release notes

Sourced from mirai-core-jvm's releases.

2.12.0-RC

2.12 带来以下主要更新:

  • EventChannel 到协程 Flow 的对接;
  • 消息链性能优化;
  • 针对开发易用性的优化;
  • 对调试插件的更好支持;
  • 大量文档更新;
  • 以及一些问题修复。

mirai-core

不兼容变更

  • 弃用 EmptyMessageChain,以 emptyMessageChain() 函数替换 (#1997)

    因为内部结构有变更,见下文。Java 可以 MessageUtils.emptyMessageChain() 替换。

  • MarketFace.contentToString 现在在原本会返回空字符串的情况下会返回 "[商城表情]" (#2030 by @​cssxsh)

    原本会返回空字符串是因为服务器提供的表情名称可能为空。

  • 修复 FileMessage 的序列化名称 (#2041 by @​cssxsh)

    以前错误地使用了 Image,现在改为 FileMessage。以前序列化的 FileMessage 可能会无法反序列化。

  • Image.equals 现在会比较全部属性

    而不是只比较 imageId。因为现在图片没有一些详细属性时可能无法发送。

  • 弃用 EventDisabled 属性 (#1911)

    它可以关闭事件功能,但这并不是明智的做法。

  • 弃用 GroupEntranceAnnouncementChangeEvent (#1873)

    这个事件在 2.7 增加 Announcements 时就已经无效了。

新特性

  • 优化 MessageChain 实现的性能,现在在大量调用 Message.plus 构造消息链也能获得与 MessageChainBuilder 相当的性能。(#1997)

    只修改了内部实现,API 及行为都没有变化。

  • 优化处理合并转发消息的效率
  • 新增 EventChannel.asFlow 获得事件通道的 Flow<...> (#1911)

    协程 Flow 很适合承载事件广播功能,拥有更高的通用性和扩展性。(mirai 未使用是因为在 mirai EventChannel 设计之时 Flow 还未稳定)

  • 新增 Java 友好的 EventChannel.exceptionHandler() (#1953)
  • 新增 BotConfiguration.disableAccountSecretes 关闭 account.secrets

    account.secrets 保存账号的会话信息。 它可加速登录过程,也可能可以减少出现验证码的次数。如果遇到一段时间后无法接收消息通知等同步问题时可尝试禁用。

优化和修复

消息

... (truncated)

Commits
  • 71876a5 Set version to 2.12.0-RC
  • f527aa9 Update docs for commands
  • 90bc481 Allow overriding CommandArgumentContext in JCompositeCommand and JSimpleCommand
  • eeb3613 Add CommandContext and support retrieving original message chain from command...
  • 586c61b Fix navbar of new page ConsoleTerminal
  • 3e8a8dd Update UserManual for command arguments, close #1952
  • 3716736 Update hints for builtin ValueArgumentParsers
  • 90fe69b Update docs
  • 2dcff0c Reduce unnecessary logs from packetLogger
  • a4e7fda Raise deprecation level for 2.12
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mirai-core-jvm](https://github.com/mamoe/mirai) from 2.9.0-M1 to 2.12.0-RC.
- [Release notes](https://github.com/mamoe/mirai/releases)
- [Commits](mamoe/mirai@v2.9.0-M1...v2.12.0-RC)

---
updated-dependencies:
- dependency-name: net.mamoe:mirai-core-jvm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 20, 2022
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 4, 2022

Superseded by #67.

@dependabot dependabot bot closed this Jul 4, 2022
@dependabot dependabot bot deleted the dependabot/maven/net.mamoe-mirai-core-jvm-2.12.0-RC branch July 4, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants