Skip to content

Commit

Permalink
Remove transitive dependency on fbjs (#13075)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Jun 19, 2018
1 parent aeda7b7 commit 8e87c13
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -78,7 +78,7 @@
"object-assign": "^4.1.1",
"platform": "^1.1.0",
"prettier": "1.11.1",
"prop-types": "^15.6.0",
"prop-types": "^15.6.2",
"random-seed": "^0.3.0",
"react-lifecycles-compat": "^3.0.2",
"rimraf": "^2.6.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-art/package.json
Expand Up @@ -22,7 +22,7 @@
"create-react-class": "^15.6.2",
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1",
"prop-types": "^15.6.0"
"prop-types": "^15.6.2"
},
"peerDependencies": {
"react": "^16.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dom/package.json
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1",
"prop-types": "^15.6.0"
"prop-types": "^15.6.2"
},
"peerDependencies": {
"react": "^16.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-renderer/package.json
Expand Up @@ -5,7 +5,7 @@
"repository": "facebook/react",
"dependencies": {
"object-assign": "^4.1.1",
"prop-types": "^15.6.0"
"prop-types": "^15.6.2"
},
"peerDependencies": {
"react": "^16.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-noop-renderer/package.json
Expand Up @@ -8,7 +8,7 @@
"license": "MIT",
"dependencies": {
"object-assign": "^4.1.1",
"prop-types": "^15.6.0",
"prop-types": "^15.6.2",
"regenerator-runtime": "^0.11.0",
"react-reconciler": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/package.json
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1",
"prop-types": "^15.6.0"
"prop-types": "^15.6.2"
},
"browserify": {
"transform": [
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-renderer/package.json
Expand Up @@ -16,7 +16,7 @@
"homepage": "https://reactjs.org/",
"dependencies": {
"object-assign": "^4.1.1",
"prop-types": "^15.6.0",
"prop-types": "^15.6.2",
"react-is": "^16.4.1"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1",
"prop-types": "^15.6.0"
"prop-types": "^15.6.2"
},
"browserify": {
"transform": [
Expand Down
5 changes: 2 additions & 3 deletions scripts/rollup/build.js
Expand Up @@ -285,9 +285,8 @@ function getPlugins(
},
// Shim any modules that need forking in this environment.
useForks(forks),
// Ensure we don't try to bundle any fbjs modules
// unless they're transitive (e.g. through prop-types).
!isUMDBundle && blacklistFBJS(),
// Ensure we don't try to bundle any fbjs modules.
blacklistFBJS(),
// Use Node resolution mechanism.
resolve({
skip: externals,
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Expand Up @@ -4603,14 +4603,21 @@ promise@^7.1.1:
dependencies:
asap "~2.0.3"

prop-types@^15.5.7, prop-types@^15.6.0:
prop-types@^15.5.7:
version "15.6.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.1.tgz#36644453564255ddda391191fb3a125cbdf654ca"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.3.1"
object-assign "^4.1.1"

prop-types@^15.6.2:
version "15.6.2"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102"
dependencies:
loose-envify "^1.3.1"
object-assign "^4.1.1"

prop-types@~15.5.7:
version "15.5.10"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.10.tgz#2797dfc3126182e3a95e3dfbb2e893ddd7456154"
Expand Down

0 comments on commit 8e87c13

Please sign in to comment.