Skip to content

Commit

Permalink
Replace fbjs/lib/invariant with invariant (#3448)
Browse files Browse the repository at this point in the history
Summary:
Migrates Relay off `fbjs/lib/invariant` onto the `invariant` npm package.

Pull Request resolved: #3448

Test Plan: Ran `yarn` and `yarn test` successfully.

Reviewed By: yungsters

Differential Revision: D27678952

Pulled By: kassens

fbshipit-source-id: 722a82cedcb6a658d6af7afff0ed2de77ceb6a67
  • Loading branch information
yungsters authored and facebook-github-bot committed Apr 9, 2021
1 parent 86a9fa4 commit 3982f9d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"gulp-header": "2.0.9",
"gulp-rename": "^2.0.0",
"gulp-util": "3.0.8",
"invariant": "^2.2.4",
"immutable": "~3.7.6",
"jest": "^26.6.3",
"nullthrows": "^1.1.1",
Expand Down
1 change: 1 addition & 0 deletions packages/react-relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dependencies": {
"@babel/runtime": "^7.0.0",
"fbjs": "^3.0.0",
"invariant": "^2.2.4",
"nullthrows": "^1.1.1",
"relay-runtime": "11.0.1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/relay-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"fbjs": "^3.0.0",
"glob": "^7.1.1",
"immutable": "~3.7.6",
"invariant": "^2.2.4",
"nullthrows": "^1.1.1",
"relay-runtime": "11.0.1",
"signedsource": "^1.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/relay-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"repository": "facebook/relay",
"dependencies": {
"@babel/runtime": "^7.0.0",
"fbjs": "^3.0.0"
"fbjs": "^3.0.0",
"invariant": "^2.2.4"
},
"directories": {
"": "./"
Expand Down
1 change: 1 addition & 0 deletions packages/relay-test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dependencies": {
"@babel/runtime": "^7.0.0",
"fbjs": "^3.0.0",
"invariant": "^2.2.4",
"relay-runtime": "11.0.1"
},
"peerDependencies": {
Expand Down
1 change: 0 additions & 1 deletion scripts/getBabelOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ module.exports = function(options) {
map: {
Promise: 'promise-polyfill',
areEqual: 'fbjs/lib/areEqual',
invariant: 'fbjs/lib/invariant',
warning: 'fbjs/lib/warning',
},
},
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4172,7 +4172,7 @@ interpret@^1.4.0:
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e"
integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==

invariant@^2.2.2:
invariant@^2.2.2, invariant@^2.2.4:
version "2.2.4"
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
Expand Down

0 comments on commit 3982f9d

Please sign in to comment.