react-switch
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -7,2 +7,6 @@ # Changelog | ||
## [2.0.1 - 2017-11-03] | ||
### Changed | ||
- prop-types is switched from peerDependency to dependency. This should reduce frustration for devs who don't use prop-types in their project, but shouldn't affect anyone else. | ||
## [2,0.0 - 2017-10-31] | ||
@@ -9,0 +13,0 @@ ### Added |
{ | ||
"name": "react-switch", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Draggable toggle-switch component for react", | ||
@@ -9,4 +9,3 @@ "main": "dist/index.js", | ||
"build:watch": "babel src -w -d dist", | ||
"push-examples": | ||
"webpack -p && git subtree push --prefix examples/dist origin gh-pages", | ||
"push-examples": "webpack -p && git subtree push --prefix examples/dist origin gh-pages", | ||
"lint": "eslint --ext .js,.jsx src/ examples/src", | ||
@@ -17,4 +16,3 @@ "prepublishOnly": "npm run build", | ||
"start": "webpack-dev-server", | ||
"stats": | ||
"webpack -p --profile --json > stats.json && webpack-bundle-analyzer stats.json examples/dist -s gzip" | ||
"stats": "webpack -p --profile --json > stats.json && webpack-bundle-analyzer stats.json examples/dist -s gzip" | ||
}, | ||
@@ -32,5 +30,4 @@ "repository": { | ||
"peerDependencies": { | ||
"react": ">=15", | ||
"react-dom": ">=15", | ||
"prop-types": ">=15" | ||
"react": "^15.3.0 || ^16.0.0", | ||
"react-dom": "^15.3.0 || ^16.0.0" | ||
}, | ||
@@ -56,3 +53,2 @@ "devDependencies": { | ||
"jest": "^21.2.1", | ||
"prop-types": "^15.6.0", | ||
"raf": "^3.4.0", | ||
@@ -75,3 +71,6 @@ "react": "^16.0.0", | ||
"react-component" | ||
] | ||
], | ||
"dependencies": { | ||
"prop-types": "^15.6.0" | ||
} | ||
} |
@@ -54,9 +54,2 @@ # react-switch | ||
If you provide any of the following props, they have to be either 3-digit or 6-digit hex-colors: | ||
**offColor, onColor, offHandleColor,** and **onHandleColor.** This is because this library calculates intermediate color values based on the hex-color strings. | ||
Examples of valid colors: '#abc', '#123456' | ||
(**These will NOT work**) Examples of *invalid* colors: 'red', 'rgb(0,0,0)' | ||
| Prop | Type | Default | Description | | ||
@@ -83,4 +76,11 @@ | ---- |----- | ------- | ----------- | | ||
The following props have to be either 3-digit or 6-digit hex-colors: | ||
**offColor, onColor, offHandleColor,** and **onHandleColor.** This is because this library calculates intermediate color values based on the hex-color strings. | ||
Examples of valid colors: '#abc', '#123456' | ||
Examples of **invalid** colors: 'red', 'rgb(0,0,0)' | ||
## License | ||
MIT |
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
27561
26
+ Addedprop-types@^15.6.0
+ Addedreact@16.14.0(transitive)
+ Addedreact-dom@16.14.0(transitive)
+ Addedscheduler@0.19.1(transitive)
- Removedreact@18.3.1(transitive)
- Removedreact-dom@18.3.1(transitive)
- Removedscheduler@0.23.2(transitive)