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

Remove excess validation #27223

Merged
merged 2 commits into from
Aug 14, 2023
Merged

Remove excess validation #27223

merged 2 commits into from
Aug 14, 2023

Conversation

gnoff
Copy link
Collaborator

@gnoff gnoff commented Aug 13, 2023

stacked on #27222

When I initially developed Float I was trying to be extremely clever in how to explain when there are mismatching Resource instances. I still think that we should do some kind of validation here but I want to implement something much simpler. In practice there are not many cases where you would accidentally create the same resource twice but with differing props. Since I am going to land preloadModule and preinitModule soon and I want to avoid adding to the overly complex dev validation there I am going to remove it now and add something later that is simplified.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Aug 13, 2023
@gnoff gnoff mentioned this pull request Aug 13, 2023
@react-sizebot
Copy link

Comparing: 1a001da...0e08c06

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 = 164.32 kB 164.32 kB = 51.76 kB 51.76 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 171.74 kB 171.74 kB = 53.97 kB 53.97 kB
facebook-www/ReactDOM-prod.classic.js = 567.12 kB 567.12 kB = 100.09 kB 100.09 kB
facebook-www/ReactDOM-prod.modern.js = 550.92 kB 550.92 kB = 97.25 kB 97.25 kB
oss-experimental/react-dom/umd/react-dom-server-legacy.browser.development.js = 391.56 kB 364.69 kB = 83.91 kB 79.72 kB
oss-experimental/react-dom/umd/react-dom-server.browser.development.js = 390.71 kB 363.85 kB = 84.02 kB 79.84 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.node.development.js = 375.74 kB 349.76 kB = 83.50 kB 79.31 kB
oss-experimental/react-dom/cjs/react-dom-server.node.development.js = 374.57 kB 348.59 kB = 83.17 kB 79.00 kB
oss-experimental/react-dom/cjs/react-dom-static.node.development.js = 374.54 kB 348.55 kB = 83.26 kB 79.09 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.browser.development.js = 373.92 kB 347.94 kB = 83.04 kB 78.85 kB
oss-experimental/react-dom/cjs/react-dom-server.edge.development.js = 373.50 kB 347.52 kB = 83.24 kB 79.07 kB
oss-experimental/react-dom/cjs/react-dom-server.browser.development.js = 373.09 kB 347.11 kB = 83.12 kB 78.95 kB
oss-experimental/react-dom/cjs/react-dom-static.edge.development.js = 372.81 kB 346.83 kB = 83.06 kB 78.89 kB
oss-experimental/react-dom/cjs/react-dom-static.browser.development.js = 372.40 kB 346.42 kB = 82.94 kB 78.77 kB
oss-experimental/react-dom/cjs/react-dom-server.bun.development.js = 370.90 kB 344.92 kB = 82.44 kB 78.27 kB
oss-stable/react-dom/umd/react-dom-server-legacy.browser.development.js = 381.45 kB 354.59 kB = 81.77 kB 77.53 kB
oss-stable-semver/react-dom/umd/react-dom-server-legacy.browser.development.js = 381.43 kB 354.56 kB = 81.74 kB 77.50 kB
oss-stable/react-dom/umd/react-dom-server.browser.development.js = 381.19 kB 354.32 kB = 82.07 kB 77.89 kB
oss-stable-semver/react-dom/umd/react-dom-server.browser.development.js = 381.16 kB 354.30 kB = 82.05 kB 77.86 kB
oss-stable/react-dom/cjs/react-dom-server-legacy.node.development.js = 366.05 kB 340.07 kB = 81.38 kB 77.10 kB
oss-stable-semver/react-dom/cjs/react-dom-server-legacy.node.development.js = 366.02 kB 340.04 kB = 81.35 kB 77.07 kB
oss-stable/react-dom/cjs/react-dom-server.node.development.js = 365.46 kB 339.48 kB = 81.24 kB 77.02 kB
oss-stable-semver/react-dom/cjs/react-dom-server.node.development.js = 365.44 kB 339.46 kB = 81.23 kB 76.99 kB
oss-stable/react-dom/cjs/react-dom-server.edge.development.js = 364.39 kB 338.41 kB = 81.33 kB 77.10 kB
oss-stable-semver/react-dom/cjs/react-dom-server.edge.development.js = 364.37 kB 338.39 kB = 81.31 kB 77.07 kB
oss-stable/react-dom/cjs/react-dom-server-legacy.browser.development.js = 364.23 kB 338.25 kB = 80.92 kB 76.64 kB
oss-stable-semver/react-dom/cjs/react-dom-server-legacy.browser.development.js = 364.21 kB 338.23 kB = 80.89 kB 76.62 kB
oss-stable/react-dom/cjs/react-dom-server.browser.development.js = 363.98 kB 338.00 kB = 81.21 kB 76.98 kB
oss-stable-semver/react-dom/cjs/react-dom-server.browser.development.js = 363.96 kB 337.98 kB = 81.19 kB 76.95 kB
oss-stable/react-dom/cjs/react-dom-server.bun.development.js = 361.21 kB 335.23 kB = 80.30 kB 76.08 kB
oss-stable-semver/react-dom/cjs/react-dom-server.bun.development.js = 361.18 kB 335.20 kB = 80.28 kB 76.05 kB
facebook-www/ReactDOMServer-dev.classic.js = 383.14 kB 353.47 kB = 83.61 kB 79.01 kB
facebook-www/ReactDOMServer-dev.modern.js = 375.71 kB 346.04 kB = 81.98 kB 77.37 kB
facebook-www/ReactDOMServerStreaming-dev.modern.js = 370.54 kB 340.87 kB = 80.71 kB 76.13 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/umd/react-dom-server-legacy.browser.development.js = 391.56 kB 364.69 kB = 83.91 kB 79.72 kB
oss-experimental/react-dom/umd/react-dom-server.browser.development.js = 390.71 kB 363.85 kB = 84.02 kB 79.84 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.node.development.js = 375.74 kB 349.76 kB = 83.50 kB 79.31 kB
oss-experimental/react-dom/cjs/react-dom-server.node.development.js = 374.57 kB 348.59 kB = 83.17 kB 79.00 kB
oss-experimental/react-dom/cjs/react-dom-static.node.development.js = 374.54 kB 348.55 kB = 83.26 kB 79.09 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.browser.development.js = 373.92 kB 347.94 kB = 83.04 kB 78.85 kB
oss-experimental/react-dom/cjs/react-dom-server.edge.development.js = 373.50 kB 347.52 kB = 83.24 kB 79.07 kB
oss-experimental/react-dom/cjs/react-dom-server.browser.development.js = 373.09 kB 347.11 kB = 83.12 kB 78.95 kB
oss-experimental/react-dom/cjs/react-dom-static.edge.development.js = 372.81 kB 346.83 kB = 83.06 kB 78.89 kB
oss-experimental/react-dom/cjs/react-dom-static.browser.development.js = 372.40 kB 346.42 kB = 82.94 kB 78.77 kB
oss-experimental/react-dom/cjs/react-dom-server.bun.development.js = 370.90 kB 344.92 kB = 82.44 kB 78.27 kB
oss-stable/react-dom/umd/react-dom-server-legacy.browser.development.js = 381.45 kB 354.59 kB = 81.77 kB 77.53 kB
oss-stable-semver/react-dom/umd/react-dom-server-legacy.browser.development.js = 381.43 kB 354.56 kB = 81.74 kB 77.50 kB
oss-stable/react-dom/umd/react-dom-server.browser.development.js = 381.19 kB 354.32 kB = 82.07 kB 77.89 kB
oss-stable-semver/react-dom/umd/react-dom-server.browser.development.js = 381.16 kB 354.30 kB = 82.05 kB 77.86 kB
oss-stable/react-dom/cjs/react-dom-server-legacy.node.development.js = 366.05 kB 340.07 kB = 81.38 kB 77.10 kB
oss-stable-semver/react-dom/cjs/react-dom-server-legacy.node.development.js = 366.02 kB 340.04 kB = 81.35 kB 77.07 kB
oss-stable/react-dom/cjs/react-dom-server.node.development.js = 365.46 kB 339.48 kB = 81.24 kB 77.02 kB
oss-stable-semver/react-dom/cjs/react-dom-server.node.development.js = 365.44 kB 339.46 kB = 81.23 kB 76.99 kB
oss-stable/react-dom/cjs/react-dom-server.edge.development.js = 364.39 kB 338.41 kB = 81.33 kB 77.10 kB
oss-stable-semver/react-dom/cjs/react-dom-server.edge.development.js = 364.37 kB 338.39 kB = 81.31 kB 77.07 kB
oss-stable/react-dom/cjs/react-dom-server-legacy.browser.development.js = 364.23 kB 338.25 kB = 80.92 kB 76.64 kB
oss-stable-semver/react-dom/cjs/react-dom-server-legacy.browser.development.js = 364.21 kB 338.23 kB = 80.89 kB 76.62 kB
oss-stable/react-dom/cjs/react-dom-server.browser.development.js = 363.98 kB 338.00 kB = 81.21 kB 76.98 kB
oss-stable-semver/react-dom/cjs/react-dom-server.browser.development.js = 363.96 kB 337.98 kB = 81.19 kB 76.95 kB
oss-stable/react-dom/cjs/react-dom-server.bun.development.js = 361.21 kB 335.23 kB = 80.30 kB 76.08 kB
oss-stable-semver/react-dom/cjs/react-dom-server.bun.development.js = 361.18 kB 335.20 kB = 80.28 kB 76.05 kB
facebook-www/ReactDOMServer-dev.classic.js = 383.14 kB 353.47 kB = 83.61 kB 79.01 kB
facebook-www/ReactDOMServer-dev.modern.js = 375.71 kB 346.04 kB = 81.98 kB 77.37 kB
facebook-www/ReactDOMServerStreaming-dev.modern.js = 370.54 kB 340.87 kB = 80.71 kB 76.13 kB

