v3.11.0

Mail-0/Zerov3.11.0Apr 9, 2025by Vanessa219

AI Summary

This version upgrades the Mermaid diagram library and introduces new upload and selection callbacks while refining interaction behaviors like copying and destruction.

Key Highlights

  • Added `options.upload.cancel` callback
  • Upgraded Mermaid to version 11.6.0
  • Improved behavior: `destroy` no longer triggers `after` callback if called immediately
  • Copy button behavior changed to not expand the editor area
  • Added `unSelect` callback

Breaking Changes

  • Initialization behavior change: `destroy` no longer triggers the `after` callback if called immediately after initialization

New Features

  • options.upload.cancel callback
  • unSelect callback

Full Release Notes

* [添加 `options.upload.cancel` 回调](https://github.com/Vanessa219/vditor/issues/1791) `引入特性`
* [修复代码行号对不齐](https://github.com/Vanessa219/vditor/issues/1786) `修复缺陷`
* [mermaid 升级至 11.6.0](https://github.com/Vanessa219/vditor/issues/1140) `开发重构`
* [初始化后立即 `destroy` 不再进行 `after` 的回调](https://github.com/Vanessa219/vditor/issues/1790) `改进功能`
* [点击复制按钮不展开编辑区域](https://github.com/Vanessa219/vditor/issues/1768) `改进功能`
* [添加 `unSelect` 回调](https://github.com/Vanessa219/vditor/pull/1775) `改进功能`