Skip to content
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

Update to extension manifest v3 #39

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Update to extension manifest v3 #39

wants to merge 7 commits into from

Conversation

chadian
Copy link
Owner

@chadian chadian commented Oct 16, 2022

Improves compatibility and futureproofs the extension by upgrading to manifest v3 and updating breaking changes. More details at Chrome's Welcome to Manifest V3. Some of the changes included here:

  • Using svelte kit adapter sveltekit-adapter-chrome-extension instead of static to avoid CSP issues
  • Use service worker instead of extension background scripts
  • Make chrome the idempotent output build folder from running yarn build, no longer using some symlinks, and makes it directly packagable after.
  • Test built extension in Firefox
  • Test built extension in Chrome

Using OffscreenCanvas is not supported by Safari, and currently
there's no obvious way of resizing images in a web worker in Safari
without passing the work back to the main extension thread.

Currently, Safari is not supported but there are plans to support
it in the future, see #7 and #8.
"version": "{{packageVersion}}",
"manifest_version": 2,
"browser_action": {
"version": "0.0.0",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gets populated by yarn build:version-manifest in the chrome folder

@chadian
Copy link
Owner Author

chadian commented Oct 17, 2022

Looks like I might have jumped the gun on this one, Firefox doesn't support manifest version 3. This means that #8 and #7 can probably proceed and hopefully manifest version 3 gets more stable across all browsers. Until then, I'll stick with version 2 although there are still some useful refactors that could be pulled from this branch, like making chrome an idempotent build folder and moving away from needing bumped.

@chadian chadian marked this pull request as draft October 17, 2022 22:04
@chadian
Copy link
Owner Author

chadian commented May 14, 2023

Firefox now supports manifest v3. This might be ready to go now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant