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

Extract constants and purge superfluous utils #318

Merged
merged 4 commits into from
Mar 1, 2020

Conversation

mcataford
Copy link
Collaborator

Preamble

These are some more cleaning changes that reduce redundancy and work towards separating concerns in the codebase. Since classList has been well-supported and the utils included in the utility file were more than 10 years old now, I purged them in favour of the more direct classList's add and remove.

Types of changes

  • Refactor
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have used ESLint & Prettier to follow the code style of this project.
  • [ ] I have updated the documentation accordingly.
  • [ ] I have added tests to cover my changes.
  • All new and existing tests passed.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 94.558% when pulling 67f9749 on refactor-constants-verbose into ab083ed on master.

@mcataford mcataford merged commit 5f20088 into master Mar 1, 2020
@mcataford mcataford deleted the refactor-constants-verbose branch March 1, 2020 19:49
@patw0929
Copy link
Owner

patw0929 commented Mar 7, 2020

🎉 This PR is included in version 8.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

andrewsantarin pushed a commit to andrewsantarin/react-intl-tel-input that referenced this pull request Feb 2, 2022
* refactor: booleans are eq

* refactor: extract constants

* refactor: addClass can be replaced by classList.add

* refactor: unused util
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants