Aakash-kumar-dev

sentry/v8/remove-replay-package-and-update-integration

No description available

Legacy
sentrymigrationcodemod
Public
6 downloads
0 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod removes the import statement for the @sentry/replay package and replaces instances of new Replay() with Sentry.replayIntegration(), aligning with the latest Sentry SDK practices.

  • Import Removal: Eliminates the import statement for Replay from the @sentry/replay package.
  • Integration Replacement: Transforms all occurrences of new Replay() into Sentry.replayIntegration() to ensure compatibility with the latest Sentry SDK.

codemod Registry

Example

Before

ts

After

ts

,

Before

ts

After

ts

,

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.