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(audits): Handle mutations #10268

Merged
merged 5 commits into from
Mar 8, 2024
Merged

feat(audits): Handle mutations #10268

merged 5 commits into from
Mar 8, 2024

Conversation

Princesseuh
Copy link
Member

@Princesseuh Princesseuh commented Feb 28, 2024

Changes

Set up a MutationObserver to rerun auditing the page after changes. There's a bunch of perf concerns here for sure, but according to Google, in 2024 MutationObserver's performance isn't that bad? Also, I tried to set up a bunch of reasonable timeouts.

Note that this does not handle images and iframes that haven't loaded yet, that requires a bit more changes.

Testing

Added a bunch of tests, that was the most complicated part of this PR.

Docs

N/A

Copy link

changeset-bot bot commented Feb 28, 2024

🦋 Changeset detected

Latest commit: 0260942

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Feb 28, 2024
@github-actions github-actions bot added the semver: minor Change triggers a `minor` release label Feb 29, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This PR is blocked because it contains a minor changeset. A reviewer will merge this at the next release if approved.

@Princesseuh
Copy link
Member Author

@ematipico Added comments explaining the points you were confused about!

Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Thank you Erika! Looks good to me

@ematipico ematipico added this to the 4.5.0 milestone Feb 29, 2024
Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Docs approval!

@Princesseuh Princesseuh merged commit 2013e70 into main Mar 8, 2024
4 checks passed
@Princesseuh Princesseuh deleted the feat/mutation-audits branch March 8, 2024 10:56
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This PR is blocked because it contains a minor changeset. A reviewer will merge this at the next release if approved.

@astrobot-houston astrobot-houston mentioned this pull request Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) semver: minor Change triggers a `minor` release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants