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

Back out "RN: Adopt Mapped Types in EventEmitter" #38599

Closed
wants to merge 1 commit into from

Conversation

yungsters
Copy link
Contributor

Summary:
Currently, metro-config does not have hermes-parser enabled by default. This is because hermes-parser does not yet support parsing all of TypeScript's syntax nodes.

However, this also means we cannot yet utilize any Flow langauge features that require the use of hermes-parser (and are unsupported by Babel). Mapped types falls into this category, so we cannot use them.

This backs out a recent change that tried to adopt Flow mapped types in EventEmitter, for now. We can revisit after making the necessary changes to metro-config.

Changelog:
[Internal]

Reviewed By: pieterv

Differential Revision: D47729818

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Jul 24, 2023
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Jul 24, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,843,281 +0
android hermes armeabi-v7a 8,152,421 +0
android hermes x86 9,349,046 -1
android hermes x86_64 9,191,802 +1
android jsc arm64-v8a 9,456,698 +686
android jsc armeabi-v7a 8,637,831 +688
android jsc x86 9,539,787 +693
android jsc x86_64 9,783,077 +690

Base commit: d3c28d2
Branch: main

Summary:
Pull Request resolved: facebook#38599

Currently, `metro-config` does not have `hermes-parser` enabled by default. This is because `hermes-parser` does not yet support parsing all of TypeScript's syntax nodes.

However, this also means we cannot yet utilize any Flow langauge features that require the use of `hermes-parser` (and are unsupported by Babel). Mapped types falls into this category, so we cannot use them.

This backs out a recent change that tried to adopt Flow mapped types in `EventEmitter`, for now. We can revisit after making the necessary changes to `metro-config`.

Changelog:
[Internal]

Reviewed By: pieterv

Differential Revision: D47729818

fbshipit-source-id: f562d1456490e89f84c40b8f638ffe5eaf94dbc2
@facebook-github-bot
Copy link
Contributor

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

@javache
Copy link
Member

javache commented Oct 17, 2023

Merged as aa47484

@javache javache closed this Oct 17, 2023
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 p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants