Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core)!: Stop accepting event as argument for recordDroppedEvent #14999

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

mydea
Copy link
Member

@mydea mydea commented Jan 14, 2025

The event was no longer used for some time, instead you can (optionally) pass a count of dropped events as third argument. This has been around since v7, so we can finally clean this up here, which should also save some bytes.

This was not really deprecated before, but is also more an intimate API so I do not expect this to affect users too much. Also, deprecating arguments like this does not really work well with eslint anyhow, so even if we would deprecate it it is unlikely users would find out anyhow.

@mydea mydea requested review from lforst and Lms24 January 14, 2025 09:11
@mydea mydea self-assigned this Jan 14, 2025
@mydea mydea requested a review from a team as a code owner January 14, 2025 09:11
Copy link
Contributor

github-actions bot commented Jan 14, 2025

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 22.82 KB -0.23% -52 B 🔽
@sentry/browser - with treeshaking flags 21.5 KB -0.25% -53 B 🔽
@sentry/browser (incl. Tracing) 35.5 KB -0.13% -47 B 🔽
@sentry/browser (incl. Tracing, Replay) 72.27 KB -0.07% -47 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.78 KB -0.1% -58 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 76.53 KB -0.07% -48 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 88.54 KB -0.07% -55 B 🔽
@sentry/browser (incl. Feedback) 39.06 KB -0.14% -54 B 🔽
@sentry/browser (incl. sendFeedback) 27.46 KB -0.19% -52 B 🔽
@sentry/browser (incl. FeedbackAsync) 32.25 KB -0.14% -43 B 🔽
@sentry/react 25.54 KB -0.23% -60 B 🔽
@sentry/react (incl. Tracing) 38.26 KB -0.14% -52 B 🔽
@sentry/vue 26.95 KB -0.2% -55 B 🔽
@sentry/vue (incl. Tracing) 37.23 KB -0.14% -52 B 🔽
@sentry/svelte 22.97 KB -0.2% -46 B 🔽
CDN Bundle 24.14 KB -0.19% -45 B 🔽
CDN Bundle (incl. Tracing) 35.84 KB -0.14% -50 B 🔽
CDN Bundle (incl. Tracing, Replay) 70.46 KB -0.07% -48 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 75.6 KB -0.09% -65 B 🔽
CDN Bundle - uncompressed 70.4 KB -0.23% -160 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 106.04 KB -0.15% -160 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 216.87 KB -0.08% -163 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 229.4 KB -0.07% -163 B 🔽
@sentry/nextjs (client) 38.38 KB -0.13% -51 B 🔽
@sentry/sveltekit (client) 36.03 KB -0.13% -48 B 🔽
@sentry/node 161.3 KB -0.04% -60 B 🔽
@sentry/node - without tracing 97.06 KB -0.06% -53 B 🔽
@sentry/aws-serverless 126.96 KB -0.04% -46 B 🔽

View base workflow run

@mydea mydea force-pushed the fn/drop-event-overload branch from 83f3f32 to 36b389c Compare January 14, 2025 09:46
@mydea mydea force-pushed the fn/drop-event-overload branch from 36b389c to 1e4a6dc Compare January 14, 2025 12:38
The event was no longer used for some time, instead you can (optionally) pass a count of dropped events as third argument. This has been around since v7, so we can finally clean this up here.
@mydea mydea force-pushed the fn/drop-event-overload branch from 1e4a6dc to c07dc67 Compare January 14, 2025 14:57
@mydea mydea merged commit 1f5edf6 into develop Jan 14, 2025
156 checks passed
@mydea mydea deleted the fn/drop-event-overload branch January 14, 2025 15:26
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