Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-switch

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-switch - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md

@@ -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

19

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc