From 8e4654015ab9a1a7daa197a03fd1aaf874fccb6d Mon Sep 17 00:00:00 2001 From: Flarnie Marchan Date: Wed, 6 Sep 2017 11:11:19 -0700 Subject: [PATCH] Update error codes and results.json (#10619) * Update results.json **what is the change?:** Ran the build after updating Yarn lockfile and recorded latest build size results. **why make this change?:** Let's get an idea of bundle size at this point, when we are preparing the 16.0 RC. **test plan:** NA **issue:** https://github.com/facebook/react/issues/8854 * Update error codes https://github.com/facebook/react/tree/master/scripts/release-manager#update-the-error-codes --- scripts/error-codes/codes.json | 7 ++- scripts/rollup/results.json | 84 +++++++++++++++++----------------- 2 files changed, 48 insertions(+), 43 deletions(-) diff --git a/scripts/error-codes/codes.json b/scripts/error-codes/codes.json index f075f51e2bee1..1d5ed50aa1c2f 100644 --- a/scripts/error-codes/codes.json +++ b/scripts/error-codes/codes.json @@ -225,5 +225,10 @@ "223": "Trying to release an event instance into a pool of a different type.", "224": "Can't read from currently-mounting component. This error is likely caused by a bug in React. Please file an issue.", "225": "Unexpected object passed to ReactTestInstance constructor (tag: %s). This is probably a bug in React.", - "226": "Unsupported component type %s in test renderer. This is probably a bug in React." + "226": "Unsupported component type %s in test renderer. This is probably a bug in React.", + "227": "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.", + "228": "TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.", + "229": "TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.", + "230": "_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.unstable_createPortal).", + "231": "Expected `%s` listener to be a function, instead got a value of `%s` type." } diff --git a/scripts/rollup/results.json b/scripts/rollup/results.json index 9f37fe1a413f8..f972353ade22d 100644 --- a/scripts/rollup/results.json +++ b/scripts/rollup/results.json @@ -1,8 +1,8 @@ { "bundleSizes": { "react.development.js (UMD_DEV)": { - "size": 66012, - "gzip": 16798 + "size": 65962, + "gzip": 16741 }, "react.production.min.js (UMD_PROD)": { "size": 6359, @@ -25,40 +25,40 @@ "gzip": 6709 }, "react-dom.development.js (UMD_DEV)": { - "size": 648965, - "gzip": 149265 + "size": 649974, + "gzip": 149299 }, "react-dom.production.min.js (UMD_PROD)": { - "size": 103887, - "gzip": 32371 + "size": 103927, + "gzip": 32406 }, "react-dom.development.js (NODE_DEV)": { - "size": 608382, - "gzip": 139669 + "size": 608709, + "gzip": 139756 }, "react-dom.production.min.js (NODE_PROD)": { - "size": 107943, - "gzip": 33805 + "size": 107982, + "gzip": 33820 }, "ReactDOMFiber-dev.js (FB_DEV)": { - "size": 605139, - "gzip": 139082 + "size": 605466, + "gzip": 139163 }, "ReactDOMFiber-prod.js (FB_PROD)": { - "size": 420384, - "gzip": 94303 + "size": 420546, + "gzip": 94337 }, "react-dom-test-utils.development.js (NODE_DEV)": { - "size": 53354, - "gzip": 13444 + "size": 53381, + "gzip": 13453 }, "ReactTestUtils-dev.js (FB_DEV)": { - "size": 53159, - "gzip": 13402 + "size": 53186, + "gzip": 13409 }, "react-dom-unstable-native-dependencies.development.js (UMD_DEV)": { - "size": 87896, - "gzip": 22199 + "size": 87835, + "gzip": 22188 }, "react-dom-unstable-native-dependencies.production.min.js (UMD_PROD)": { "size": 15539, @@ -81,56 +81,56 @@ "gzip": 15742 }, "react-dom-server.browser.development.js (UMD_DEV)": { - "size": 135696, - "gzip": 34704 + "size": 136961, + "gzip": 34969 }, "react-dom-server.browser.production.min.js (UMD_PROD)": { "size": 15551, "gzip": 5995 }, "react-dom-server.browser.development.js (NODE_DEV)": { - "size": 104872, - "gzip": 27217 + "size": 105165, + "gzip": 27286 }, "react-dom-server.browser.production.min.js (NODE_PROD)": { "size": 14659, "gzip": 5707 }, "ReactDOMServer-dev.js (FB_DEV)": { - "size": 104541, - "gzip": 27164 + "size": 104834, + "gzip": 27229 }, "ReactDOMServer-prod.js (FB_PROD)": { "size": 44316, "gzip": 12389 }, "react-dom-server.node.development.js (NODE_DEV)": { - "size": 107179, - "gzip": 27802 + "size": 107472, + "gzip": 27868 }, "react-dom-server.node.production.min.js (NODE_PROD)": { "size": 15587, "gzip": 6039 }, "react-art.development.js (UMD_DEV)": { - "size": 372512, - "gzip": 82777 + "size": 306679, + "gzip": 66670 }, "react-art.production.min.js (UMD_PROD)": { - "size": 83203, - "gzip": 25661 + "size": 47191, + "gzip": 14737 }, "react-art.development.js (NODE_DEV)": { - "size": 293909, - "gzip": 62782 + "size": 294000, + "gzip": 62815 }, "react-art.production.min.js (NODE_PROD)": { "size": 52283, "gzip": 16337 }, "ReactARTFiber-dev.js (FB_DEV)": { - "size": 292850, - "gzip": 62832 + "size": 292941, + "gzip": 62869 }, "ReactARTFiber-prod.js (FB_PROD)": { "size": 218583, @@ -145,12 +145,12 @@ "gzip": 38841 }, "react-test-renderer.development.js (NODE_DEV)": { - "size": 298590, - "gzip": 63297 + "size": 298713, + "gzip": 63332 }, "ReactTestRendererFiber-dev.js (FB_DEV)": { - "size": 297516, - "gzip": 63372 + "size": 297639, + "gzip": 63407 }, "react-test-renderer-shallow.development.js (NODE_DEV)": { "size": 9556, @@ -161,8 +161,8 @@ "gzip": 2338 }, "react-noop-renderer.development.js (NODE_DEV)": { - "size": 285614, - "gzip": 60069 + "size": 285705, + "gzip": 60101 }, "react-dom-server.development.js (UMD_DEV)": { "size": 120897,