Repository navigation
feat: Make Spotlight compatible with Sentry SDK version 8 - #386
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
1e92860 to
d56007d
Compare
259a13d to
cf8c2b9
Compare
| "name": "@spotlightjs/astro", | ||
| "description": "Add spotlight to your Astro toolbar, for better debugging.", | ||
| "version": "1.0.19", | ||
| "version": "2.0.0-alpha.0", |
There was a problem hiding this comment.
Usually, this step would happen in the "Prepare Publish" workflow but changesets handles pre-releases a bit differently. In the hope of not having to do too many, for now I opted to just carry out the chagneset pre-release preparations manually and I'll publish directly from v2-dev once this is merged. Should work 🤞
|
|
||
| Here's what you need to do to update to version 2: | ||
|
|
||
| - Ensure that you use a version 8 of your `@sentry/<sdk>` SDKs |
There was a problem hiding this comment.
I would propose to support v7.99.0+ (https://github.com/getsentry/sentry-javascript/blob/v7/CHANGELOG.md#7990) which should work, and makes it easier for people to update. That version should have stuff that we need to make this work, I believe?
There was a problem hiding this comment.
we could probably even go down to 7.96.0 (https://github.com/getsentry/sentry-javascript/blob/v7/CHANGELOG.md#7960) where we started exposing the functional integrations in browser.
Or we set it to 7.100.0 where we exposed the integrations in node. Probably the safer choice just to be sure the functionality is available everywhere.
There was a problem hiding this comment.
we could probably even go down to 7.96.0
oh nvm, 7.97.0 it is (missed that the 7.96.0 release was incomplete)
There was a problem hiding this comment.
update: 7.97 doesn't yet support afterAllSetup. 7.99.0 does, so trying this next
There was a problem hiding this comment.
ok, we now require 7.99.0 or greater 👍
This PR makes spotlight compatible with version 8 of the Sentry JS SDK:
Integrationinterface is no longer compatible w/ v7 < 7.99.0)This PR is directed against
v2-dev. Once SDK v8 goes stable, we'll make a stable spotlight release.This is a breaking change because the browser SDK integration is no longer compatible with the v7 SDK versions below 7.99.0. So users will be able to use the SDK with >=7.99.0 or 8.x.
ref #387