Repository navigation
Conversation
size-limit report 📦Compared: b4d11b9 (PR test merge using develop at 3b4f24d) Against: 6dab20b (develop) · base run #68250
|
Optional E2E testsAll optional checks were successful. 65 successful. See the run. Successful checks
|
d6a9601 to
7e5147d
Compare
…apsAfterUpload` and `filesToDeleteAfterUpload` The three options keep working and log a deprecation warning when the user sets them. `sourcemaps.upload`, `sourcemaps.injectDebugIds` and `sourcemaps.delete` replace them. They will be removed in v12.
Gatsby read the option for its `devtool` decision only, so the plugin still injected debug IDs and uploaded the source maps that existed.
7e5147d to
8fc5c0e
Compare
s1gr1d
left a comment
There was a problem hiding this comment.
nothing blocking, just a few docs suggestions
There was a problem hiding this comment.
this is the migration guide for v11, and I am not sure how many people will still read this. It was mostly used for transferring the content here to the docs.
It's most important that the change and migration is pointed out in the changelog.
There was a problem hiding this comment.
Agreed. I cut the section down to the replacement table and a link to the docs, so the docs are the source of truth (3b4826c). I left CHANGELOG.md alone here because it is written at release time; the entry there should call out the deprecation.
| | `sourcemaps: { disable: 'disable-upload' }` | `sourcemaps: { upload: false }` | | ||
| | `sourcemaps: { disable: true }` | `sourcemaps: { upload: false, injectDebugIds: false }` | | ||
| | `sourcemaps.deleteSourcemapsAfterUpload` | `sourcemaps.delete` | | ||
| | `sourcemaps.filesToDeleteAfterUpload` | `sourcemaps.delete`, or a script that runs after the build | | ||
| | `deleteSourcemapsAfterUpload` (Gatsby plugin option) | `sourcemaps.delete` | |
There was a problem hiding this comment.
Make sure this stays aligned with what's in the docs: https://github.com/getsentry/sentry-docs/pull/20971/changes#diff-7ec4cf3ed3e2a5b3212d382c61ce5e930d3fff6bdb8a6745d7f289877ec6e8d2R263-R266
But ideally we just have one source of truth and we just add the link to the docs.
There was a problem hiding this comment.
Aligned in 3b4826c: disable: true now maps to injectDebugIds: false in the build warning, the JSDoc and this table, as in the docs PR. The section links to the bundler plugin options page for the details.
| -}); | ||
| ``` | ||
|
|
||
| ### `sourcemaps.disable`, `deleteSourcemapsAfterUpload` and `filesToDeleteAfterUpload` are deprecated |
There was a problem hiding this comment.
This is currently in "Behavior changes" that happened in v11. In case we want to keep the content in this file, I would add another heading "Deprecations in 11.x" (but also see other comments regarding this)
There was a problem hiding this comment.
Moved it under a new "7. Deprecations in 11.x" heading at the end of the v11 guide (3b4826c).
…isable: true` This matches the docs. `injectDebugIds: false` also stops the upload, so `upload: false` is not needed with it. The migration guide section moves under a new "Deprecations in 11.x" heading and links to the docs for the details.
Stacked on #26906. Don't merge before getsentry/sentry-docs#20971, which documents the replacements.
sourcemaps.upload,sourcemaps.injectDebugIdsandsourcemaps.deletereplace these options. They keep working until v12 and now log a warning when the user sets them.sourcemaps.disable→upload: falsefor'disable-upload',injectDebugIds: falsefortrue.sourcemaps.deleteSourcemapsAfterUpload(shared, Next.js, and Gatsby's flat option) →sourcemaps.delete.delete: trueremoves more: every source map of the build, not only those of uploaded chunks.sourcemaps.filesToDeleteAfterUpload→sourcemaps.delete, or a script after the build for other files.sourcemaps.disableto the plugin. Before, Gatsby only read it for itsdevtooldecision, sodisable: truestill injected debug IDs and uploaded the source maps that existed.MIGRATION.mdgets a short "Deprecations in 11.x" section: the replacement table, a link to the docs, and how to turn off the release steps thatdisable: truealso stopped in Astro, Nuxt, SolidStart and Nitro. The older v11 entries that pointed tosourcemaps.disablenow name the new options.