Skip to content

feat(storage): add metadata watchers - #2630

Merged
aklinker1 merged 3 commits into
wxt-dev:mainfrom
vansh-nagar:feat/storage-watch-meta
Oct 4, 2026
Merged

aklinker1 merged 3 commits into
wxt-dev:mainfrom
vansh-nagar:feat/storage-watch-meta

Conversation

@vansh-nagar

Copy link
Copy Markdown
Contributor

Closes #1988

Adds watchMeta to both the top-level storage API and defined storage items. Metadata callbacks normalize missing or removed values to {}, matching getMeta, and return the same unsubscribe function as value watchers.

The storage guide now documents both forms.

Tests cover metadata updates, removals, unrelated value changes, and unsubscription across storage areas.

Verified with:

  • bun run --cwd packages/storage test run
  • bun run --cwd packages/storage check

@coderabbitai

coderabbitai Bot commented Sep 25, 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: e8c22353-e704-4971-833d-dbd7f5240d46

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.

@netlify

netlify Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 9254409
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6ac1d8b054936c0009af9775
😎 Deploy Preview https://deploy-preview-2630--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.

@github-actions github-actions Bot added the pkg/storage Includes changes to the `packages/storage` directory label Sep 25, 2026
@pkg-pr-new

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

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

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

@wxt-dev/auto-icons

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

@wxt-dev/browser

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

@wxt-dev/i18n

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

@wxt-dev/is-background

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

@wxt-dev/module-react

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

@wxt-dev/module-solid

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

@wxt-dev/module-svelte

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

@wxt-dev/module-vue

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

@wxt-dev/runner

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

@wxt-dev/storage

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

@wxt-dev/unocss

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

@wxt-dev/webextension-polyfill

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

wxt

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

commit: 9254409

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.68%. Comparing base (be395ef) to head (9254409).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2630      +/-   ##
==========================================
- Coverage   79.81%   79.68%   -0.13%     
==========================================
  Files         138      138              
  Lines        4092     4101       +9     
  Branches      941      943       +2     
==========================================
+ Hits         3266     3268       +2     
- Misses        729      735       +6     
- Partials       97       98       +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.

@aklinker1
aklinker1 enabled auto-merge (squash) October 4, 2026 04:40
@aklinker1
aklinker1 merged commit 7c2ec96 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!

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] support watch meta change in storage

3 participants