Migrate from 4.x to 5.x/6.x

Learn about migrating from Sentry JavaScript SDK 4.x to 5.x/6.x

We recommend upgrading from 4.x to 6.x directly. Migrating from 5.x to 6.x has no breaking changes to the SDK's API.

Please see our detailed migration guide for more information on migrating from 4.x to 5.x/6.x.

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").