Skip to content

chore(deps): Upgrade @1natsu/wait-element to v5 - #2642

Merged
aklinker1 merged 6 commits into
wxt-dev:mainfrom
prichey:fix/wait-element-v5
Oct 4, 2026
Merged

aklinker1 merged 6 commits into
wxt-dev:mainfrom
prichey:fix/wait-element-v5

Conversation

@prichey

@prichey prichey commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Overview

Upgrades @1natsu/wait-element from ^4.1.2 to ^5.0.0. The previous range couldn't resolve 5.x.

v5 (release notes) runs the detector once per MutationObserver callback instead of once per MutationRecord. Before, autoMount re-resolved its anchor for every record in a batch, which is expensive on pages that make many mutations at once. v5's breaking change only affects custom detectors that depend on non-DOM state, so WXT's usage (customMatcher with isExist/isNotExist) is unaffected.

Also adds a test that autoMount resolves the anchor once per mutation batch.

Manual Testing

  • bun run --filter wxt test run and bun run --filter wxt check pass.
  • Verified in a production extension by overriding the dependency to 5.0.0. autoMount UIs mount and unmount as before, and the anchor re-resolution cost on busy pages is gone.

Related Issue

Follow-up to 1natsu172/wait-element#208.

🤖 Generated with Claude Code

v5 checks once per MutationObserver callback instead of once per
MutationRecord, so autoMount no longer re-resolves the anchor hundreds of
times when a page makes a burst of unrelated mutations.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@netlify

netlify Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 30d3880
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6ac15ef328fc2d0008df4865
😎 Deploy Preview https://deploy-preview-2642--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 728280d8-8e42-4bad-8d5b-1f9d38fa8f6a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Oct 2, 2026
@pkg-pr-new

pkg-pr-new Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@2642

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@2642

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@2642

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@2642

@wxt-dev/is-background

npm i https://pkg.pr.new/@wxt-dev/is-background@2642

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@2642

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@2642

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@2642

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@2642

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@2642

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@2642

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@2642

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@2642

wxt

npm i https://pkg.pr.new/wxt@2642

commit: 30d3880

@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.00%. Comparing base (0dd1045) to head (30d3880).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2642      +/-   ##
==========================================
- Coverage   80.03%   80.00%   -0.03%     
==========================================
  Files         134      134              
  Lines        4072     4072              
  Branches      944      944              
==========================================
- Hits         3259     3258       -1     
  Misses        718      718              
- Partials       95       96       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@PatrykKuniczak

PatrykKuniczak commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

@nishu-murmu If you approving something, make it from start to end.

Now PR isn't mergable because of the failed pipeline.
Let's request changes of DIY.

I can do it, but that's your responsibility, if you want to join it to main.

Your approval have real impact now.

Do it in all places, where you've approved changes, becuase after quick review of PRs, i see there's plenty of approved by you, with broken pipeline.

@nishu-murmu

Copy link
Copy Markdown
Collaborator

@PatrykKuniczak apologies for some misunderstanding
I was checking my build fix in various PRs

@nishu-murmu

Copy link
Copy Markdown
Collaborator

Still the checks are failing :(

@PatrykKuniczak

PatrykKuniczak commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Still the checks are failing :(

That's mean, there was a breaking changes between versions and @prichey need to figured it out.
That's not your part of work @nishu-murmu , you should tell PR author to make it work and after fix, let's re-review it.

If you'll have some trouble there or somewhere else, let's touch me on Discord 😄

@prichey You're on the home stretch with this one, let's resolve conflicts between versions.

@PatrykKuniczak PatrykKuniczak changed the title fix: Upgrade @1natsu/wait-element to v5 deps: Upgrade @1natsu/wait-element to v5 Oct 3, 2026
@PatrykKuniczak PatrykKuniczak changed the title deps: Upgrade @1natsu/wait-element to v5 chore(deps): Upgrade @1natsu/wait-element to v5 Oct 3, 2026
@PatrykKuniczak

Copy link
Copy Markdown
Collaborator

And that wasn't "fix", i've changed title already.
@nishu-murmu let's also take a look on that for future.

@nishu-murmu

Copy link
Copy Markdown
Collaborator

@PatrykKuniczak the build errors are fixed.

We're facing some weird errors on Basic Check CI/CD, in validate.yml file
where we have to install the dependency first this would generate all the types definition files so that won't cause the types error we're facing during npm run check command.

@aklinker1
aklinker1 merged commit 12a3d67 into wxt-dev:main Oct 4, 2026
19 checks passed
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Thanks for helping make WXT better!

@prichey

prichey commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the quick merge! I appreciate it 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants