Skip to content

Commit

Permalink
Remove fbjs dependency (#13069)
Browse files Browse the repository at this point in the history
* Inline fbjs/lib/invariant

* Inline fbjs/lib/warning

* Remove remaining usage of fbjs in packages/*.js

* Fix lint

* Remove fbjs from dependencies

* Protect against accidental fbjs imports

* Fix broken test mocks

* Allow transitive deps on fbjs/ for UMD bundles

* Remove fbjs from release script
  • Loading branch information
gaearon committed Jun 19, 2018
1 parent ab26fd5 commit 9edacf5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -15,7 +15,6 @@
},
"homepage": "https://reactjs.org/",
"dependencies": {
"fbjs": "^0.8.16",
"object-assign": "^4.1.1",
"prop-types": "^15.6.0",
"react-is": "^16.4.1"
Expand Down
2 changes: 1 addition & 1 deletion src/ReactShallowRenderer.js
Expand Up @@ -11,7 +11,7 @@ import {isForwardRef} from 'react-is';
import describeComponentFrame from 'shared/describeComponentFrame';
import getComponentName from 'shared/getComponentName';
import shallowEqual from 'shared/shallowEqual';
import invariant from 'fbjs/lib/invariant';
import invariant from 'shared/invariant';
import checkPropTypes from 'prop-types/checkPropTypes';

const emptyObject = {};
Expand Down
2 changes: 1 addition & 1 deletion src/ReactTestRenderer.js
Expand Up @@ -28,7 +28,7 @@ import {
ForwardRef,
Profiler,
} from 'shared/ReactTypeOfWork';
import invariant from 'fbjs/lib/invariant';
import invariant from 'shared/invariant';

import * as ReactTestHostConfig from './ReactTestHostConfig';
import * as TestRendererScheduling from './ReactTestRendererScheduling';
Expand Down

0 comments on commit 9edacf5

Please sign in to comment.