codemod icon indicating copy to clipboard operation
codemod copied to clipboard

feat(codemod): codemods and recipe for migrating Sentry.js from v7.x to v8.x

Open akash-kumar-dev opened this issue 1 year ago • 2 comments

Sentry v7.x → Sentry v8.x

📚 Description

  • Link to Official Upgrade Guide: Link

Sentry/V8/Removal Severity Enum

Sentry/V8/Removal Sentry.ConfigureScope Method

Sentry/V8/Replace Span Status From Http Code

Sentry/V8/Removal Of AddGlobalEventProcessor

Sentry/V8/Remove Replay Package And Update Integration

Sentry/V8/Removal Of Void From Transport Return Types

Sentry/V8/Migration Recipe

akash-kumar-dev avatar Aug 26 '24 17:08 akash-kumar-dev

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 26 '24 17:08 CLAassistant

@akash-kumar-dev is attempting to deploy a commit to the Codemod Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 26 '24 17:08 vercel[bot]

@akash-kumar-dev We're moving codemod packages to their corresponding owners so it's easier for codemod owners to own and maintain their codemods, and be notified about any issues in their own repos. Do you mind moving this to your own repo and updating the GitHub source URL of the published codemod to point to your github repo?

  1. Create a repo in your own GitHub account and move the source code of your codemods to that repo.

    • This will drive more traffic to your profile and clarify ownership, increasing visibility and transparency.
    • You could name the repo something like codemods (or choose a name you prefer).
    • For the README of that repo, you can use a format similar to what's in the commons repo.
  2. Update the git URL in the codemods’ metadata to your new repo and bump their versions.

  3. Republish the codemods to ensure they are showing the correct git URL in the registry.

  4. Optionally, you can duplicate this GitHub Action for your repo. This way, every time you make a change to one of your codemods and merge the code to the main branch, it will automatically publish the codemod for you.

mohab-sameh avatar Dec 26 '24 17:12 mohab-sameh

Hi @mohab-sameh , I've moved the whole repo to my own GitHub, codemods. I also updated the GitHub link from all codemods in the codemod registry. The only thing remaining is to add GitHub actions, which I will do soon. I'm going to update all my other codemods from the registry soon and move them to my own repo as well.

akash-kumar-dev avatar Dec 27 '24 13:12 akash-kumar-dev

Awesome @akash-kumar-dev. Thanks a lot!

mohab-sameh avatar Dec 27 '24 13:12 mohab-sameh