Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
yarn-error.log
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 3.4.0
* Update to react 18.2.0
* Update webpack
* Fix demo

## 3.3.0
* Fix subpixel render issues of SteppedLine component

Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@
</style>
</head>
<body>
<script type="text/javascript" src="main.js"></script></body>
<script type="text/javascript" src="bundle.js"></script></body>
</html>
162 changes: 42 additions & 120 deletions dist/react-lineto.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-lineto.min.js

Large diffs are not rendered by default.

6,976 changes: 6,976 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "react-lineto",
"version": "3.3.0",
"version": "3.4.0",
"author": "Kevin DeLoach <[email protected]>",
"license": "MIT",
"main": "dist/react-lineto.js",
"types": "src/index.d.ts",
"scripts": {
"build": "webpack --config webpack.config.js",
"demo": "webpack serve --config webpack.demo.config.js --hot --inline",
"demo": "webpack serve --config webpack.demo.config.js --open",
"lint": "eslint --ext js,jsx ./src",
"test": "npm run lint"
},
Expand All @@ -21,7 +21,7 @@
},
"dependencies": {
"prop-types": "15.7.2",
"react": "17.0.2"
"react": "18.2.0"
},
"devDependencies": {
"@babel/core": "^7.14.3",
Expand All @@ -33,13 +33,16 @@
"eslint": "^7.27.0",
"eslint-plugin-react": "^7.24.0",
"eslint-webpack-plugin": "^2.5.4",
"react-dom": "17.0.2",
"react-dom": "18.2.0",
"regenerator-runtime": "^0.13.7",
"webpack": "^5.38.1",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^3.11.2"
"webpack-dev-server": "^4.15.1"
},
"babel": {
"presets": ["@babel/preset-env", "@babel/preset-react"]
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
}
15 changes: 10 additions & 5 deletions webpack.demo.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
/* eslint-env node */
const path = require('path')
const ESLintPlugin = require('eslint-webpack-plugin')
const ESLintPlugin = require('eslint-webpack-plugin');
const path = require('path');

module.exports = {
entry: './demo/index.jsx',
output: {
path: path.join(__dirname, 'demo'),
filename: 'bundle.js'
},

mode: 'development',
plugins: [new ESLintPlugin({ extensions: '.jsx' })],
Expand All @@ -21,8 +25,9 @@ module.exports = {
devtool: 'source-map',

devServer: {
host: '0.0.0.0',
port: 4567,
contentBase: path.join(__dirname, 'demo'),
port: 3000,
static: {
directory: path.join(__dirname, 'demo')
}
},
};
4,002 changes: 1,514 additions & 2,488 deletions yarn.lock

Large diffs are not rendered by default.