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

Prefer Object.hasOwnProperty for additional browser support #151

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Prefer Object.hasOwnProperty for additional browser support #151

merged 1 commit into from
Feb 6, 2024

Conversation

sjaq
Copy link
Contributor

@sjaq sjaq commented Feb 6, 2024

Keeping support for older browsers by reverting the change to Object.hasOwn and disabling the eslint rule for the project.

Fixes: #150

What: Revert back to using Object.hasOwnProperty instead of Object.hasOwn
Why: Object.hasOwn is still unsupported by some older legacy browsers that were supported before this change.
How: Reverted back the two changed lines and disabled the prefer-object-has-own in the eslint config (could also do this line-by-line, but this prevents it from accidentally being re-introduced in the project).

Checklist:

  • Documentation (N/A)
  • Tests (N/A)
  • Ready to be merged

Keeping support for older browsers by reverting the change to `Object.hasOwn` and disabling the eslint rule for the project.

Fixes: #150
Copy link
Owner

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Thanks!

@kentcdodds kentcdodds merged commit 03194e9 into kentcdodds:main Feb 6, 2024
4 checks passed
Copy link

github-actions bot commented Feb 6, 2024

🎉 This PR is included in version 6.3.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sjaq
Copy link
Contributor Author

sjaq commented Feb 6, 2024

No worries! Thanks for being so quick and responsive as a maintainer!

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.

Consider the usage of hasOwn
2 participants