GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [wip] remove prop types by kassens · Pull Request #28207 · react/react

Conversation

@kassens

@kassens kassens commented Feb 2, 2024

Copy link
Copy Markdown
Contributor

[wip] remove prop types

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 2, 2024
@rickhanlonii rickhanlonii mentioned this pull request Feb 2, 2024
Convert ReactJSXElementValidator to createRoot #28209
Merged
@kassens
kassens force-pushed the pr28207 branch from 7b85bc9 to 7b3cb2a Compare February 2, 2024 19:00
@kassens
[wip] remove prop types
58d2bd8
@kassens
kassens force-pushed the pr28207 branch from 7b3cb2a to 58d2bd8 Compare February 9, 2024 18:47
@react-sizebot

react-sizebot commented Feb 9, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gaearon
gaearon force-pushed the pr28207 branch 3 times, most recently from 44cae7d to 58d2bd8 Compare February 14, 2024 15:45
@gaearon gaearon mentioned this pull request Feb 14, 2024
Remove propTypes checks for legacy context #28324
Merged
gaearon added a commit that referenced this pull request Feb 14, 2024
@gaearon
Remove propTypes checks for legacy context (#28324)
64e755d
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
@gaearon
Remove propTypes checks for legacy context (#28324)
3322b72
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 gaearon mentioned this pull request Feb 14, 2024
Rewrite tests that depend on propTypes warnings #28325
Merged
gaearon added a commit that referenced this pull request Feb 14, 2024
@gaearon
Rewrite tests that depend on propTypes warnings (#28325)
adadb81
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
@gaearon
Remove propTypes checks for legacy context (#28324)
81ec618
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
@gaearon
Rewrite tests that depend on propTypes warnings (#28325)
9e08b12
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

gaearon commented Feb 14, 2024

Copy link
Copy Markdown
Collaborator

I think #28328 should cover this

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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
@gaearon @AndyPengc12
Remove propTypes checks for legacy context (react#28324)
3184f9d
Part of react#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
@gaearon @AndyPengc12
Rewrite tests that depend on propTypes warnings (react#28325)
e8688ed
In preparation for react#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.
Akshato07 pushed a commit to Akshato07/-Luffy that referenced this pull request Feb 20, 2025
@gaearon
Remove propTypes checks for legacy context (#28324)
3b09625
Part of react/react#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 commit react/react@64e755d.
Akshato07 pushed a commit to Akshato07/-Luffy that referenced this pull request Feb 20, 2025
@gaearon
Rewrite tests that depend on propTypes warnings (#28325)
01f540a
In preparation for react/react#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.

DiffTrain build for commit react/react@adadb81.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@gaearon
Remove propTypes checks for legacy context (react#28324)
710a6c5
Part of react#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.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@gaearon
Rewrite tests that depend on propTypes warnings (react#28325)
b090e61
In preparation for react#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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@kassens @react-sizebot @gaearon @facebook-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.