Skip to content

Commit

Permalink
chore(package.json): Remove fbjs (#49)
Browse files Browse the repository at this point in the history
Remove fbjs and replace it with modern packages.
  • Loading branch information
jamsea authored Sep 17, 2017
1 parent 7130060 commit b187381
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Bling.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions src/createManager.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2184,7 +2184,7 @@ [email protected]:
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"

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b187381

Please sign in to comment.