Skip to content

Commit b04abbb

Browse files
realitykingjamiebuilds
authored andcommitted
Use the warning package instead of fbjs
1 parent 98efab9 commit b04abbb

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"commit": "lint-staged"
2727
},
2828
"dependencies": {
29-
"fbjs": "^0.8.0",
30-
"gud": "^1.0.0"
29+
"gud": "^1.0.0",
30+
"warning": "^4.0.3"
3131
},
3232
"peerDependencies": {
3333
"prop-types": "^15.0.0",

src/implementation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React, { Component, type Node } from 'react';
33
import PropTypes from 'prop-types';
44
import gud from 'gud';
5-
import warning from 'fbjs/lib/warning';
5+
import warning from 'warning';
66

77
const MAX_SIGNED_31_BIT_INT = 1073741823;
88

yarn.lock

+8-1
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ fb-watchman@^2.0.0:
14211421
dependencies:
14221422
bser "^2.0.0"
14231423

1424-
fbjs@^0.8.0, fbjs@^0.8.16:
1424+
fbjs@^0.8.16:
14251425
version "0.8.16"
14261426
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db"
14271427
dependencies:
@@ -3683,6 +3683,13 @@ walker@~1.0.5:
36833683
dependencies:
36843684
makeerror "1.0.x"
36853685

3686+
warning@^4.0.3:
3687+
version "4.0.3"
3688+
resolved "https://registry.yarnpkg.com/warning/-/warning-4.0.3.tgz#16e9e077eb8a86d6af7d64aa1e05fd85b4678ca3"
3689+
integrity sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==
3690+
dependencies:
3691+
loose-envify "^1.0.0"
3692+
36863693
watch@~0.18.0:
36873694
version "0.18.0"
36883695
resolved "https://registry.yarnpkg.com/watch/-/watch-0.18.0.tgz#28095476c6df7c90c963138990c0a5423eb4b986"

0 commit comments

Comments
 (0)