Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: 撤销重做中间件 #80

Merged
merged 3 commits into from
Nov 24, 2023
Merged

✨ feat: 撤销重做中间件 #80

merged 3 commits into from
Nov 24, 2023

Conversation

arvinxx
Copy link
Collaborator

@arvinxx arvinxx commented Sep 5, 2023

@arvinxx arvinxx changed the title ✨ feat: 撤销重做中间件发布 ✨ feat: 撤销重做中间件 Alpha 发布 Sep 5, 2023
@github-actions
Copy link

github-actions bot commented Sep 5, 2023

🎊 PR Preview b11cb36 has been successfully built and deployed to https://ant-design-pro-editor-preview-pr-80.surge.sh

🕐 Build time: 69.717s

🤖 By surge-preview

@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2023

Codecov Report

Attention: 51 lines in your changes are missing coverage. Please review.

Comparison is base (d4e71e2) 87.69% compared to head (b11cb36) 87.81%.
Report is 1 commits behind head on main.

❗ Current head b11cb36 differs from pull request most recent head 4636b92. Consider uploading reports for the commit 4636b92 to get more accurate results

Files Patch % Lines
src/ProEditor/store/slices/general.ts 72.97% 20 Missing ⚠️
src/ProEditor/ProEditorProvider/StoreUpdater.tsx 88.88% 11 Missing ⚠️
src/ProEditor/store/slices/config.ts 93.83% 9 Missing ⚠️
src/ProEditor/utils/yjs.ts 90.24% 8 Missing ⚠️
src/ProEditor/middleware/pro-editor/index.ts 96.29% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #80      +/-   ##
==========================================
+ Coverage   87.69%   87.81%   +0.12%     
==========================================
  Files         355      366      +11     
  Lines       22928    23567     +639     
  Branches     1028     1081      +53     
==========================================
+ Hits        20106    20695     +589     
- Misses       2822     2872      +50     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arvinxx arvinxx changed the title ✨ feat: 撤销重做中间件 Alpha 发布 ✨ feat: 撤销重做中间件 Nov 24, 2023
* 🚧 wip: undo ing

* ✨ feat: 初步实现 undo redo 方法

* ✨ feat: 支持多个 Store 共存的能力

* ✨ feat: 支持历史记录的操作明细

* ♻️ refactor: refactor the ProEditorProvider

* ✅ test: fix test

* 📝 docs: 更新 redo undo 文档

* 🏷️ feat: 兼容 internal type

* ✅ test: update test

* 📸 test: update snapshot

* ✅ test: 补充测试

* 📝 docs: 补充使用文档

* 🚨 chore: fix lint

* 📝 docs: 更新文档

* ⏪ chore: revert ProBuilder 的变更
* 🐛 fix: fix compatible with subscribe api

* ✅ test: upgrade @testing-library/jest-dom
## [Version 0.28.0-alpha.1](v0.27.0...v0.28.0-alpha.1)
<sup>Released on **2023-11-24**</sup>

#### ✨ 新特性

- Undo/redo Middleware.

#### 🐛 修复

- Fix compatible with subscribeWithSelector middleware.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* Undo/redo Middleware, closes [#74](#74) ([44551aa](44551aa))

#### What's fixed

* Fix compatible with subscribeWithSelector middleware, closes [#89](#89) ([b11cb36](b11cb36))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@ONLY-yours ONLY-yours merged commit 25d782e into main Nov 24, 2023
2 checks passed
@ONLY-yours ONLY-yours deleted the alpha branch November 24, 2023 09:28
Copy link

🎉 This PR is included in version 0.28.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants