Skip to content

Commit d23b823

Browse files
committed
chore: bump version
1 parent e5b30bc commit d23b823

File tree

7 files changed

+286
-8
lines changed

7 files changed

+286
-8
lines changed

.changeset/pre.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"mode": "pre",
3+
"tag": "next",
4+
"initialVersions": {
5+
"documentation": "1.0.0",
6+
"eslint-config-custom": "0.0.0",
7+
"react-sketch-canvas": "6.2.0",
8+
"tests": "1.0.0",
9+
"tsconfig": "0.0.0"
10+
},
11+
"changesets": [
12+
"serious-bobcats-burn"
13+
]
14+
}

.changeset/serious-bobcats-burn.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"react-sketch-canvas": major
3+
---
4+
5+
- Add option to use Windows surface pen button as eraser
6+
- Memoize functions to reduce re-rendering

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"lint": "turbo run lint",
1313
"test": "turbo run build lint test",
1414
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
15-
"ci:build": "cp README.md packages/react-sketch-canvas/ && turbo build lint test ci:build"
15+
"ci:build": "cp README.md packages/react-sketch-canvas/ && pnpm --filter react-sketch-canvas ci:build",
16+
"publish-packages": "pnpm test && pnpm ci:build && changeset version && changeset publish"
1617
},
1718
"devDependencies": {
1819
"eslint-config-custom": "workspace:*",
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
# Changelog
2+
3+
## 7.0.0-next.0
4+
5+
### Major Changes
6+
7+
- - Add option to use Windows surface pen button as eraser
8+
- Memoize functions to reduce re-rendering
9+
10+
# [6.1.0]
11+
12+
### Added
13+
14+
- Added optional id props to uniquely identify a sketch canvas
15+
- Upgraded dependencies
16+
17+
### Changed
18+
19+
- Updated tests to use the id props
20+
21+
### Fixed
22+
23+
- Fix multiple ReactSketchCanvas in one page causes issues due to id="background" #52
24+
- Fix ReactSketchCanvas doesn't work on safari. #53
25+
26+
## [6.0.3]
27+
28+
### Fixed
29+
30+
- Fix Package cannot be installed via npm #51
31+
- update contributing.md
32+
- update github actions
33+
34+
## [6.0.2]
35+
36+
### Added
37+
38+
- Added cypress tests for all props and events
39+
- Added `onStroke` prop to get last stroke on pointer up
40+
- Adds a point on click (without moving) #45
41+
42+
### Changed
43+
44+
- Upgraded all dependencies
45+
- Moved to DTS (tsdx fork) instead of nx
46+
- Switched codebase to hook based implementation (support react >= 16.8)
47+
- Removed immer dependency
48+
49+
### Fixed
50+
51+
- Changed React import to \* from React #40
52+
- Export image fails when the background is not an image [beta] #46
53+
- Fix partial transparent erase (eraser stroke color changed to black for masking, add maskUnits) #44
54+
55+
### Breaking changes
56+
57+
- Renamed `onUpdate` to `onChange`
58+
59+
## [6.0.1-beta]
60+
61+
### Added
62+
63+
- Upgraded all dependencies
64+
- Updated directory structure
65+
- Added background image rendering directly in SVG
66+
- Added option to export background image while exporting the canvas as image or SVG
67+
- Added background image aspect ratio control
68+
- Updated erase option to use mask instead of canvas color
69+
- Add github action for deployment of storybook and package
70+
71+
### Breaking changes
72+
73+
- Removed background option to set background image using CSS-in-JS (instead check feature-filled backgroundImage prop)
74+
75+
## [5.3.5]
76+
77+
## Changed
78+
79+
- Changed import react as `import * as React from 'react'`
80+
81+
## [5.3.4]
82+
83+
### Added
84+
85+
- Switched to Nx
86+
- Updated documentation
87+
88+
### Changed
89+
90+
- Removed pepjs. Can be polyfilled by the web app directly instead
91+
92+
## [5.3.3]
93+
94+
### Fixed
95+
96+
- add support any version above react 16.4
97+
98+
## [5.3.2]
99+
100+
### Fixed
101+
102+
- Bump dependency versions
103+
104+
## [5.3.1]
105+
106+
### Fixed
107+
108+
- Set default value of `allowOnlyPointerType` as `'all'` again
109+
110+
## [5.3.0]
111+
112+
### Added
113+
114+
- Reset canvas option to reset internal state and clean undo/redo stack
115+
116+
### Fixed
117+
118+
- Fix exportImage function to export png in Firefox and Safari
119+
120+
## [5.2.0]
121+
122+
### Added
123+
124+
- Add `withTimestamp` prop and `getSketchingTime` function to measure the sketching time of the user
125+
126+
## [5.1.2] & [5.1.1] (Both are same - Sorry)
127+
128+
### Added
129+
130+
- Add index.d.ts to npm registry
131+
- Add Github as registry
132+
- Update example
133+
134+
## [5.1.0]
135+
136+
### Added
137+
138+
- Added defaultProps to onUpdate in ReactSketchCanvas
139+
- Added touch-action="none" to allow pepjs polyfill pointer events
140+
- Update README.md
141+
142+
### Fixed
143+
144+
- Removed the annoying console.log from Canvas
145+
146+
## [5.0.1]
147+
148+
### Added
149+
150+
Added README :)
151+
152+
## [5.0.0]
153+
154+
### Added
155+
156+
- Rewrote codebase in typescript
157+
- Added pepjs to support more browsers
158+
- Added onUpdate feature to get current paths in `CanvasPath` type
159+
160+
### Fixed
161+
162+
- Fixed sketch offset issue when the canvas is scrolled
163+
164+
### Changed
165+
166+
- Updated undo/redo/reset strategy
167+
- Updated demo in storybook
168+
169+
## [4.0.0]
170+
171+
### Added
172+
173+
- Renamed SvgSketchCanvas to ReactSketchCanvas to keep naming convention
174+
- Added className property to set class names for CSS selectors
175+
176+
### Deprecated
177+
178+
- Removed SvgSketchCanvas
179+
180+
## [3.0.1]
181+
182+
### Changed
183+
184+
- Moved immutable dependency from Canvas file
185+
186+
## [3.0.0]
187+
188+
### Changed
189+
190+
Removed onUpdate feature and made the system modular
191+
192+
### Added
193+
194+
- Made Canvas as a separate module. Now event handlers can be hooked with Canvas
195+
class to update paths from server. (For Collaboration use case)
196+
197+
### Deprecated
198+
199+
- Removed onUpdate feature and instead made Canvas module
200+
201+
## [2.3.0]
202+
203+
### Added
204+
205+
- Added onUpdate property to get the current sketch paths after every update
206+
207+
## [2.2.0]
208+
209+
allowOnlyPointerType
210+
211+
### Added
212+
213+
- Added "allowOnlyPointerType" use-case. Now single pointer type can be targetted
214+
215+
## [2.1.0]
216+
217+
### Added
218+
219+
- Switched to pointer events
220+
221+
## [2.0.1]
222+
223+
### Added
224+
225+
- Add SVG background using CSS
226+
227+
## [2.0.0]
228+
229+
### Added
230+
231+
- Export and load paths
232+
- Erase mode and eraser width
233+
234+
### Changed
235+
236+
- Rename exportAsImage() to exportImage() for naming consistency
237+
238+
### Deprecated
239+
240+
- Rename exportAsImage()
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Vinoth Pandian
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/react-sketch-canvas/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-sketch-canvas",
3-
"version": "6.2.0",
3+
"version": "7.0.0-next.0",
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",
@@ -29,11 +29,11 @@
2929
"size-limit": [
3030
{
3131
"path": "dist/index.js",
32-
"limit": "10 KB"
32+
"limit": "15 KB"
3333
},
3434
{
3535
"path": "dist/index.mjs",
36-
"limit": "10 KB"
36+
"limit": "15 KB"
3737
}
3838
],
3939
"scripts": {

turbo.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
"coverage/**",
2424
".cypress/test-output.xml"
2525
]
26-
},
27-
"ci:build": {
28-
"dependsOn": ["^test", "^ci:build"],
29-
"outputs": ["dist/**"]
3026
}
3127
}
3228
}

0 commit comments

Comments
 (0)