Skip to content

Commit 5e37a7e

Browse files
committed
chore: update version to 7.0.0-next.5 and add changelog entries for undo/redo improvements
1 parent 5d35c80 commit 5e37a7e

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.changeset/pre.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"changesets": [
1212
"cold-nails-wave",
13+
"curly-icons-hear",
1314
"famous-onions-brush",
1415
"serious-bobcats-burn",
1516
"shy-ghosts-poke",

packages/react-sketch-canvas/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 7.0.0-next.5
4+
5+
### Patch Changes
6+
7+
- Fix undo/redo behavior:
8+
- Fix timing issues by moving history update logic into mouse-down/redo/undo/clear functions
9+
- Prevent extra strokes from being recorded during history updates
10+
- Fix bug where canvas couldn't undo to empty state
11+
- Improve loadPath function to properly handle history state
12+
- Add proper history handling when using loadPaths
13+
- Fix reset canvas history logic
14+
- Implement event queue for undo/redo operations
15+
- Fix order of operations in history management
16+
- Add tests for undo behavior after clear and with loadPaths
17+
318
## 7.0.0-next.4
419

520
### Patch Changes

packages/react-sketch-canvas/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-sketch-canvas",
3-
"version": "7.0.0-next.4",
3+
"version": "7.0.0-next.5",
44
"description": "react-sketch-canvas - Freehand vector drawing tool for React using SVG as canvas",
55
"author": "Vinoth Pandian",
66
"homepage": "https://vinoth.info/react-sketch-canvas",

0 commit comments

Comments
 (0)