Generated by 🚫 dangerJS against 0e08c06

@gnoff gnoff merged commit 5ea1397 into facebook:main Aug 14, 2023
@gnoff gnoff deleted the remove-excess-validation branch August 14, 2023 17:09
gnoff added a commit that referenced this pull request Aug 14, 2023
Stacked on #27223

When a script resource adopts certain props from a preload for that
resource the integrity prop was incorrectly getting assinged to the
referrerPolicy prop instead. This is now fixed.
github-actions bot pushed a commit that referenced this pull request Aug 14, 2023
stacked on #27222

When I initially developed Float I was trying to be extremely clever in
how to explain when there are mismatching Resource instances. I still
think that we should do some kind of validation here but I want to
implement something much simpler. In practice there are not many cases
where you would accidentally create the same resource twice but with
differing props. Since I am going to land `preloadModule` and
`preinitModule` soon and I want to avoid adding to the overly complex
dev validation there I am going to remove it now and add something later
that is simplified.

DiffTrain build for [5ea1397](5ea1397)
github-actions bot pushed a commit that referenced this pull request Aug 14, 2023
Stacked on #27223

When a script resource adopts certain props from a preload for that
resource the integrity prop was incorrectly getting assinged to the
referrerPolicy prop instead. This is now fixed.

DiffTrain build for [0fb5b61](0fb5b61)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
stacked on facebook#27222 

