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

fix: remove deprecated event listener method from appearance.js #32526

Closed

Conversation

matinzd
Copy link
Contributor

@matinzd matinzd commented Nov 3, 2021

Summary

Remove unused deprecated event listener method from appearance.js

Changelog

[General] [Removed] - Remove deprecated removeListener from Appearance that causes deprecation message in log box.

Test Plan

@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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Nov 3, 2021
@pull-bot
Copy link

pull-bot commented Nov 3, 2021

PR build artifact for 51b7446 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 9,351,144 +51
android hermes armeabi-v7a 8,333,208 +63
android hermes x86 9,983,535 +66
android hermes x86_64 9,768,895 +52
android jsc arm64-v8a 10,665,521 -9
android jsc armeabi-v7a 9,311,065 -6
android jsc x86 10,777,585 -12
android jsc x86_64 11,216,892 -4

Base commit: b25d9e4
Branch: main

@analysis-bot
Copy link

analysis-bot commented Nov 3, 2021

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 8adedfe
Branch: main

@yungsters
Copy link
Contributor

Thanks for the contribution, @matinzd. I have added this to my list and will take a look as soon as possible.

@matinzd
Copy link
Contributor Author

matinzd commented Mar 2, 2022

Thanks for the contribution, @matinzd. I have added this to my list and will take a look as soon as possible.

Thank you! Let me know.

@yungsters
Copy link
Contributor

Thanks again for the contribution, @matinzd.

Can you run prettier on this change? It is failing the test_js CI jobs as-is.

Also, would you be interested in removing the other deprecated remove listener methods? 😁

@matinzd matinzd force-pushed the fix/remove_deprecated_method_appearance branch 2 times, most recently from 1ba6ba2 to e04ddbc Compare March 31, 2022 10:27
@matinzd matinzd force-pushed the fix/remove_deprecated_method_appearance branch from e04ddbc to e02c2bf Compare March 31, 2022 10:28
@matinzd
Copy link
Contributor Author

matinzd commented Mar 31, 2022

Thanks again for the contribution, @matinzd.

Can you run prettier on this change? It is failing the test_js CI jobs as-is.

Also, would you be interested in removing the other deprecated remove listener methods? 😁

Of course, I will do it in another PR. Branch rebased with main and CI should pass.

@yungsters
Copy link
Contributor

One more small thing — the changelog entry should be [Removed] for removing the deprecated method.

@matinzd
Copy link
Contributor Author

matinzd commented Mar 31, 2022

One more small thing — the changelog entry should be [Removed] for removing the deprecated method.

Changed. Is it ok?

@yungsters
Copy link
Contributor

yungsters commented Mar 31, 2022

Since it is affects a public interface, it shouldn't have the [Removed] [Internal].

Otherwise, it looks great! I'll be able to import once that is corrected. Thank you.

@matinzd
Copy link
Contributor Author

matinzd commented Mar 31, 2022

Since it is affects a public interface, it shouldn't have the [Removed].

Otherwise, it looks great! I'll be able to import once that is corrected. Thank you.

Sorry, as you mentioned above I changed Fix to Removed. What should I do now?

@yungsters
Copy link
Contributor

This is what I meant:

- [Internal] [Removed] - Remove deprecated removeListener from Appearance that causes deprecation message in log box.
+ [Removed] - Remove deprecated removeListener from Appearance that causes deprecation message in log box.

If you don't mind, I can make that change in the process of importing this diff.

@facebook-github-bot
Copy link
Contributor

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

@yungsters
Copy link
Contributor

Sorry, I just realized why you were confused.

I made a typo in my comment. I meant to suggest removing "[Internal]", not "[Removed]".

Sorry for the confusion!

@pull-bot
Copy link

pull-bot commented Apr 1, 2022

Messages
📖

📋 Verify Changelog Format - A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

CATEGORY may be:
  • General
  • iOS
  • Android
  • JavaScript
  • Internal (for changes that do not need to be called out in the release notes)

TYPE may be:

  • Added, for new features.
  • Changed, for changes in existing functionality.
  • Deprecated, for soon-to-be removed features.
  • Removed, for now removed features.
  • Fixed, for any bug fixes.
  • Security, in case of vulnerabilities.

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

Generated by 🚫 dangerJS against 431fba0

@matinzd
Copy link
Contributor Author

matinzd commented Apr 1, 2022

This is what I meant:

- [Internal] [Removed] - Remove deprecated removeListener from Appearance that causes deprecation message in log box.
+ [Removed] - Remove deprecated removeListener from Appearance that causes deprecation message in log box.

If you don't mind, I can make that change in the process of importing this diff.

The category should be there. I changed it to General. @yungsters

@matinzd
Copy link
Contributor Author

matinzd commented Apr 5, 2022

Any updates? @yungsters

@facebook-github-bot
Copy link
Contributor

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

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @matinzd in 8dfbed7.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Apr 6, 2022
@matinzd matinzd deleted the fix/remove_deprecated_method_appearance branch April 6, 2022 20:05
matinzd added a commit to matinzd/react-native that referenced this pull request Apr 6, 2022
Saadnajmi pushed a commit to Saadnajmi/react-native-macos that referenced this pull request Jan 15, 2023
…book#32526)

Summary:
Remove unused deprecated event listener method from appearance.js

## Changelog

[General] [Removed] - Remove deprecated removeListener from Appearance that causes deprecation message in log box.

Pull Request resolved: facebook#32526

Reviewed By: cortinico

Differential Revision: D35287187

Pulled By: yungsters

fbshipit-source-id: cf0af61ed8636855aa625579e27816a6c10b6b81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. Type: Removal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants