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

feat(esl-utils): safeContains traverse utility #2745

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

fshovchko
Copy link
Contributor

Relates to: #2712

During the implementation of ticket #2712, it was discovered that the combination of checking if a node is an element and using element.contains is frequently needed. To streamline this, an isSafeContains utility was introduced.

@fshovchko fshovchko added enhancement Improvements and additions to code needs review The PR is waiting for review labels Nov 5, 2024
@fshovchko fshovchko requested a review from a team November 5, 2024 12:52
@fshovchko fshovchko self-assigned this Nov 5, 2024
@fshovchko fshovchko requested review from ala-n, yadamskaya and abarmina and removed request for a team November 5, 2024 12:52
src/modules/esl-utils/dom/traversing.ts Outdated Show resolved Hide resolved
Copy link

codeclimate bot commented Nov 7, 2024

Code Climate has analyzed commit 9880874 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 80.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 65.3% (0.0% change).

View more on Code Climate.

@ala-n ala-n added this to the ⚡ESL: 5.0.0 Major release milestone Nov 8, 2024
@ala-n ala-n changed the base branch from main to main-beta November 11, 2024 12:45
@ala-n ala-n merged commit ec0f243 into main-beta Nov 11, 2024
8 checks passed
@ala-n ala-n deleted the feat/safe-contains-traverse-util branch November 11, 2024 12:45
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2024
@ala-n
Copy link
Collaborator

ala-n commented Nov 11, 2024

🎉 This PR is included in version 5.0.0-beta.39 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvements and additions to code needs review The PR is waiting for review released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants