Open
Conversation
Major changes: - Update manifest.json: v2 → v3, browser_action → action - Rewrite background.ts using declarativeNetRequest API - Add webpack config for service worker build - Add V3 migration guide documentation - Add build:v3 and pub:v3 scripts Breaking changes: - webRequest replaced with declarativeNetRequest - Background script now runs as service worker - Dynamic request modification now declarative This migration is required for Chrome 88+ compatibility.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate XSwitch from Manifest V2 to V3 for Chrome 88+ compatibility.
Summary
This PR upgrades XSwitch to use Manifest V3, which is required for Chrome 88+.
Changes
manifest.json
src/background.ts
build/webpack.v3.config.js (new)
package.json
Breaking Changes
Testing
Build with:
npm run build:v3API Changes
Migration Guide
See MANIFEST_V3_MIGRATION_GUIDE.md for detailed migration documentation.