From f0c34c2e5c815895b6ba998e24b8251b63d12dcf Mon Sep 17 00:00:00 2001 From: Daniel van Hoesel Date: Tue, 29 May 2018 15:25:45 +0200 Subject: [PATCH] Deprecate plugin Closes #121 --- README.md | 10 +++++++++- package.json | 6 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 889ca820a6953..3223eb0b13e74 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ +# DEPRECATED + +React 16.4 removes a lot of internals (#121) this plugin depends on and will break the plugin. + +Since the problem it solves [has been fixed](https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away) in most browsers by now you should migrate away from this plugin. + +--- + # Introduction You've probably heard of [iOS's dreaded 300ms tap delay](http://updates.html5rocks.com/2013/12/300ms-tap-delay-gone-away). React's `onClick` attribute falls prey to it. ~~Facebook's working on a solution in the form of `TapEventPlugin`, but it [won't be made available](https://github.com/facebook/react/issues/436) [until 1.0](https://github.com/facebook/react/pull/1170).~~ @@ -11,7 +19,7 @@ Verify if you need this plugin for the browsers you need to support. ## Installation -Latest: +Compatible with React >= 16.0 && < 16.4: ```sh $ npm i --save react-tap-event-plugin ``` diff --git a/package.json b/package.json index 3fa6b1e98a100..fede72f6786ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-tap-event-plugin", - "version": "3.0.2", + "version": "3.0.3", "description": "Facebook's TapEventPlugin, temporarily available on npm until its made public in their repo", "main": "src/injectTapEventPlugin.js", "files": [ @@ -22,8 +22,8 @@ "react-tap-event-plugin" ], "peerDependencies": { - "react": "^16.0.0-0", - "react-dom": "^16.0.0-0" + "react": "^16.0.0-0 < 16.4.0", + "react-dom": "^16.0.0-0 < 16.4.0" }, "dependencies": { "fbjs": "^0.8.6"