Skip to content

Raised default JavaScript SDK version to 10.75.3 - #253

Open
claudio-ferraro wants to merge 1 commit into
masterfrom
feature/update-js-sdk-to-v10
Open

claudio-ferraro wants to merge 1 commit into
masterfrom
feature/update-js-sdk-to-v10

Conversation

@claudio-ferraro

Copy link
Copy Markdown
Member

Summary

The default JavaScript SDK version (SentryScript::CURRENT_VERSION) was still 8.7.0, released in May 2024. Session Replays recorded with that version can be played back without any styling on sites that use modern CSS features, such as the cascade layers, @property and @supports rules in a Tailwind CSS v4 build.

This raises the default to 10.75.3, the latest v10 release. The frontend templates work without changes, because Sentry.init, browserTracingIntegration, replayIntegration, ignoreErrors and beforeSend are unchanged in v10. Installations that set js_sdk_version are not affected.

Notes for upgrading:

  • Browser support: since v9 the SDK requires ES2020 (Chrome 80, Safari 14, Firefox 74). Errors from older browsers are no longer reported.
  • Removed APIs: custom code that calls APIs removed in v9 (getCurrentHub(), Hub, captureUserFeedback, the enableTracing option) needs to be updated. Alternatively, pin the previous version with js_sdk_version.
  • Self-hosted Sentry: the minimum supported version (24.4.2) is the same as for the 8.7.0 default.

Result

  • Checked that all bundle variants loaded by sentry.phtml exist on the CDN for 10.75.3, and that they expose replayIntegration and browserTracingIntegration.
  • Tested on Magento 2.4.8 with a Tailwind CSS v4 theme: Session Replays are recorded and played back with full styling.

Checklist

  • I've ran composer run codestyle
  • I've ran composer run analyse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant