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

[Codemod] Update copyright header to MetaHeader #25314

Closed
wants to merge 1 commit into from

Conversation

Drizzlecrj
Copy link

Summary

Follow the Meta internal 'File Headers' OSS wiki to update all files's header from

Copyright (c) Facebook, Inc. and its affiliates.

or

Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.

to

Copyright (c) Meta Platforms, Inc. and affiliates.

This is to help align all the OSS project to have a consistent header across Meta.

Done via:

rg --files | xargs sed -i 's#Copyright (c) Facebook, Inc. and its affiliates.#Copyright (c) Meta Platforms, Inc. and affiliates.#g'

plus modify one file 'packages/react-native-renderer/src/tests/ReactFabricHostComponent-test.internal.js' file specifically because only this one uses 'All Rights Reserved.'.

How did you test this change?

  • Run auto test
yarn test
Test Suites: 2 skipped, 290 passed, 290 of 292 total
Tests:       90 skipped, 7734 passed, 7824 total
Snapshots:   163 passed, 163 total
Time:        113.19 s
Ran all test suites.
Done in 122.09s.

yarn flow dom
  • Sanity check the completeness
rg -w 'Facebook' .

Follow the Meta internal 'File Headers' OSS wiki.
@facebook-github-bot
Copy link

Hi @Drizzlecrj!

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 cla@fb.com. Thanks!

@sizebot
Copy link

sizebot commented Sep 22, 2022

Comparing: d1bb1c5...0f7f3c3

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 = 135.09 kB 135.09 kB = 43.34 kB 43.34 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 142.55 kB 142.56 kB = 45.53 kB 45.53 kB
facebook-www/ReactDOM-prod.classic.js = 490.02 kB 490.02 kB = 87.22 kB 87.22 kB
facebook-www/ReactDOM-prod.modern.js = 475.31 kB 475.31 kB = 85.04 kB 85.04 kB
facebook-www/ReactDOMForked-prod.classic.js = 490.02 kB 490.02 kB = 87.22 kB 87.22 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/shims/findDOMNode.js +0.66% 0.30 kB 0.30 kB = 0.23 kB 0.23 kB
facebook-www/shims/renderSubtreeIntoContainer_DO_NOT_USE.js +0.65% 0.31 kB 0.31 kB = 0.23 kB 0.23 kB
oss-experimental/react/cjs/react-jsx-dev-runtime.profiling.min.js +0.58% 0.34 kB 0.34 kB +0.39% 0.25 kB 0.26 kB
oss-stable-semver/react/cjs/react-jsx-dev-runtime.profiling.min.js +0.58% 0.34 kB 0.34 kB +0.39% 0.25 kB 0.26 kB
oss-stable/react/cjs/react-jsx-dev-runtime.profiling.min.js +0.58% 0.34 kB 0.34 kB +0.39% 0.25 kB 0.26 kB
oss-experimental/react/cjs/react-jsx-dev-runtime.production.min.js +0.58% 0.34 kB 0.35 kB = 0.26 kB 0.26 kB
oss-stable-semver/react/cjs/react-jsx-dev-runtime.production.min.js +0.58% 0.34 kB 0.35 kB = 0.26 kB 0.26 kB
oss-stable/react/cjs/react-jsx-dev-runtime.production.min.js +0.58% 0.34 kB 0.35 kB = 0.26 kB 0.26 kB
oss-experimental/use-sync-external-store/cjs/use-sync-external-store.production.min.js +0.58% 0.34 kB 0.35 kB +0.81% 0.25 kB 0.25 kB
oss-stable-semver/use-sync-external-store/cjs/use-sync-external-store.production.min.js +0.58% 0.34 kB 0.35 kB +0.81% 0.25 kB 0.25 kB
oss-stable/use-sync-external-store/cjs/use-sync-external-store.production.min.js +0.58% 0.34 kB 0.35 kB +0.81% 0.25 kB 0.25 kB
react-native/shims/ReactFeatureFlags.js +0.58% 0.35 kB 0.35 kB = 0.25 kB 0.25 kB
oss-experimental/react-fs/cjs/react-fs.browser.production.min.server.js +0.57% 0.35 kB 0.35 kB +0.40% 0.25 kB 0.25 kB
oss-experimental/react-pg/cjs/react-pg.browser.production.min.server.js +0.57% 0.35 kB 0.35 kB +0.40% 0.25 kB 0.25 kB
oss-stable-semver/react-fs/cjs/react-fs.browser.production.min.server.js +0.57% 0.35 kB 0.35 kB +0.40% 0.25 kB 0.25 kB
oss-stable-semver/react-pg/cjs/react-pg.browser.production.min.server.js +0.57% 0.35 kB 0.35 kB +0.40% 0.25 kB 0.25 kB
oss-stable/react-fs/cjs/react-fs.browser.production.min.server.js +0.57% 0.35 kB 0.35 kB +0.40% 0.25 kB 0.25 kB
oss-stable/react-pg/cjs/react-pg.browser.production.min.server.js +0.57% 0.35 kB 0.35 kB +0.40% 0.25 kB 0.25 kB
oss-stable-semver/react/cjs/react.shared-subset.production.min.js +0.57% 0.35 kB 0.35 kB +0.39% 0.26 kB 0.26 kB
oss-stable/react/cjs/react.shared-subset.production.min.js +0.57% 0.35 kB 0.35 kB +0.39% 0.26 kB 0.26 kB
oss-experimental/react-refresh/cjs/react-refresh-runtime.production.min.js +0.57% 0.35 kB 0.36 kB +0.40% 0.25 kB 0.25 kB
oss-stable-semver/react-refresh/cjs/react-refresh-runtime.production.min.js +0.57% 0.35 kB 0.36 kB +0.40% 0.25 kB 0.25 kB
oss-stable/react-refresh/cjs/react-refresh-runtime.production.min.js +0.57% 0.35 kB 0.36 kB +0.40% 0.25 kB 0.25 kB
facebook-react-native/react/cjs/JSXDEVRuntime-prod.js +0.52% 0.38 kB 0.38 kB +0.73% 0.27 kB 0.28 kB
facebook-react-native/react/cjs/JSXDEVRuntime-profiling.js +0.52% 0.38 kB 0.38 kB +0.73% 0.27 kB 0.28 kB
facebook-www/shims/ReactBrowserEventEmitter_DO_NOT_USE.js +0.51% 0.39 kB 0.39 kB = 0.28 kB 0.28 kB
oss-experimental/use-subscription/cjs/use-subscription.production.min.js +0.49% 0.41 kB 0.41 kB +0.34% 0.29 kB 0.29 kB
oss-stable-semver/use-subscription/cjs/use-subscription.production.min.js +0.49% 0.41 kB 0.41 kB +0.34% 0.29 kB 0.29 kB
oss-stable/use-subscription/cjs/use-subscription.production.min.js +0.49% 0.41 kB 0.41 kB +0.34% 0.29 kB 0.29 kB
facebook-www/JSXDEVRuntime-prod.classic.js +0.47% 0.43 kB 0.43 kB +0.67% 0.30 kB 0.30 kB
facebook-www/JSXDEVRuntime-prod.modern.js +0.47% 0.43 kB 0.43 kB +0.67% 0.30 kB 0.30 kB
facebook-www/JSXDEVRuntime-profiling.classic.js +0.47% 0.43 kB 0.43 kB +0.67% 0.30 kB 0.30 kB
facebook-www/JSXDEVRuntime-profiling.modern.js +0.47% 0.43 kB 0.43 kB +0.67% 0.30 kB 0.30 kB
oss-experimental/react-fs/cjs/react-fs.browser.development.server.js +0.46% 0.44 kB 0.44 kB +0.65% 0.31 kB 0.31 kB
oss-experimental/react-pg/cjs/react-pg.browser.development.server.js +0.46% 0.44 kB 0.44 kB +0.33% 0.31 kB 0.31 kB
oss-stable-semver/react-fs/cjs/react-fs.browser.development.server.js +0.46% 0.44 kB 0.44 kB +0.65% 0.31 kB 0.31 kB
oss-stable-semver/react-pg/cjs/react-pg.browser.development.server.js +0.46% 0.44 kB 0.44 kB +0.33% 0.31 kB 0.31 kB
oss-stable/react-fs/cjs/react-fs.browser.development.server.js +0.46% 0.44 kB 0.44 kB +0.65% 0.31 kB 0.31 kB
oss-stable/react-pg/cjs/react-pg.browser.development.server.js +0.46% 0.44 kB 0.44 kB +0.33% 0.31 kB 0.31 kB
oss-experimental/react-reconciler/cjs/react-reconciler-constants.production.min.js +0.44% 0.45 kB 0.45 kB +0.69% 0.29 kB 0.29 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler-constants.production.min.js +0.44% 0.45 kB 0.45 kB +0.69% 0.29 kB 0.29 kB
oss-stable/react-reconciler/cjs/react-reconciler-constants.production.min.js +0.44% 0.45 kB 0.45 kB +0.69% 0.29 kB 0.29 kB
oss-stable-semver/react/cjs/react.shared-subset.development.js +0.40% 0.50 kB 0.50 kB +0.57% 0.35 kB 0.35 kB
oss-stable/react/cjs/react.shared-subset.development.js +0.40% 0.50 kB 0.50 kB +0.57% 0.35 kB 0.35 kB
react-native/shims/ReactNative.js +0.38% 0.52 kB 0.53 kB = 0.30 kB 0.30 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-flight-client.production.min.js +0.27% 0.73 kB 0.74 kB +0.44% 0.45 kB 0.45 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-flight-client.production.min.js +0.27% 0.73 kB 0.74 kB +0.44% 0.45 kB 0.45 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-flight-client.production.min.js +0.27% 0.73 kB 0.74 kB +0.44% 0.45 kB 0.45 kB
react-native/shims/ReactFabric.js +0.26% 0.76 kB 0.76 kB = 0.41 kB 0.41 kB
oss-experimental/react/cjs/react-jsx-runtime.profiling.min.js +0.23% 0.86 kB 0.86 kB +0.37% 0.54 kB 0.54 kB
oss-stable-semver/react/cjs/react-jsx-runtime.profiling.min.js +0.23% 0.86 kB 0.86 kB +0.37% 0.54 kB 0.54 kB
oss-stable/react/cjs/react-jsx-runtime.profiling.min.js +0.23% 0.86 kB 0.86 kB +0.37% 0.54 kB 0.54 kB
oss-experimental/react/cjs/react-jsx-runtime.production.min.js +0.23% 0.86 kB 0.86 kB +0.37% 0.54 kB 0.54 kB
oss-stable-semver/react/cjs/react-jsx-runtime.production.min.js +0.23% 0.86 kB 0.86 kB +0.37% 0.54 kB 0.54 kB
oss-stable/react/cjs/react-jsx-runtime.production.min.js +0.23% 0.86 kB 0.86 kB +0.37% 0.54 kB 0.54 kB
oss-experimental/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.min.js +0.22% 0.90 kB 0.90 kB +0.38% 0.52 kB 0.52 kB
oss-stable-semver/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.min.js +0.22% 0.90 kB 0.90 kB +0.38% 0.52 kB 0.52 kB
oss-stable/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.min.js +0.22% 0.90 kB 0.90 kB +0.38% 0.52 kB 0.52 kB
react-native/shims/createReactNativeComponentClass.js +0.21% 0.93 kB 0.93 kB = 0.49 kB 0.49 kB

Generated by 🚫 dangerJS against 0f7f3c3

@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!

@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!

@acdlite
Copy link
Collaborator

acdlite commented Sep 22, 2022

Thank you! I needed to make some minor edits and I couldn't push to your PR branch for some reason, so I resubmitted as #25315 (commit history still gives you author credit).

@acdlite acdlite closed this Sep 22, 2022
@Drizzlecrj Drizzlecrj deleted the meta_header branch September 22, 2022 18:09
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