Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
6be8e93
upgrade packages
vinothpandian Sep 17, 2021
63755c6
#35 fix background erase issue
vinothpandian Sep 18, 2021
5567fb5
6.0.1
vinothpandian Sep 18, 2021
1d62bdd
update changelog
vinothpandian Oct 17, 2021
dea6562
major: move out of tsdx
vinothpandian Oct 18, 2021
d5901d8
add release-it for versioning and publishing
vinothpandian Oct 18, 2021
ebc5971
ignore src folder for release and update registry
vinothpandian Oct 18, 2021
a3cca0c
upgrade dependencies
vinothpandian Oct 18, 2021
2e3fac0
add custom cypress command
vinothpandian Oct 18, 2021
73f611e
update example for testing
vinothpandian Oct 19, 2021
286a71e
fix tests and add test to check props
vinothpandian Oct 19, 2021
bba9d6f
upload coverage to codecov
vinothpandian Oct 20, 2021
ed259d9
add additional props tests
vinothpandian Oct 20, 2021
cdab9a3
add stroke and canvas color tests
vinothpandian Oct 20, 2021
1f5fb1b
test export svg with background
vinothpandian Oct 20, 2021
e182157
refactor test cases
vinothpandian Oct 20, 2021
ba415da
test exportWithBackgroundImage prop
vinothpandian Oct 20, 2021
be7f1f5
refactor tests
vinothpandian Oct 20, 2021
562b87f
test withTimestamp prop
vinothpandian Oct 20, 2021
ac74609
refactor test cases
vinothpandian Oct 20, 2021
b271ed7
add tests on allowOnlyPointerType
vinothpandian Oct 20, 2021
751813e
test onUpdate function call
vinothpandian Oct 20, 2021
5646ac2
fix random event issues in tests
vinothpandian Oct 21, 2021
31f7937
test eraser masking
vinothpandian Oct 21, 2021
f0047b1
test undo, redo, clear and reset canvas
vinothpandian Oct 21, 2021
139bac2
Fix #46 and test export image/svg
vinothpandian Oct 21, 2021
8d8f0fa
test style props
vinothpandian Oct 21, 2021
b595306
remove jest test from ci and coverage
vinothpandian Oct 21, 2021
dc07c1b
test loadPaths event
vinothpandian Oct 21, 2021
7a3a79c
update README
vinothpandian Oct 22, 2021
f8c6e52
add onStroke feature (onFinish drawing #41)
vinothpandian Oct 22, 2021
3c66487
Fix #44 and #45
vinothpandian Oct 22, 2021
035fd75
chore: release v6.0.2-beta.1
vinothpandian Oct 22, 2021
f6844f9
partial: switch to hooks
vinothpandian Oct 24, 2021
b549f79
switch example to craco
vinothpandian Oct 24, 2021
1fa0a3b
fix tests on color change
vinothpandian Oct 24, 2021
50afe91
fix react imports
vinothpandian Oct 24, 2021
25598b3
split hooks: add drawMode hook
vinothpandian Oct 24, 2021
9050d3e
split hooks: add isDrawing hook
vinothpandian Oct 24, 2021
1fd2b7b
split hooks: add resetStack hook
vinothpandian Oct 24, 2021
2bbca09
remove immer dependency and rreduce bundle size
vinothpandian Oct 25, 2021
8d7e426
Fix #44 modify maskUnits in mask
vinothpandian Oct 25, 2021
33eba3f
chore: release v6.0.2-beta.2
vinothpandian Oct 25, 2021
1a13ed2
add codecov
vinothpandian Oct 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .eslintrc.json

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI
on: [push]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['12.x', '14.x']
os: [ubuntu-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install Yarn
run: npm install -g yarn

- name: Install deps and build (with cache)
run: yarn install --frozen-lockfile --silent

- name: Lint
run: yarn lint

- name: Test
run: yarn test

- name: Upload coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: npx nyc report --reporter=text-lcov | npx codecov --disable=gcov --pipe

- name: Build
run: yarn build:prod
37 changes: 0 additions & 37 deletions .github/workflows/node.js.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: size
on: [pull_request]
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v1
- uses: andresz1/size-limit-action@v1
with:
build_script: build:prod
github_token: ${{ secrets.GITHUB_TOKEN }}
50 changes: 12 additions & 38 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,13 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
*.log
.DS_Store
Thumbs.db
node_modules
.cache
dist
# Cypress
cypress/screenshots/
cypress/videos/
.nyc_output/
coverage/
jest-coverage/
cypress-coverage/
reports/
17 changes: 17 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.DS_Store
.cache
.vscode
.dependabot
node_modules
example/
cypress/
.env
tsconfig.json
src/
.github
.nyc_output/
coverage/
jest-coverage/
cypress-coverage/
reports/
cypress.json
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry = "https://registry.npmjs.com/"
legacy-peer-deps = true
4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

18 changes: 18 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true,
"web": true,
"assets": ["dist/*"]
},
"hooks": {
"after:bump": "yarn build:prod",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
},
"npm": {
"release": true,
"skipChecks": true
}
}
11 changes: 0 additions & 11 deletions .storybook/main.js

This file was deleted.

10 changes: 0 additions & 10 deletions .storybook/tsconfig.json

This file was deleted.

23 changes: 0 additions & 23 deletions .vscode/launch.json

This file was deleted.

13 changes: 0 additions & 13 deletions .vscode/tasks.json

This file was deleted.

48 changes: 36 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
## Changelog
# Changelog

## [6.0.0]
## [6.0.2]

## Added
### Added

- Add cypress tests for all props and events
- Added `onStroke` prop to get last stroke on pointer up
- Adds a point on click (without moving) #45

### Changed

- Upgraded all dependencies
- Moved to DTS (tsdx fork) instead of nx
- Switched codebase to hook based implementation (support react >= 16.8)
- Removed immer dependency

### Fixed

- Changed React import to \* from React #40
- Export image fails when the background is not an image [beta] #46
- Fix partial transparent erase (eraser stroke color changed to black for masking, add maskUnits) #44

### Breaking changes

- Renamed `onUpdate` to `onChange`

## [6.0.1-beta]

### Added

- Upgraded all dependencies
- Updated directory structure
Expand All @@ -12,37 +37,36 @@
- Updated erase option to use mask instead of canvas color
- Add github action for deployment of storybook and package

## Breaking changes
### Breaking changes

- Removed background option to set background image using CSS-in-JS (instead check feature-filled backgroundImage prop)


## [5.3.4]

## Added
### Added

- Switched to Nx
- Updated documentation

## Changed
### Changed

- Removed pepjs. Can be polyfilled by the web app directly instead

## [5.3.3]

## Fixed
### Fixed

- add support any version above react 16.4

## [5.3.2]

## Fixed
### Fixed

- Bump dependency versions

## [5.3.1]

## Fixed
### Fixed

- Set default value of `allowOnlyPointerType` as `'all'` again

Expand Down
Loading