Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move flags to experimental #28151

Closed
wants to merge 3 commits into from

Conversation

rickhanlonii
Copy link
Member

No description provided.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jan 29, 2024
@@ -1057,70 +1057,69 @@ describe('ReactComponentLifeCycle', () => {
});
});

if (!require('shared/ReactFeatureFlags').disableModulePatternComponents) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests were implicitly depending on the fact that disableModulePatternComponents and disableLegacyContext always had the same value, so now we need to provide both.

@react-sizebot
Copy link

react-sizebot commented Jan 29, 2024

Comparing: 374fd68...5405fae

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 176.82 kB 176.82 kB = 55.12 kB 55.12 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 178.81 kB 175.29 kB = 55.70 kB 54.69 kB
facebook-www/ReactDOM-prod.classic.js = 593.39 kB 593.39 kB = 104.69 kB 104.69 kB
facebook-www/ReactDOM-prod.modern.js = 577.17 kB 577.17 kB = 101.78 kB 101.78 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.min.js = 126.31 kB 123.32 kB = 38.84 kB 37.92 kB
oss-experimental/react-reconciler/cjs/react-reconciler.production.min.js = 117.26 kB 114.28 kB = 36.43 kB 35.53 kB
oss-experimental/react-art/umd/react-art.production.min.js = 139.05 kB 135.27 kB = 43.52 kB 42.35 kB
oss-experimental/react-server/cjs/react-server.development.js = 210.56 kB 203.74 kB = 49.00 kB 47.50 kB
oss-experimental/react-art/cjs/react-art.production.min.js = 101.84 kB 98.05 kB = 31.32 kB 30.21 kB
test_utils/ReactAllWarnings.js Deleted 67.02 kB 0.00 kB Deleted 16.42 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js = 1,371.85 kB 1,360.84 kB = 303.47 kB 301.25 kB
oss-experimental/react-dom/umd/react-dom.development.js = 1,419.00 kB 1,407.53 kB = 302.23 kB 299.98 kB
oss-experimental/react-dom/cjs/react-dom.development.js = 1,354.00 kB 1,342.98 kB = 299.19 kB 296.97 kB
oss-experimental/react-dom/cjs/react-dom.profiling.js = 1,002.16 kB 993.87 kB = 222.81 kB 221.21 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.production.js = 978.35 kB 970.05 kB = 219.75 kB 218.15 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 960.37 kB 952.08 kB = 215.27 kB 213.67 kB
oss-experimental/react-server/cjs/react-server.production.js = 167.06 kB 165.37 kB = 38.54 kB 38.16 kB
oss-experimental/react-server/cjs/react-server.production.min.js = 41.29 kB 40.84 kB = 12.92 kB 12.80 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js = 957.60 kB 946.65 kB = 205.96 kB 203.65 kB
oss-experimental/react-art/umd/react-art.development.js = 974.49 kB 963.07 kB = 206.57 kB 204.27 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.js = 741.27 kB 731.88 kB = 160.41 kB 158.33 kB
oss-experimental/react-art/cjs/react-art.development.js = 857.41 kB 846.46 kB = 187.42 kB 185.13 kB
oss-experimental/react-reconciler/cjs/react-reconciler.production.js = 700.07 kB 690.68 kB = 152.99 kB 150.95 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.production.min.js = 184.86 kB 182.11 kB = 57.96 kB 57.18 kB
oss-experimental/react-dom/cjs/react-dom-server.edge.development.js = 444.87 kB 438.08 kB = 98.63 kB 97.13 kB
oss-experimental/react-dom/umd/react-dom-server.browser.development.js = 464.86 kB 457.75 kB = 99.50 kB 97.97 kB
oss-experimental/react-dom/cjs/react-dom-server.browser.development.js = 444.29 kB 437.49 kB = 98.49 kB 96.99 kB
oss-experimental/react-dom/cjs/react-dom-server.node.development.js = 442.72 kB 435.92 kB = 97.72 kB 96.21 kB
oss-experimental/react-art/cjs/react-art.production.js = 608.12 kB 598.73 kB = 136.11 kB 134.05 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.node.development.js = 437.27 kB 430.48 kB = 97.85 kB 96.34 kB
oss-experimental/react-dom/umd/react-dom-server-legacy.browser.development.js = 455.58 kB 448.48 kB = 98.33 kB 96.81 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.browser.development.js = 435.41 kB 428.62 kB = 97.39 kB 95.88 kB
oss-experimental/react-dom/cjs/react-dom-server.bun.development.js = 429.11 kB 422.32 kB = 95.43 kB 93.92 kB
oss-experimental/react-dom/umd/react-dom.profiling.min.js = 187.55 kB 184.08 kB = 58.37 kB 57.39 kB
oss-experimental/react-dom/cjs/react-dom.profiling.min.js = 188.28 kB 184.75 kB = 58.04 kB 57.05 kB
oss-experimental/react-dom/umd/react-dom.production.min.js = 178.52 kB 175.06 kB = 56.04 kB 55.08 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 178.81 kB 175.29 kB = 55.70 kB 54.69 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.min.js = 126.31 kB 123.32 kB = 38.84 kB 37.92 kB
oss-experimental/react-reconciler/cjs/react-reconciler.production.min.js = 117.26 kB 114.28 kB = 36.43 kB 35.53 kB
oss-experimental/react-art/umd/react-art.production.min.js = 139.05 kB 135.27 kB = 43.52 kB 42.35 kB
oss-experimental/react-server/cjs/react-server.development.js = 210.56 kB 203.74 kB = 49.00 kB 47.50 kB
oss-experimental/react-art/cjs/react-art.production.min.js = 101.84 kB 98.05 kB = 31.32 kB 30.21 kB
test_utils/ReactAllWarnings.js Deleted 67.02 kB 0.00 kB Deleted 16.42 kB 0.00 kB

Generated by 🚫 dangerJS against 5405fae

@@ -799,8 +799,7 @@ describe('ReactErrorBoundaries', () => {
expect(container.firstChild.textContent).toBe('Caught an error: Hello.');
});

// @gate !disableModulePatternComponents
// @gate !disableLegacyContext
// @gate !(disableModulePatternComponents && disableLegacyContext)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be an or not and, and i deMorgan'd it to make it clearer

@rickhanlonii
Copy link
Member Author

This was done separately in #27991 and #28615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants