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

[wip] remove prop types #28207

Closed
wants to merge 1 commit into from
Closed

[wip] remove prop types #28207

wants to merge 1 commit into from

Conversation

kassens
Copy link
Member

@kassens kassens commented Feb 2, 2024

[wip] remove prop types

@react-sizebot
Copy link

react-sizebot commented Feb 9, 2024

Comparing: dc31781...3b5be0a

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.83 kB 176.83 kB = 55.11 kB 55.11 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 178.83 kB 178.83 kB = 55.69 kB 55.69 kB
facebook-www/ReactDOM-prod.classic.js = 592.18 kB 592.18 kB = 104.43 kB 104.43 kB
facebook-www/ReactDOM-prod.modern.js = 575.46 kB 575.46 kB = 101.43 kB 101.43 kB
oss-experimental/react/umd/react.development.js = 128.60 kB 122.72 kB = 32.86 kB 31.56 kB
oss-experimental/react-art/Wedge.js = 4.94 kB 4.71 kB = 1.81 kB 1.75 kB
oss-stable-semver/react-art/Wedge.js = 4.94 kB 4.71 kB = 1.81 kB 1.75 kB
oss-stable/react-art/Wedge.js = 4.94 kB 4.71 kB = 1.81 kB 1.75 kB
oss-stable/react/umd/react.development.js = 125.96 kB 120.08 kB = 32.19 kB 30.88 kB
oss-stable-semver/react/umd/react.development.js = 125.93 kB 120.05 kB = 32.16 kB 30.85 kB
oss-experimental/react/cjs/react.development.js = 105.33 kB 99.69 kB = 28.11 kB 26.78 kB
oss-stable/react/cjs/react.development.js = 102.79 kB 97.15 kB = 27.45 kB 26.13 kB
oss-stable-semver/react/cjs/react.development.js = 102.77 kB 97.13 kB = 27.43 kB 26.10 kB
facebook-www/React-dev.classic.js = 142.99 kB 133.86 kB = 34.71 kB 32.85 kB
facebook-www/React-dev.modern.js = 141.77 kB 132.63 kB = 34.44 kB 32.58 kB
oss-experimental/react/cjs/react.react-server.development.js = 86.84 kB 81.20 kB = 23.95 kB 22.65 kB
oss-stable/react/cjs/react.react-server.development.js = 80.41 kB 74.77 kB = 22.10 kB 20.80 kB
oss-stable-semver/react/cjs/react.react-server.development.js = 80.38 kB 74.75 kB = 22.07 kB 20.77 kB
facebook-react-native/react/cjs/React-dev.js = 128.69 kB 119.55 kB = 31.13 kB 29.28 kB
facebook-www/ReactServer-dev.modern.js = 111.48 kB 102.34 kB = 26.97 kB 25.14 kB
oss-experimental/react-art/Circle.js = 1.14 kB 1.04 kB = 0.60 kB 0.56 kB
oss-stable-semver/react-art/Circle.js = 1.14 kB 1.04 kB = 0.60 kB 0.56 kB
oss-stable/react-art/Circle.js = 1.14 kB 1.04 kB = 0.60 kB 0.56 kB
oss-stable-semver/react/cjs/react-jsx-runtime.react-server.development.js = 46.90 kB 42.21 kB = 13.68 kB 12.53 kB
oss-stable/react/cjs/react-jsx-runtime.react-server.development.js = 46.90 kB 42.21 kB = 13.68 kB 12.53 kB
oss-experimental/react/cjs/react-jsx-runtime.react-server.development.js = 46.87 kB 42.18 kB = 13.67 kB 12.52 kB
oss-stable-semver/react/cjs/react-jsx-runtime.development.js = 46.81 kB 42.12 kB = 13.64 kB 12.49 kB
oss-stable/react/cjs/react-jsx-runtime.development.js = 46.81 kB 42.12 kB = 13.64 kB 12.49 kB
oss-experimental/react/cjs/react-jsx-runtime.development.js = 46.79 kB 42.10 kB = 13.63 kB 12.49 kB
oss-stable-semver/react/cjs/react-jsx-dev-runtime.development.js = 46.22 kB 41.52 kB = 13.47 kB 12.32 kB
oss-stable/react/cjs/react-jsx-dev-runtime.development.js = 46.22 kB 41.52 kB = 13.47 kB 12.32 kB
oss-experimental/react/cjs/react-jsx-dev-runtime.development.js = 46.19 kB 41.50 kB = 13.46 kB 12.32 kB
oss-experimental/react-art/Rectangle.js = 3.12 kB 2.79 kB = 1.07 kB 1.00 kB
oss-stable-semver/react-art/Rectangle.js = 3.12 kB 2.79 kB = 1.07 kB 1.00 kB
oss-stable/react-art/Rectangle.js = 3.12 kB 2.79 kB = 1.07 kB 1.00 kB
facebook-www/JSXDEVRuntime-dev.classic.js = 54.17 kB 48.29 kB = 14.00 kB 12.77 kB
facebook-www/JSXDEVRuntime-dev.modern.js = 54.17 kB 48.29 kB = 14.00 kB 12.77 kB
facebook-react-native/react/cjs/JSXRuntime-dev.js = 41.09 kB 35.21 kB = 10.79 kB 9.54 kB
facebook-react-native/react/cjs/JSXDEVRuntime-dev.js = 40.43 kB 34.55 kB = 10.60 kB 9.36 kB
test_utils/ReactAllWarnings.js Deleted 66.26 kB 0.00 kB Deleted 16.32 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,376.50 kB 1,372.39 kB = 304.21 kB 303.56 kB
facebook-www/ReactDOMTesting-dev.classic.js = 1,692.48 kB 1,687.42 kB = 336.26 kB 335.52 kB
oss-experimental/react-dom/umd/react-dom.development.js = 1,423.93 kB 1,419.63 kB = 302.98 kB 302.25 kB
oss-experimental/react-dom/cjs/react-dom.development.js = 1,358.64 kB 1,354.54 kB = 299.92 kB 299.28 kB
facebook-www/ReactDOM-dev.classic.js = 1,670.90 kB 1,665.84 kB = 331.70 kB 330.96 kB
oss-stable/react-dom/umd/react-dom.development.js = 1,407.20 kB 1,402.90 kB = 299.79 kB 299.05 kB
oss-stable-semver/react-dom/umd/react-dom.development.js = 1,407.17 kB 1,402.87 kB = 299.76 kB 299.02 kB
oss-stable/react-dom/cjs/react-dom.development.js = 1,342.69 kB 1,338.59 kB = 296.76 kB 296.11 kB
oss-stable-semver/react-dom/cjs/react-dom.development.js = 1,342.67 kB 1,338.56 kB = 296.74 kB 296.08 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js = 962.25 kB 958.14 kB = 206.69 kB 206.06 kB
oss-stable/react-reconciler/cjs/react-reconciler.development.js = 950.06 kB 945.96 kB = 204.32 kB 203.66 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.development.js = 950.04 kB 945.93 kB = 204.29 kB 203.63 kB
oss-experimental/react-art/umd/react-art.development.js = 979.41 kB 975.11 kB = 207.35 kB 206.71 kB
oss-stable/react-art/umd/react-art.development.js = 966.62 kB 962.32 kB = 204.89 kB 204.24 kB
oss-stable-semver/react-art/umd/react-art.development.js = 966.59 kB 962.29 kB = 204.86 kB 204.22 kB
facebook-www/ReactART-dev.classic.js = 1,068.45 kB 1,063.39 kB = 209.73 kB 208.95 kB
oss-experimental/react-art/cjs/react-art.development.js = 862.05 kB 857.95 kB = 188.13 kB 187.50 kB
oss-stable/react-art/cjs/react-art.development.js = 849.87 kB 845.76 kB = 185.75 kB 185.09 kB
oss-stable-semver/react-art/cjs/react-art.development.js = 849.84 kB 845.74 kB = 185.72 kB 185.07 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js = 831.63 kB 827.53 kB = 182.24 kB 181.58 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.development.js = 870.80 kB 866.50 kB = 184.15 kB 183.49 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js = 830.37 kB 826.27 kB = 181.97 kB 181.32 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js = 830.35 kB 826.24 kB = 181.94 kB 181.29 kB
oss-stable/react-test-renderer/umd/react-test-renderer.development.js = 869.50 kB 865.20 kB = 183.91 kB 183.25 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.development.js = 869.47 kB 865.17 kB = 183.88 kB 183.23 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js = 1,023.05 kB 1,017.98 kB = 206.09 kB 205.31 kB
react-native/implementations/ReactFabric-dev.fb.js = 1,008.44 kB 1,003.38 kB = 202.25 kB 201.43 kB
react-native/implementations/ReactNativeRenderer-dev.js = 1,002.94 kB 997.88 kB = 202.82 kB 202.08 kB
react-native/implementations/ReactFabric-dev.js = 986.66 kB 981.59 kB = 198.55 kB 197.80 kB
facebook-www/ReactTestRenderer-dev.classic.js = 952.39 kB 947.32 kB = 189.92 kB 189.14 kB
facebook-www/ReactTestRenderer-dev.modern.js = 952.39 kB 947.32 kB = 189.92 kB 189.14 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js = 942.44 kB 937.38 kB = 188.25 kB 187.48 kB
facebook-www/ReactDOMTesting-dev.modern.js = 1,660.84 kB 1,650.39 kB = 330.58 kB 328.56 kB
facebook-www/ReactDOM-dev.modern.js = 1,639.31 kB 1,628.87 kB = 326.01 kB 324.02 kB
facebook-www/ReactART-dev.modern.js = 1,055.85 kB 1,045.41 kB = 207.32 kB 205.18 kB
oss-experimental/react/umd/react.development.js = 128.60 kB 122.72 kB = 32.86 kB 31.56 kB
oss-experimental/react-art/Wedge.js = 4.94 kB 4.71 kB = 1.81 kB 1.75 kB
oss-stable-semver/react-art/Wedge.js = 4.94 kB 4.71 kB = 1.81 kB 1.75 kB
oss-stable/react-art/Wedge.js = 4.94 kB 4.71 kB = 1.81 kB 1.75 kB
oss-stable/react/umd/react.development.js = 125.96 kB 120.08 kB = 32.19 kB 30.88 kB
oss-stable-semver/react/umd/react.development.js = 125.93 kB 120.05 kB = 32.16 kB 30.85 kB
oss-experimental/react/cjs/react.development.js = 105.33 kB 99.69 kB = 28.11 kB 26.78 kB
oss-stable/react/cjs/react.development.js = 102.79 kB 97.15 kB = 27.45 kB 26.13 kB
oss-stable-semver/react/cjs/react.development.js = 102.77 kB 97.13 kB = 27.43 kB 26.10 kB
facebook-www/React-dev.classic.js = 142.99 kB 133.86 kB = 34.71 kB 32.85 kB
facebook-www/React-dev.modern.js = 141.77 kB 132.63 kB = 34.44 kB 32.58 kB
oss-experimental/react/cjs/react.react-server.development.js = 86.84 kB 81.20 kB = 23.95 kB 22.65 kB
oss-stable/react/cjs/react.react-server.development.js = 80.41 kB 74.77 kB = 22.10 kB 20.80 kB
oss-stable-semver/react/cjs/react.react-server.development.js = 80.38 kB 74.75 kB = 22.07 kB 20.77 kB
facebook-react-native/react/cjs/React-dev.js = 128.69 kB 119.55 kB = 31.13 kB 29.28 kB
facebook-www/ReactServer-dev.modern.js = 111.48 kB 102.34 kB = 26.97 kB 25.14 kB
oss-experimental/react-art/Circle.js = 1.14 kB 1.04 kB = 0.60 kB 0.56 kB
oss-stable-semver/react-art/Circle.js = 1.14 kB 1.04 kB = 0.60 kB 0.56 kB
oss-stable/react-art/Circle.js = 1.14 kB 1.04 kB = 0.60 kB 0.56 kB
oss-stable-semver/react/cjs/react-jsx-runtime.react-server.development.js = 46.90 kB 42.21 kB = 13.68 kB 12.53 kB
oss-stable/react/cjs/react-jsx-runtime.react-server.development.js = 46.90 kB 42.21 kB = 13.68 kB 12.53 kB
oss-experimental/react/cjs/react-jsx-runtime.react-server.development.js = 46.87 kB 42.18 kB = 13.67 kB 12.52 kB
oss-stable-semver/react/cjs/react-jsx-runtime.development.js = 46.81 kB 42.12 kB = 13.64 kB 12.49 kB
oss-stable/react/cjs/react-jsx-runtime.development.js = 46.81 kB 42.12 kB = 13.64 kB 12.49 kB
oss-experimental/react/cjs/react-jsx-runtime.development.js = 46.79 kB 42.10 kB = 13.63 kB 12.49 kB
oss-stable-semver/react/cjs/react-jsx-dev-runtime.development.js = 46.22 kB 41.52 kB = 13.47 kB 12.32 kB
oss-stable/react/cjs/react-jsx-dev-runtime.development.js = 46.22 kB 41.52 kB = 13.47 kB 12.32 kB
oss-experimental/react/cjs/react-jsx-dev-runtime.development.js = 46.19 kB 41.50 kB = 13.46 kB 12.32 kB
oss-experimental/react-art/Rectangle.js = 3.12 kB 2.79 kB = 1.07 kB 1.00 kB
oss-stable-semver/react-art/Rectangle.js = 3.12 kB 2.79 kB = 1.07 kB 1.00 kB
oss-stable/react-art/Rectangle.js = 3.12 kB 2.79 kB = 1.07 kB 1.00 kB
facebook-www/JSXDEVRuntime-dev.classic.js = 54.17 kB 48.29 kB = 14.00 kB 12.77 kB
facebook-www/JSXDEVRuntime-dev.modern.js = 54.17 kB 48.29 kB = 14.00 kB 12.77 kB
facebook-react-native/react/cjs/JSXRuntime-dev.js = 41.09 kB 35.21 kB = 10.79 kB 9.54 kB
facebook-react-native/react/cjs/JSXDEVRuntime-dev.js = 40.43 kB 34.55 kB = 10.60 kB 9.36 kB
test_utils/ReactAllWarnings.js Deleted 66.26 kB 0.00 kB Deleted 16.32 kB 0.00 kB

Generated by 🚫 dangerJS against 3b5be0a

@gaearon gaearon force-pushed the pr28207 branch 3 times, most recently from 44cae7d to 58d2bd8 Compare February 14, 2024 15:45
gaearon added a commit that referenced this pull request Feb 14, 2024
Part of #28207, this is easy to
land in isolation.

The approach I'm taking is slightly different — instead of leaving
validation on for legacy context, I disable the validation (it's
DEV-only) and leave just the parts that drive the runtime logic. I.e.
`contexTypes` and `childContextTypes` *values* are now ignored, the keys
are used just like before.
github-actions bot pushed a commit that referenced this pull request Feb 14, 2024
Part of #28207, this is easy to
land in isolation.

The approach I'm taking is slightly different — instead of leaving
validation on for legacy context, I disable the validation (it's
DEV-only) and leave just the parts that drive the runtime logic. I.e.
`contexTypes` and `childContextTypes` *values* are now ignored, the keys
are used just like before.

DiffTrain build for [64e755d](64e755d)
gaearon added a commit that referenced this pull request Feb 14, 2024
In preparation for #28207.

These tests aren't actually testing propTypes, they just use them to
verify we can display a meaningful component name. We've mostly moved
away from warnings that display component names directly in favor of
component stacks. So let's just replace these with tests asserting the
component names show up in stacks.
gaearon added a commit that referenced this pull request Feb 14, 2024
Part of #28207, this is easy to
land in isolation.

The approach I'm taking is slightly different — instead of leaving
validation on for legacy context, I disable the validation (it's
DEV-only) and leave just the parts that drive the runtime logic. I.e.
`contexTypes` and `childContextTypes` *values* are now ignored, the keys
are used just like before.
gaearon added a commit that referenced this pull request Feb 14, 2024
In preparation for #28207.

These tests aren't actually testing propTypes, they just use them to
verify we can display a meaningful component name. We've mostly moved
away from warnings that display component names directly in favor of
component stacks. So let's just replace these with tests asserting the
component names show up in stacks.
@gaearon
Copy link
Collaborator

gaearon commented Feb 14, 2024

I think #28328 should cover this

@kassens kassens closed this Feb 16, 2024
@kassens kassens deleted the pr28207 branch February 16, 2024 04:35
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
Part of facebook#28207, this is easy to
land in isolation.

The approach I'm taking is slightly different — instead of leaving
validation on for legacy context, I disable the validation (it's
DEV-only) and leave just the parts that drive the runtime logic. I.e.
`contexTypes` and `childContextTypes` *values* are now ignored, the keys
are used just like before.
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
In preparation for facebook#28207.

These tests aren't actually testing propTypes, they just use them to
verify we can display a meaningful component name. We've mostly moved
away from warnings that display component names directly in favor of
component stacks. So let's just replace these with tests asserting the
component names show up in stacks.
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.

4 participants