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(v7): Export pluggable integrations from SDK packages #11723

Merged
merged 4 commits into from Apr 23, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 22, 2024

This exports the functional integrations from @sentry/integrations from each package.

In v8, the @sentry/integrations package will be gone, and the migration path is to just use it from the SDK package itself.

@mydea mydea requested review from Lms24 and AbhiPrasad April 22, 2024 15:23
@mydea mydea self-assigned this Apr 22, 2024
@@ -3,7 +3,7 @@
/* eslint-disable deprecation/deprecation */
import type { Event, EventProcessor, Hub, Integration } from '@sentry/types';
import { GLOBAL_OBJ, logger, normalize, uuid4 } from '@sentry/utils';
import localForage from 'localforage';
import * as localForage from 'localforage';
Copy link
Member Author

Choose a reason for hiding this comment

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

Without this deno complained at build time, even if this is not used by the package 😬

@AbhiPrasad AbhiPrasad mentioned this pull request Apr 22, 2024
@@ -35,7 +35,6 @@
"localforage": "^1.8.1"
},
"devDependencies": {
"@sentry/browser": "7.111.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

This lead to a circular dependency, and we only used it in a single test for WINDOW anyhow 😬

Copy link
Contributor

github-actions bot commented Apr 23, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 80.71 KB (+0.17% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 71.68 KB (+0.19% 🔺)
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 75.7 KB (+0.19% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 65.31 KB (+0.2% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 35.62 KB (+0.37% 🔺)
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 35.5 KB (+0.38% 🔺)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.57 KB (0%)
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.58 KB (0%)
@sentry/browser - Webpack (gzipped) 22.78 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 78.89 KB (+0.16% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 70.25 KB (+0.2% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 36.02 KB (+0.36% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 25.27 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 221.21 KB (+0.23% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 109.01 KB (+0.45% 🔺)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 75.79 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 39.3 KB (+0.35% 🔺)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 72.17 KB (+0.2% 🔺)
@sentry/react - Webpack (gzipped) 22.81 KB (0%)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 90 KB (+0.15% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 54.15 KB (+0.26% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 17.32 KB (0%)

@mydea mydea merged commit da5ba09 into v7 Apr 23, 2024
103 checks passed
@mydea mydea deleted the fn/export-integrations branch April 23, 2024 07:39
@mydea mydea changed the title feat: Export pluggable integrations from SDK packages feat(v7): Export pluggable integrations from SDK packages Apr 23, 2024
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.

None yet

2 participants