Files
react/scripts/rollup/results.json
T
Flarnie MarchanandGitHub 964c263d8f Downgrade deprecation warnings from errors to warnings (#9650)
* Initial regeneration of results.json

**what is the change?:**
We ran `yarn build` and updated the perf. stats record.

**why make this change?:**
Some commits have landed without updating this. By getting an initial update, I can run the build script again after my changes and see any size regressions.

* Downgrade deprecation warnings from errors to warnings

**what is the change?:**
Swapping out `warning` module for a fork that uses `console.warn`.
It looks like we were using the `warning` module for deprecation notices, *but* there is also a 'deprecated' module designed specifically for deprecation notices.

However, we could not find any place that it was currently used.

Since React's build process is not 100% clear to me, I assume it could still be used somewhere by something and just updated it along with other deprecation notices.

We might consider a follow-up diff that does some clean up here;
 - remove 'deprecated' module if it's unused, OR
 - use 'deprecated' module for all our current deprecation warnings

**why make this change?:**
- We have had complaints about noisy warnings, in particular after introducing new deprecations
- They potentially cause CI failures
- Deprecations are not really time-sensitive, can ship without breaking your app, etc.

For more context - https://github.com/facebook/react/issues/9395

**test plan:**
`npm run test`
and unit tests for the new modules
and manual testing (WIP)

**issue:**
https://github.com/facebook/react/issues/9395

* Add 'lowPriorityWarning' to ReactExternals

**what is the change?:**
We won't bundle 'lowPriorityWarning' with the rest of React when building for Facebook.
NOTE: A parallel commit will introduce an internal implementation of 'lowPriorityWarning' in Facebook's codebase, to compensate. Will post a comment with the diff number once that is up.

**why make this change?:**
So that the sync between github and Facebook can go more smoothly!

**test plan:**
We will see when I run the sync! But this is a reasonable first step imo.

**issue:**
https://github.com/facebook/react/issues/9398

* Make state mutations an error, not low-pri warning

**what is the change?:**
Even though this is a "deprecation" warning, we still want to use 'console.error' for it.

**why make this change?:**
- It's not likely to come up now, hopefully, because this warning has been present for some time
- This will cause real issues in production if ignored

**test plan:**
`yarn test` - we did fix one test which failed bc of this change

**issue:**
https://github.com/facebook/react/issues/9398

* Fix test of assigning to this.state that was only passing in fiber

**what is the change?:**
updated a unit test for assigning directly to state; it once again raises an error and not a warning.

**why make this change?:**
So that tests pass

**test plan:**
 REACT_DOM_JEST_USE_FIBER=1 yarn run test

**issue:**

* Update results.json
2017-05-23 09:35:42 -07:00

168 lines
3.8 KiB
JSON

{
"bundleSizes": {
"react.development.js (UMD_DEV)": {
"size": 125119,
"gzip": 31339
},
"react.production.min.js (UMD_PROD)": {
"size": 15753,
"gzip": 5824
},
"react-dom.development.js (UMD_DEV)": {
"size": 593408,
"gzip": 136701
},
"react-dom.production.min.js (UMD_PROD)": {
"size": 122214,
"gzip": 38682
},
"react-dom-server.development.js (UMD_DEV)": {
"size": 525896,
"gzip": 126687
},
"react-dom-server.production.min.js (UMD_PROD)": {
"size": 111581,
"gzip": 34959
},
"react-art.development.js (UMD_DEV)": {
"size": 349191,
"gzip": 77905
},
"react-art.production.min.js (UMD_PROD)": {
"size": 96277,
"gzip": 29313
},
"react.development.js (NODE_DEV)": {
"size": 71914,
"gzip": 18276
},
"react.production.min.js (NODE_PROD)": {
"size": 9195,
"gzip": 3614
},
"React-dev.js (FB_DEV)": {
"size": 73423,
"gzip": 18751
},
"React-prod.js (FB_PROD)": {
"size": 36836,
"gzip": 9248
},
"ReactDOMStack-dev.js (FB_DEV)": {
"size": 496986,
"gzip": 118763
},
"ReactDOMStack-prod.js (FB_PROD)": {
"size": 353129,
"gzip": 84773
},
"react-dom.development.js (NODE_DEV)": {
"size": 550984,
"gzip": 126642
},
"react-dom.production.min.js (NODE_PROD)": {
"size": 118427,
"gzip": 37300
},
"ReactDOMFiber-dev.js (FB_DEV)": {
"size": 551962,
"gzip": 127141
},
"ReactDOMFiber-prod.js (FB_PROD)": {
"size": 411657,
"gzip": 94084
},
"react-dom-server.development.js (NODE_DEV)": {
"size": 474459,
"gzip": 114087
},
"react-dom-server.production.min.js (NODE_PROD)": {
"size": 105956,
"gzip": 32782
},
"ReactDOMServerStack-dev.js (FB_DEV)": {
"size": 455985,
"gzip": 109831
},
"ReactDOMServerStack-prod.js (FB_PROD)": {
"size": 334090,
"gzip": 80459
},
"ReactARTStack-dev.js (FB_DEV)": {
"size": 143166,
"gzip": 32816
},
"ReactARTStack-prod.js (FB_PROD)": {
"size": 101182,
"gzip": 23039
},
"react-art.development.js (NODE_DEV)": {
"size": 270515,
"gzip": 57772
},
"react-art.production.min.js (NODE_PROD)": {
"size": 57662,
"gzip": 17391
},
"ReactARTFiber-dev.js (FB_DEV)": {
"size": 269773,
"gzip": 57593
},
"ReactARTFiber-prod.js (FB_PROD)": {
"size": 208053,
"gzip": 43488
},
"ReactNativeStack.js (RN)": {
"size": 233993,
"gzip": 55044
},
"ReactNativeFiber.js (RN)": {
"size": 387155,
"gzip": 84001
},
"ReactTestRendererFiber-dev.js (FB_DEV)": {
"size": 267275,
"gzip": 56465
},
"ReactTestRendererStack-dev.js (FB_DEV)": {
"size": 151770,
"gzip": 34846
},
"react-noop-renderer.development.js (NODE_DEV)": {
"size": 259192,
"gzip": 54435
},
"react-test-renderer.development.js (NODE_DEV)": {
"size": 268026,
"gzip": 56654
},
"react-dom-test-utils.development.js (NODE_DEV)": {
"size": 52792,
"gzip": 13569
},
"ReactTestUtils-dev.js (FB_DEV)": {
"size": 52725,
"gzip": 13564
},
"react-test-renderer-stack.development.js (NODE_DEV)": {
"size": 152686,
"gzip": 35015
},
"react-test-renderer-shallow.development.js (NODE_DEV)": {
"size": 8108,
"gzip": 2247
},
"ReactShallowRenderer-dev.js (FB_DEV)": {
"size": 8063,
"gzip": 2229
},
"ReactDOMServerStream-dev.js (FB_DEV)": {
"size": 472917,
"gzip": 113925
},
"ReactDOMServerStream-prod.js (FB_PROD)": {
"size": 345920,
"gzip": 83497
}
}
}