-
-
Notifications
You must be signed in to change notification settings - Fork 25
chore(deps): WXT 0.20.0 bump + lockfile regen #199
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the project from WXT 0.19.29 to 0.20.11, updating the API usage patterns to align with WXT's new module structure and TypeScript definitions. The migration replaces the wxt/browser type imports with the global Browser namespace types, updates storage utilities to the new wxt/utils/storage path, and standardizes on the browser polyfill instead of direct chrome API usage.
- Updated WXT dependency from
~0.19.29to^0.20.11 - Migrated type imports from
wxt/browserto globalBrowsernamespace types - Updated storage utility imports from
wxt/storagetowxt/utils/storage
Reviewed Changes
Copilot reviewed 24 out of 26 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updated WXT version from 0.19.29 to 0.20.11 and bumped project version to 3.2.1 |
| utils/watchTabSelection.ts | Updated import path for Unwatch type to new location |
| utils/getTabsToSaveAsync.ts | Replaced Tabs.Tab type with Browser.tabs.Tab |
| utils/createCollectionFromTabs.ts | Migrated type references to Browser namespace and replaced chrome with browser API calls |
| utils/closeTabsAsync.ts | Updated function parameter type to use Browser.tabs.Tab[] |
| tsconfig.json | Reformatted indentation from spaces to tabs |
| models/CollectionModels.ts | Converted color enum types to template literal types using Browser.tabGroups.Color |
| hooks/useStorageInfo.ts | Replaced chrome.storage references with browser.storage |
| hooks/useGroupColors.ts | Updated color type to template literal format |
| features/settingsReview/utils/setSettingsReviewNeeded.ts | Converted enum types to template literal types |
| features/settingsReview/components/SettingsReviewDialog.tsx | Updated import path for storage types and reordered imports |
| features/collectionStorage/utils/thumbnailCaptureEnabled.ts | Updated import paths for storage types and migrated permission types |
| features/collectionStorage/utils/saveCollectionsToCloud.ts | Replaced chrome.storage with browser.storage and reordered imports |
| features/collectionStorage/utils/parseCollections.ts | Updated color type casting to template literal types |
| features/analytics/utils/analyticsPermission.ts | Updated import paths and added type assertions for Firefox-specific APIs |
| entrypoints/sidepanel/utils/opener.ts | Migrated all type references to Browser namespace and replaced chrome calls with browser |
| entrypoints/sidepanel/utils/getSelectedTabs.ts | Updated tab type to Browser.tabs.Tab[] |
| entrypoints/sidepanel/utils/filterCollections.ts | Updated color filter type to template literal format |
| entrypoints/sidepanel/utils/exportCollectionToBookmarks.ts | Migrated permission and bookmark types to Browser namespace |
| entrypoints/sidepanel/layouts/collections/FilterCollectionsButton.tsx | Updated color type casts throughout component |
| entrypoints/sidepanel/components/EditDialog.tsx | Updated color state type to template literal format |
| entrypoints/options/layouts/StorageSection.tsx | Updated import path for Unwatch type |
| entrypoints/options/layouts/GeneralSection.tsx | Added type suppression for Firefox-only API and reordered imports |
| entrypoints/background.ts | Comprehensive migration of all type references, API calls, and storage imports with Firefox-specific suppressions |
| data/links.ts | Replaced chrome.runtime with browser.runtime |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Migrated to WXT 0.20.0 and regenerated the lockfile (it appears to be broken in prod rn)
Resolves: #134
PR Checklist
package.jsonnextbranch to be in sync withmain