Skip to content

Commit aeb4922

Browse files
committed
delete sentry/integration deps
1 parent 6eb9214 commit aeb4922

File tree

36 files changed

+57
-50
lines changed

36 files changed

+57
-50
lines changed

.craft.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ targets:
7070
- name: npm
7171
id: '@sentry/wasm'
7272
includeNames: /^sentry-wasm-\d.*\.tgz$/
73-
- name: npm
74-
id: '@sentry/integrations'
75-
includeNames: /^sentry-integrations-\d.*\.tgz$/
7673

7774
## 4. WinterCG Packages
7875
- name: npm

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ jobs:
101101
- 'packages/tracing-internal/**'
102102
- 'packages/utils/**'
103103
- 'packages/types/**'
104-
- 'packages/integrations/**'
105104
browser: &browser
106105
- *shared
107106
- 'packages/browser/**'
@@ -424,7 +423,6 @@ jobs:
424423
name: ${{ github.sha }}
425424
path: |
426425
${{ github.workspace }}/packages/browser/build/bundles/**
427-
${{ github.workspace }}/packages/integrations/build/bundles/**
428426
${{ github.workspace }}/packages/replay/build/bundles/**
429427
${{ github.workspace }}/packages/replay-canvas/build/bundles/**
430428
${{ github.workspace }}/packages/**/*.tgz

MIGRATION.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,23 @@ Sentry SDK requires the fetch API to be available in the environment.
112112
[`error.cause`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) by
113113
default.
114114

115+
## Integrations
116+
117+
We moved optional integrations from their own package (`@sentry/integrations`) to `@sentry/browser` and `@sentry/node`.
118+
119+
Integrations that are now exported from `@sentry/browser` :
120+
- httpClientIntegration
121+
- contextLinesIntegration
122+
- reportingObserverIntegration
123+
124+
Integrations that are now exported from `@sentry/node` and `@sentry/browser` (or framework-specific packages like `@sentry/react`):
125+
- captureConsoleIntegration
126+
- debugIntegration
127+
- dedupeIntegration
128+
- extraErrorDataIntegration
129+
- rewriteFramesIntegration
130+
- sessionTimingIntegration
131+
115132
# Deprecations in 7.x
116133

117134
You can use the **Experimental** [@sentry/migr8](https://www.npmjs.com/package/@sentry/migr8) to automatically update

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ package. Please refer to the README and instructions of those SDKs for more deta
5757
- [`@sentry/gatsby`](https://github.com/getsentry/sentry-javascript/tree/master/packages/gatsby): SDK for Gatsby
5858
- [`@sentry/nextjs`](https://github.com/getsentry/sentry-javascript/tree/master/packages/nextjs): SDK for Next.js
5959
- [`@sentry/remix`](https://github.com/getsentry/sentry-javascript/tree/master/packages/remix): SDK for Remix
60-
- [`@sentry/integrations`](https://github.com/getsentry/sentry-javascript/tree/master/packages/integrations): Pluggable
61-
integrations that can be used to enhance JS SDKs
6260
- [`@sentry/serverless`](https://github.com/getsentry/sentry-javascript/tree/master/packages/serverless): SDK for
6361
Serverless Platforms (AWS, GCP)
6462
- [`@sentry/electron`](https://github.com/getsentry/sentry-electron): SDK for Electron with support for native crashes
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import * as Sentry from '@sentry/browser';
2-
import { contextLinesIntegration } from '@sentry/integrations';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [contextLinesIntegration()],
7+
integrations: [Sentry.contextLinesIntegration()],
98
});
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import * as Sentry from '@sentry/browser';
2-
import { httpClientIntegration } from '@sentry/integrations';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [httpClientIntegration()],
7+
integrations: [Sentry.httpClientIntegration()],
98
tracesSampleRate: 1,
109
sendDefaultPii: true,
1110
});
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import * as Sentry from '@sentry/browser';
2-
import { httpClientIntegration } from '@sentry/integrations';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [httpClientIntegration()],
7+
integrations: [Sentry.httpClientIntegration()],
98
tracesSampleRate: 1,
109
sendDefaultPii: true,
1110
});
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import * as Sentry from '@sentry/browser';
2-
import { httpClientIntegration } from '@sentry/integrations';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [httpClientIntegration()],
7+
integrations: [Sentry.httpClientIntegration()],
98
tracesSampleRate: 1,
109
sendDefaultPii: true,
1110
});

dev-packages/browser-integration-tests/utils/generatePlugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ class SentryScenarioGenerationPlugin {
169169
// To help Webpack resolve Sentry modules in `import` statements in cases where they're provided in bundles rather than in `node_modules`
170170
'@sentry/browser': 'Sentry',
171171
'@sentry/replay': 'Sentry',
172-
'@sentry/integrations': 'Sentry',
173172
'@sentry/wasm': 'Sentry',
174173
}
175174
: {};

dev-packages/e2e-tests/test-applications/generic-ts3.8/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import * as _SentryBrowser from '@sentry/browser';
33
// biome-ignore lint/nursery/noUnusedImports:
44
import * as _SentryCore from '@sentry/core';
55
// biome-ignore lint/nursery/noUnusedImports:
6-
import * as _SentryIntegrations from '@sentry/integrations';
7-
// biome-ignore lint/nursery/noUnusedImports:
86
import * as _SentryNode from '@sentry/node';
97
// biome-ignore lint/nursery/noUnusedImports:
108
import * as _SentryOpentelemetry from '@sentry/opentelemetry-node';

0 commit comments

Comments
 (0)