When I initially developed Float I was trying to be extremely clever in
how to explain when there are mismatching Resource instances. I still
think that we should do some kind of validation here but I want to
implement something much simpler. In practice there are not many cases
where you would accidentally create the same resource twice but with
differing props. Since I am going to land `preloadModule` and
`preinitModule` soon and I want to avoid adding to the overly complex
dev validation there I am going to remove it now and add something later
that is simplified.
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
Stacked on facebook#27223

When a script resource adopts certain props from a preload for that
resource the integrity prop was incorrectly getting assinged to the
referrerPolicy prop instead. This is now fixed.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
stacked on #27222

When I initially developed Float I was trying to be extremely clever in
how to explain when there are mismatching Resource instances. I still
think that we should do some kind of validation here but I want to
implement something much simpler. In practice there are not many cases
where you would accidentally create the same resource twice but with
differing props. Since I am going to land `preloadModule` and
`preinitModule` soon and I want to avoid adding to the overly complex
dev validation there I am going to remove it now and add something later
that is simplified.

DiffTrain build for commit 5ea1397.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
Stacked on #27223

When a script resource adopts certain props from a preload for that
resource the integrity prop was incorrectly getting assinged to the
referrerPolicy prop instead. This is now fixed.

DiffTrain build for commit 0fb5b61.
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