Skip to content

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Dec 1, 2022

This PR removes the magic string replacement of __SENTRY_REPLAY_VERSION__ at build time in favour of @sentry/core's SENTRY_VERSION constant.

This first part of #6366 we can do now as the version will be bumped to 7.x anyway.

ref #6366

@Lms24 Lms24 requested a review from mydea December 1, 2022 13:08
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.57 KB (-0.02% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 60.59 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.36 KB (-0.01% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 54.15 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 20.12 KB (0%)
@sentry/browser - Webpack (minified) 65.75 KB (0%)
@sentry/react - Webpack (gzipped + minified) 20.14 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 45.97 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.41 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.85 KB (+0.01% 🔺)
@sentry/replay index.js 37.2 KB (+0.02% 🔺)
@sentry/replay - Webpack (gzipped + minified) 37.18 KB (+0.02% 🔺)
@sentry/replay - Webpack (minified) 124.99 KB (+0.01% 🔺)

Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@Lms24 Lms24 merged commit 6e915c3 into master Dec 1, 2022
@Lms24 Lms24 deleted the lms-replay-version branch December 1, 2022 13:49
@Lms24 Lms24 mentioned this pull request Dec 1, 2022
3 tasks
Lms24 added a commit that referenced this pull request Dec 1, 2022
Lms24 added a commit that referenced this pull request Dec 1, 2022
Lms24 added a commit that referenced this pull request Dec 2, 2022
…" (#6379)

Revert 6e915c3 (#6367) as the Replay team would like to continue injecting the version separately from the SDK to detect version package version mismatches more easily. 

Note: This will not avoid the 7.x bump in the next Replay release, it will just enable a scenario like users use the SDK on e.g. 7.25 and Replay on 7.24 and replay events will have the 7.24 version in their metadata.
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.

3 participants