-
Notifications
You must be signed in to change notification settings - Fork 140
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
✨ [RUMF-1396] migrate extension to manifest v3 #1828
Conversation
This package has been updated with various fixes to support Manifest V3
Removed some dead code that won't work anymore with Manifest V3
90aa48f
to
5914555
Compare
5914555
to
308b331
Compare
Codecov Report
@@ Coverage Diff @@
## main #1828 +/- ##
==========================================
- Coverage 93.10% 93.03% -0.08%
==========================================
Files 131 131
Lines 5065 5065
Branches 1134 1134
==========================================
- Hits 4716 4712 -4
- Misses 349 353 +4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
With Manifest V3, connection between the devtools panel and the background service worker can be lost when the service worker is refreshed. I experienced it very often while working on the extension (every time I changed the background script). To help UX/DX, this commit adds an alert to allow refreshing easily the devtools panel.
308b331
to
61f84fa
Compare
@@ -1,3 +1,16 @@ | |||
export const DEV_LOGS_URL = 'http://localhost:8080/datadog-logs.js' | |||
export const DEV_RUM_URL = 'http://localhost:8080/datadog-rum.js' | |||
export const DEV_RUM_SLIM_URL = 'http://localhost:8080/datadog-rum-slim.js' | |||
|
|||
export const INTAKE_DOMAINS = [ |
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.
nice!
}) | ||
|
||
async function refreshDevServerStatus() { | ||
const timeoutId = setTimeout(() => setStore({ devServerStatus: 'checking' }), 500) |
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.
did you not want to phase out store
?
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.
Yes I want but not in this PR :) I only moved this function in another file.
<Suspense fallback={<></>}> | ||
<Panel /> | ||
</Suspense> | ||
<Suspense fallback={<></>}>{isDisconnected ? <DisconnectAlert /> : <Panel />}</Suspense> |
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.
👏 praise: nice!
Motivation
Get ready for manifest v2 phasing out. See https://developer.chrome.com/docs/extensions/mv3/mv2-sunset/
Fixes #1691
Changes
Testing
I have gone over the contributing documentation.