react-qr-svg
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -46,2 +46,4 @@ 'use strict'; | ||
var cellIndex = 0; // we use simple order as a key just to avoid the key warning here | ||
return _react2.default.createElement( | ||
@@ -53,3 +55,4 @@ 'svg', | ||
return _react2.default.createElement('rect', { height: 1, | ||
style: { fill: cell ? fgColor : bgColor }, | ||
key: cellIndex++ // string was too slow here | ||
, style: { fill: cell ? fgColor : bgColor }, | ||
width: 1, | ||
@@ -56,0 +59,0 @@ x: colIndex, |
@@ -6,3 +6,3 @@ { | ||
"user": "no23reason", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"scripts": { | ||
@@ -14,3 +14,3 @@ "start": "webpack-dev-server", | ||
"test:lint": "eslint . --ext .js --ext .jsx --ignore-path .gitignore --ignore-pattern dist --ignore-pattern docs --cache", | ||
"test:ts": "cd tests/typescript && rimraf out && rimraf typings && typings install && tsc && rimraf out && rimraf typings", | ||
"test:ts": "cd tests/typescript && npm install && npm start", | ||
"make-docs": "webpack", | ||
@@ -28,8 +28,6 @@ "dist": "rimraf ./dist-modules && babel ./src --out-dir ./dist-modules", | ||
"devDependencies": { | ||
"@types/react": "^15.6.0", | ||
"@types/react-dom": "^15.5.1", | ||
"babel-cli": "^6.10.1", | ||
"babel-core": "^6.10.4", | ||
"babel-eslint": "^7.2.3", | ||
"babel-jest": "^20.0.2", | ||
"babel-eslint": "^8.0.0", | ||
"babel-jest": "^21.0.0", | ||
"babel-loader": "^7.0.0", | ||
@@ -49,3 +47,3 @@ "babel-plugin-transform-class-properties": "^6.23.0", | ||
"eslint-plugin-react": "^7.1.0", | ||
"extract-text-webpack-plugin": "^2.0.0-rc.2", | ||
"extract-text-webpack-plugin": "^3.0.0", | ||
"file-loader": "^1.0.0", | ||
@@ -55,4 +53,4 @@ "git-prepush-hook": "^1.0.1", | ||
"html-webpack-plugin": "^2.21.0", | ||
"html-webpack-remark-plugin": "^0.1.0", | ||
"jest": "^20.0.3", | ||
"html-webpack-remark-plugin": "^0.3.0", | ||
"jest": "^21.0.0", | ||
"json-loader": "^0.5.4", | ||
@@ -62,11 +60,9 @@ "purecss": "^1.0.0", | ||
"react-dom": "~15.6.1", | ||
"react-ghfork": "^0.3.3", | ||
"react-ghfork": "^0.4.0", | ||
"react-test-renderer": "~15.6.1", | ||
"rimraf": "^2.5.3", | ||
"semantic-release": "^6.3.2", | ||
"rimraf": "^2.6.1", | ||
"semantic-release": "^8.0.3", | ||
"style-loader": "^0.18.1", | ||
"typescript": "~2.3.1", | ||
"typings": "^2.0.0", | ||
"url-loader": "^0.5.7", | ||
"webpack": "^2.2.1", | ||
"url-loader": "^0.6.1", | ||
"webpack": "^3.5.5", | ||
"webpack-dev-server": "^2.4.0", | ||
@@ -76,3 +72,3 @@ "webpack-merge": "^4.0.0" | ||
"peerDependencies": { | ||
"react": ">= 0.11.2 < 16.0.0" | ||
"react": ">= 0.11.2 < 17.0.0" | ||
}, | ||
@@ -79,0 +75,0 @@ "repository": { |
38
78
10624