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

Undo moving of TurboModule to internal and expose utility function for TurboModule.class.isAssignableFrom #43219

Closed
wants to merge 1 commit into from

Conversation

cortinico
Copy link
Contributor

@cortinico cortinico commented Feb 27, 2024

Summary:

After discussing with @dvacca, we prefer to undo the change of TurboModule package to .internal as this is a quite aggressive breaking change for the ecosystem.

Moreover: users should not invoke TurboModule.class.isAssignableFrom because TurboModule is .internal. Therefore I'm exposing another API to check if a class is a TurboModule as a static field of ReactModuleInfo.

Changelog:

[INTERNAL] - Do not use TurboModule.class.isAssignableFrom

Test Plan:

Tests are attached

@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 27, 2024
@facebook-github-bot
Copy link
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Feb 29, 2024
…r TurboModule.class.isAssignableFrom (#43219)

Summary:
After discussing with mdvacca, we prefer to undo the change of `TurboModule` package to `.internal` as this is a quite aggressive breaking change for the ecosystem.

Moreover: users should not invoke `TurboModule.class.isAssignableFrom` because `TurboModule` is `.internal`. Therefore I'm exposing another API to check if a class is a TurboModule as a static field of `ReactModuleInfo`.

## Changelog:

[INTERNAL] - Do not use TurboModule.class.isAssignableFrom


Test Plan: Tests are attached

Reviewed By: mdvacca, cipolleschi

Differential Revision: D54280882

Pulled By: cortinico
@facebook-github-bot facebook-github-bot force-pushed the nc/donot-isAssignableFrom-with-TM branch from 6de2496 to f15938b Compare February 29, 2024 00:35
@facebook-github-bot
Copy link
Contributor

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

…r TurboModule.class.isAssignableFrom (#43219)

Summary:
After discussing with mdvacca, we prefer to undo the change of `TurboModule` package to `.internal` as this is a quite aggressive breaking change for the ecosystem.

Moreover: users should not invoke `TurboModule.class.isAssignableFrom` because `TurboModule` is `.internal`. Therefore I'm exposing another API to check if a class is a TurboModule as a static field of `ReactModuleInfo`.

## Changelog:

[INTERNAL] - Do not use TurboModule.class.isAssignableFrom


Test Plan: Tests are attached

Reviewed By: mdvacca, cipolleschi

Differential Revision: D54280882

Pulled By: cortinico
@facebook-github-bot facebook-github-bot force-pushed the nc/donot-isAssignableFrom-with-TM branch from f15938b to 6d88a77 Compare February 29, 2024 00:36
@facebook-github-bot
Copy link
Contributor

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

Copy link
Collaborator

@tido64 tido64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks working on this ❤️

@cortinico cortinico changed the title Do not use TurboModule.class.isAssignableFrom Undo moving of TurboModule to internal and expose utility function for TurboModule.class.isAssignableFrom Feb 29, 2024
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 29, 2024
@facebook-github-bot
Copy link
Contributor

@cortinico merged this pull request in 4d982dc.

huntie pushed a commit that referenced this pull request Mar 4, 2024
…r TurboModule.class.isAssignableFrom (#43219)

Summary:
After discussing with mdvacca, we prefer to undo the change of `TurboModule` package to `.internal` as this is a quite aggressive breaking change for the ecosystem.

Moreover: users should not invoke `TurboModule.class.isAssignableFrom` because `TurboModule` is `.internal`. Therefore I'm exposing another API to check if a class is a TurboModule as a static field of `ReactModuleInfo`.

## Changelog:

[INTERNAL] - Do not use TurboModule.class.isAssignableFrom

Pull Request resolved: #43219

Test Plan: Tests are attached

Reviewed By: mdvacca, cipolleschi

Differential Revision: D54280882

Pulled By: cortinico

fbshipit-source-id: 9443c8aa23cf70dd5cfe574fe573d83313134358
@cortinico cortinico self-assigned this Mar 4, 2024
okwasniewski pushed a commit to okwasniewski/react-native that referenced this pull request Mar 5, 2024
…r TurboModule.class.isAssignableFrom (facebook#43219)

Summary:
After discussing with mdvacca, we prefer to undo the change of `TurboModule` package to `.internal` as this is a quite aggressive breaking change for the ecosystem.

Moreover: users should not invoke `TurboModule.class.isAssignableFrom` because `TurboModule` is `.internal`. Therefore I'm exposing another API to check if a class is a TurboModule as a static field of `ReactModuleInfo`.

## Changelog:

[INTERNAL] - Do not use TurboModule.class.isAssignableFrom

Pull Request resolved: facebook#43219

Test Plan: Tests are attached

Reviewed By: mdvacca, cipolleschi

Differential Revision: D54280882

Pulled By: cortinico

fbshipit-source-id: 9443c8aa23cf70dd5cfe574fe573d83313134358
@cortinico cortinico deleted the nc/donot-isAssignableFrom-with-TM branch June 10, 2024 13:06
This was referenced Jun 28, 2024
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