qrcode.react
Advanced tools
Comparing version 0.6.0 to 0.6.1
## [Unreleased] | ||
## [0.6.1] - 2016-04-13 | ||
- Extended support to React v15 | ||
## [0.6.0] - 2016-02-02 | ||
@@ -5,0 +9,0 @@ |
@@ -14,9 +14,12 @@ 'use strict'; | ||
var getDOMNode; | ||
if (/^0\.14/.test(React.version)) { | ||
// Super naive semver detection but it's good enough. We support 0.12, 0.13 | ||
// which both have getDOMNode on the ref. 0.14 and 15 make the DOM node the ref. | ||
var version = React.version.split(/[.-]/); | ||
if (version[0] === '0' && version[1] === '13' || version[1] === '12') { | ||
getDOMNode = function getDOMNode(ref) { | ||
return ref; | ||
return ref.getDOMNode(); | ||
}; | ||
} else { | ||
getDOMNode = function getDOMNode(ref) { | ||
return ref.getDOMNode(); | ||
return ref; | ||
}; | ||
@@ -23,0 +26,0 @@ } |
{ | ||
"name": "qrcode.react", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "React component to generate QR codes", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"react": "0.12 - 0.14" | ||
"react": "0.12 - 0.14 || ^15.0.0" | ||
}, | ||
@@ -42,5 +42,5 @@ "devDependencies": { | ||
"eslint-plugin-react": "^3.5.1", | ||
"react": "^0.14.0", | ||
"react-dom": "^0.14.0" | ||
"react": "^15.0.0", | ||
"react-dom": "^15.0.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5503
88