feat: Add codemods for migrating Sentry.js from v7.x to v8.x
This PR enhances the Sentry.js v8.x migration guide by incorporating codemod integration to streamline the upgrade process for developers. The motivation behind this change is to provide a more efficient and time-saving approach for migrating from v7.x to v8.x, helping the community upgrade with ease.
Key changes include:
- Introducing Codemods: Added a section in the migration guide to highlight the availability of codemods for automating common migration tasks.
- Codemod Recipe: Provided a codemod recipe that runs the following codemods from the Sentry.js Codemod repository:
npx codemod sentry/v8/migration-recipe- sentry/v8/removal-of-addGlobalEventProcessor
- sentry/v8/Removal-Sentry.configureScope-method
- sentry/v8/removal-Severity-Enum
- sentry/v8/remove-replay-package-and-update-integration
- sentry/v8/replace-span-status-from-http-code
- sentry/v8/removal-of-void-from-transport-return-types
By incorporating these changes, the migration guide now provides a more comprehensive and efficient solution for upgrading to Sentry.js v8.x, helping developers save time and effort during the migration process.
@akash-kumar-dev is attempting to deploy a commit to the Sentry Team on Vercel.
A member of the Team first needs to authorize it.
@AbhiPrasad can you help review this contribution?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| changelog | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 29, 2024 10:24pm |
| sentry-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 29, 2024 10:24pm |
1 Skipped Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| develop-docs | ⬜️ Ignored (Inspect) | Visit Preview | Aug 29, 2024 10:24pm |
I have attached all the codemod registry links and their corresponding Codemod Studio links in the documentation for your review.
Please go through the changes to see how the codemods facilitate the migration from Sentry.js v7.x to v8.x. This should help streamline the review process.
This pull request has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Hi @AbhiPrasad, is there anything else I should address on this PR? Looking forward to your feedback on this PR so I can proceed accordingly.
Hi @akash-kumar-dev. Thanks for the PR!
We don't officially support these codemods, so I would be hesistant to add them to the top of the docs like this. This would mean the Sentry team would have to help maintain and fix issues with the codemods as the come up.
We do have a repo of codemods here: https://github.com/getsentry/sentry-migr8. Are you able to contribute some of your codemods to this repo? We would be happy to review and accept PRs!
This pull request has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
This pull request has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
This pull request has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
This pull request has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