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

Fix moveBefore feature detection #32087

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

bramus
Copy link
Contributor

@bramus bramus commented Jan 16, 2025

moveBefore was moved to the ParentNode mixin as per whatwg/dom#1307 (comment) (and was committed in whatwg/dom@3f3e94c)

As a result, its existence can no longer be checked on Node.prototype but must be checked in Element.prototype

`moveBefore` was moved to the `ParentNode` mixin as per whatwg/dom#1307 (comment) (and was committed in whatwg/dom@3f3e94c)

As a result, its existence can no longer be checked on `Node.prototype` but must be checked in `Element.prototype`.
@facebook-github-bot
Copy link

Hi @bramus!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@react-sizebot
Copy link

Comparing: 5b51a2b...28622b8

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.js = 6.68 kB 6.68 kB +0.11% 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 514.24 kB 514.24 kB = 91.74 kB 91.74 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.05% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 556.18 kB 556.18 kB = 98.72 kB 98.72 kB
facebook-www/ReactDOM-prod.classic.js = 595.79 kB 595.79 kB = 104.85 kB 104.85 kB
facebook-www/ReactDOM-prod.modern.js = 586.21 kB 586.21 kB = 103.30 kB 103.30 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-debug-tools/cjs/react-debug-tools.production.js = 28.15 kB 27.79 kB = 5.56 kB 5.54 kB
oss-stable-semver/react-debug-tools/cjs/react-debug-tools.production.js = 28.15 kB 27.79 kB = 5.56 kB 5.54 kB
oss-stable/react-debug-tools/cjs/react-debug-tools.production.js = 28.15 kB 27.79 kB = 5.56 kB 5.54 kB
oss-experimental/react-debug-tools/cjs/react-debug-tools.development.js = 31.60 kB 31.18 kB = 5.69 kB 5.67 kB
oss-stable-semver/react-debug-tools/cjs/react-debug-tools.development.js = 31.60 kB 31.18 kB = 5.69 kB 5.67 kB
oss-stable/react-debug-tools/cjs/react-debug-tools.development.js = 31.60 kB 31.18 kB = 5.69 kB 5.67 kB

Generated by 🚫 dangerJS against 52469c3

@gaearon gaearon requested a review from sebmarkbage January 16, 2025 20:27
@sebmarkbage sebmarkbage merged commit 313c8c5 into facebook:main Jan 17, 2025
188 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 17, 2025
`moveBefore` was moved to the `ParentNode` mixin as per
whatwg/dom#1307 (comment) _(and was
committed in
whatwg/dom@3f3e94c5beda922962dacaeb606087f57bd7f7be)_

As a result, its existence can no longer be checked on `Node.prototype`
but must be checked in `Element.prototype`

DiffTrain build for [313c8c5](313c8c5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants