react-fastclick
Advanced tools
Comparing version
{ | ||
"name": "react-fastclick", | ||
"version": "2.1.2", | ||
"version": "3.0.0", | ||
"description": "Fast Touch Events for React", | ||
"main": "lib/index.js", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"mocha": "istanbul cover node_modules/mocha/bin/_mocha -- --require tests/helpers/test-setup.js --bail --recursive tests", | ||
"eslint": "eslint -c node_modules/eslintrc/.eslintrc-es5 lib tests/helpers && eslint -c node_modules/eslintrc/.eslintrc-es5-mocha tests", | ||
"test": "npm run eslint && npm run mocha" | ||
"mocha": "nyc mocha --bail --recursive 'tests/**/*.test.js'", | ||
"lint-tests": "eslint -c node_modules/eslintrc/.eslintrc-es5-mocha tests/", | ||
"lint-src": "eslint -c node_modules/eslintrc/.eslintrc-es5 src/", | ||
"test": "npm run lint-src && npm run lint-tests && npm run mocha" | ||
}, | ||
@@ -31,16 +32,21 @@ "repository": { | ||
"homepage": "https://github.com/JakeSidSmith/react-fastclick", | ||
"dependencies": { | ||
"react": ">=0.12.0" | ||
"peerDependencies": { | ||
"react": "*" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"chai": "=3.5.0", | ||
"eslintrc": "git+https://github.com/JakeSidSmith/eslintrc.git#v0.0.1", | ||
"istanbul": "=1.0.0-alpha.2", | ||
"jsdom": "=8.4.1", | ||
"mocha": "=2.4.5", | ||
"react-addons-test-utils": ">=0.12.0", | ||
"react-dom": ">=0.12.0", | ||
"nyc": "=10.1.2", | ||
"react": "=15.4.2", | ||
"react-addons-test-utils": "=15.4.2", | ||
"react-dom": "=15.4.2", | ||
"sinon": "=1.17.3", | ||
"sinon-chai": "=2.8.0" | ||
}, | ||
"engines": { | ||
"node": "6.9.4" | ||
} | ||
} |
@@ -1,4 +0,2 @@ | ||
# React Fastclick | ||
[](https://travis-ci.org/JakeSidSmith/react-fastclick) | ||
# React Fastclick [](https://circleci.com/gh/JakeSidSmith/react-fastclick) | ||
**Instantly make your desktop / hybrid apps more responsive on touch devices.** | ||
@@ -18,3 +16,3 @@ | ||
Include `react-fastclick` in your main javascript file before any of your components are created, and you're done. | ||
Initialize `react-fastclick` in your main javascript file before any of your components are created, and you're done. | ||
@@ -26,3 +24,4 @@ Now any calls to onClick or elements with special functionality, such as inputs, will have fast touch events added automatically - no need to write any additional listeners. | ||
```javascript | ||
import 'react-fastclick'; | ||
import initReactFastclick from 'react-fastclick'; | ||
initReactFastclick(); | ||
``` | ||
@@ -33,3 +32,4 @@ | ||
```javascript | ||
require('react-fastclick'); | ||
var initReactFastclick = require('react-fastclick'); | ||
initReactFastclick(); | ||
``` | ||
@@ -72,4 +72,2 @@ | ||
React Fastclick 2.1.2 has been tested with React 15, and should support older versions listed below. | ||
React Fastclick version 2.x.x has been tested with React 0.12, 0.13 and 0.14, and should work with even older versions. | ||
React Fastclick 3.x.x has been tested with React 15, but should support older versions also. |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30473
6.77%11
10%803
3.48%10
11.11%70
-2.78%1
Infinity%- Removed