Skip to content

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

Closed
cortinico wants to merge 1 commit into
mainfrom
nc/donot-isAssignableFrom-with-TM
Closed

Undo moving of TurboModule to internal and expose utility function for TurboModule.class.isAssignableFrom#43219
cortinico wants to merge 1 commit into
mainfrom
nc/donot-isAssignableFrom-with-TM

Conversation

@cortinico

@cortinicocortinico commented Feb 27, 2024

Copy link
Copy Markdown
Contributor

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-botfacebook-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
Copy Markdown
Contributor

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

@facebook-github-bot
facebook-github-botforce-pushed the nc/donot-isAssignableFrom-with-TM branch from 6de2496 to f15938bCompareFebruary 29, 2024 00:35
@facebook-github-bot

Copy link
Copy Markdown
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-botforce-pushed the nc/donot-isAssignableFrom-with-TM branch from f15938b to 6d88a77CompareFebruary 29, 2024 00:36
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@tido64tido64 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks working on this ❤️

@cortinicocortinico changed the title Do not use TurboModule.class.isAssignableFromUndo moving of TurboModule to internal and expose utility function for TurboModule.class.isAssignableFromFeb 29, 2024
@facebook-github-botfacebook-github-bot added the Merged This PR has been merged. label Feb 29, 2024
@facebook-github-bot

Copy link
Copy Markdown
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
@cortinicocortinico self-assigned this Mar 4, 2024
@cortinico
cortinico deleted the nc/donot-isAssignableFrom-with-TM branch June 10, 2024 13:06
This was referenced Jun 28, 2024
@cipolleschicipolleschi mentioned this pull request Jul 22, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.fb-exportedMergedThis PR has been merged.p: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@cortinico@facebook-github-bot@tido64