Skip to content

Migrate Utilities/deepFreezeAndThrowOnMutationInDev.js, Utilities/defineLazyObjectProperty.js, Utilities/DeviceInfo.js & Utilities/FeatureDetection.js to use export syntax#49408

Closed
iwoplaza wants to merge 1 commit into
facebook:mainfrom
iwoplaza:export-D69602536

Conversation

@iwoplaza
Copy link
Copy Markdown
Contributor

Summary:

Motivation

Modernising the RN codebase to allow for modern Flow tooling to process it.

This diff

  • Migrates Utilities/deepFreezeAndThrowOnMutationInDev.js, Utilities/defineLazyObjectProperty.js, Utilities/DeviceInfo.js & Utilities/FeatureDetection.js to use the export syntax.
  • Updates deep-imports of files that were migrated to a single export default to use .default
  • Updates the current iteration of API snapshots (intended).

Changelog:
[General][Breaking] - Deep imports to Utilities/deepFreezeAndThrowOnMutationInDev, Utilities/defineLazyObjectProperty, Utilities/DeviceInfo or Utilities/FeatureDetection with require syntax may need to be appended with '.default'.

Differential Revision: D69602536

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 13, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D69602536

…ineLazyObjectProperty.js, Utilities/DeviceInfo.js & Utilities/FeatureDetection.js to use export syntax (facebook#49408)

Summary:

## Motivation
Modernising the RN codebase to allow for modern Flow tooling to process it.

## This diff
- Migrates Utilities/deepFreezeAndThrowOnMutationInDev.js, Utilities/defineLazyObjectProperty.js, Utilities/DeviceInfo.js & Utilities/FeatureDetection.js to use the export syntax.
- Updates deep-imports of files that were migrated to a single export default to use `.default`
- Updates the current iteration of API snapshots (intended).

Changelog:
[General][Breaking] - Deep imports to `Utilities/deepFreezeAndThrowOnMutationInDev`, `Utilities/defineLazyObjectProperty`, `Utilities/DeviceInfo` or `Utilities/FeatureDetection` with `require` syntax may need to be appended with '.default'.

Reviewed By: huntie

Differential Revision: D69602536
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D69602536

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 13, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 028c0b3.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @iwoplaza in 028c0b3

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants