From 97daadfe519f6f56f27dc13a307508eb2181f83e Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 4 Apr 2018 21:20:41 +0100 Subject: [PATCH] facebook.github.io/react -> reactjs.org (#12545) --- packages/react-reconciler/package.json | 2 +- .../shared/__tests__/reactProdInvariant-test.internal.js | 6 +++--- packages/shared/reactProdInvariant.js | 2 +- scripts/error-codes/replace-invariant-error-codes.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/react-reconciler/package.json b/packages/react-reconciler/package.json index c9a54e281ee19..c519845962ca8 100644 --- a/packages/react-reconciler/package.json +++ b/packages/react-reconciler/package.json @@ -5,7 +5,7 @@ "keywords": [ "react" ], - "homepage": "https://facebook.github.io/react/", + "homepage": "https://reactjs.org/", "bugs": "https://github.com/facebook/react/issues", "license": "MIT", "files": [ diff --git a/packages/shared/__tests__/reactProdInvariant-test.internal.js b/packages/shared/__tests__/reactProdInvariant-test.internal.js index 2263241a503a2..34dbf78330938 100644 --- a/packages/shared/__tests__/reactProdInvariant-test.internal.js +++ b/packages/shared/__tests__/reactProdInvariant-test.internal.js @@ -39,7 +39,7 @@ describe('reactProdInvariant', () => { reactProdInvariant(124, 'foo', 'bar'); }).toThrowError( 'Minified React error #124; visit ' + - 'http://facebook.github.io/react/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' + + 'http://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' + ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.', ); @@ -48,7 +48,7 @@ describe('reactProdInvariant', () => { reactProdInvariant(20); }).toThrowError( 'Minified React error #20; visit ' + - 'http://facebook.github.io/react/docs/error-decoder.html?invariant=20' + + 'http://reactjs.org/docs/error-decoder.html?invariant=20' + ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.', ); @@ -57,7 +57,7 @@ describe('reactProdInvariant', () => { reactProdInvariant(77, '
', '&?bar'); }).toThrowError( 'Minified React error #77; visit ' + - 'http://facebook.github.io/react/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' + + 'http://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' + ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.', ); diff --git a/packages/shared/reactProdInvariant.js b/packages/shared/reactProdInvariant.js index 56adc77d94f64..9bba7a793eef9 100644 --- a/packages/shared/reactProdInvariant.js +++ b/packages/shared/reactProdInvariant.js @@ -20,7 +20,7 @@ function reactProdInvariant(code: string): void { 'Minified React error #' + code + '; visit ' + - 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + + 'http://reactjs.org/docs/error-decoder.html?invariant=' + code; for (let argIdx = 0; argIdx < argCount; argIdx++) { diff --git a/scripts/error-codes/replace-invariant-error-codes.js b/scripts/error-codes/replace-invariant-error-codes.js index 790018f6cdfbb..734b57f5e316f 100644 --- a/scripts/error-codes/replace-invariant-error-codes.js +++ b/scripts/error-codes/replace-invariant-error-codes.js @@ -64,7 +64,7 @@ module.exports = function(babel) { // that references a verbose error message. // The mapping is stored in `scripts/error-codes/codes.json`. // - `PROD_INVARIANT` is the `reactProdInvariant` function that always throws with an error URL like - // http://facebook.github.io/react/docs/error-decoder.html?invariant=XYZ&args[]=foo&args[]=bar + // http://reactjs.org/docs/error-decoder.html?invariant=XYZ&args[]=foo&args[]=bar // // Specifically this does 3 things: // 1. Checks the condition first, preventing an extra function call.