Skip to content

Conversation

@XFox111
Copy link
Owner

@XFox111 XFox111 commented Nov 13, 2025

Description

Migrated to WXT 0.20.0 and regenerated the lockfile (it appears to be broken in prod rn)

Resolves: #134

PR Checklist

  • Update version in package.json
  • [Post-merge] Review and publish GitHub release
  • Update Discussions
  • [Post-deploy] Update changelog for Firefox webstore
  • Reset next branch to be in sync with main

@XFox111 XFox111 added this to the Patch Tuesday. December 2025 milestone Nov 13, 2025
@XFox111 XFox111 self-assigned this Nov 13, 2025
Copilot AI review requested due to automatic review settings November 13, 2025 23:06
@XFox111 XFox111 added bug Something isn't working dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 13, 2025
Copy link

Copilot AI left a 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.29 to ^0.20.11
  • Migrated type imports from wxt/browser to global Browser namespace types
  • Updated storage utility imports from wxt/storage to wxt/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.

@XFox111 XFox111 merged commit b51dd60 into main Nov 13, 2025
10 checks passed
@XFox111 XFox111 deleted the wxt-bump branch November 13, 2025 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration to WXT 0.20.0

2 participants