diff --git a/package.json b/package.json index 745a4a6..d75ee2e 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,9 @@ "dependencies": { "deep-equal": "^1.0.1", "eventemitter3": "^2.0.2", - "fbjs": "^0.8.1", + "exenv": "^1.2.2", "hoist-non-react-statics": "^1.0.5", + "invariant": "^2.2.2", "throttle-debounce": "^1.0.1" }, "devDependencies": { @@ -91,9 +92,9 @@ "webpack-dev-server": "^1.14.1" }, "peerDepencencies": { - "prop-types": "^15.5.10", - "react": "^15.0.1", - "react-dom": "^15.0.1" + "prop-types": "^15.5.10", + "react": "^15.0.1", + "react-dom": "^15.0.1" }, "scripts": { "commit": "git-cz", diff --git a/src/Bling.js b/src/Bling.js index 2b9bc7d..99f2ea4 100644 --- a/src/Bling.js +++ b/src/Bling.js @@ -2,7 +2,7 @@ import React, {Component} from "react"; import PropTypes from "prop-types"; import ReactDOM from "react-dom"; -import invariant from "fbjs/lib/invariant"; +import invariant from "invariant"; import deepEqual from "deep-equal"; import hoistStatics from "hoist-non-react-statics"; import Events from "./Events"; diff --git a/src/createManager.js b/src/createManager.js index 9ec1be6..6fbfff3 100644 --- a/src/createManager.js +++ b/src/createManager.js @@ -1,7 +1,7 @@ import EventEmitter from "eventemitter3"; import {debounce, throttle} from "throttle-debounce"; -import invariant from "fbjs/lib/invariant"; -import {canUseDOM} from "fbjs/lib/ExecutionEnvironment"; +import invariant from "invariant"; +import {canUseDOM} from "exenv"; import Events from "./Events"; import isInViewport from "./utils/isInViewport"; diff --git a/yarn.lock b/yarn.lock index f013107..e3d293f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2184,7 +2184,7 @@ eventsource@0.1.6: dependencies: original ">=0.0.5" -exenv@^1.2.1: +exenv@^1.2.1, exenv@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/exenv/-/exenv-1.2.2.tgz#2ae78e85d9894158670b03d47bec1f03bd91bb9d" @@ -2309,7 +2309,7 @@ faye-websocket@~0.11.0: dependencies: websocket-driver ">=0.5.1" -fbjs@^0.8.1, fbjs@^0.8.9: +fbjs@^0.8.9: version "0.8.14" resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.14.tgz#d1dbe2be254c35a91e09f31f9cd50a40b2a0ed1c" dependencies: @@ -2997,7 +2997,7 @@ interpret@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.3.tgz#cbc35c62eeee73f19ab7b10a801511401afc0f90" -invariant@^2.2.0, invariant@^2.2.1: +invariant@^2.2.0, invariant@^2.2.1, invariant@^2.2.2: version "2.2.2" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" dependencies: