Skip to content

Commit 3642c86

Browse files
committed
ref: Create common integrations that are exposed on @sentry/core and reexposed through browser/node
1 parent e820a81 commit 3642c86

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
## Unreleased
44

5-
- [browser] feat: Show dropped event url in blacklistUrl/whitelistUrl debug mode
6-
- [browser] feat: Use better event description instead of event_id for user-facing logs
5+
- [browser] feat: Show dropped event url in `blacklistUrl`/`whitelistUrl` debug mode
6+
- [browser] feat: Use better event description instead of `event_id` for user-facing logs
7+
- [core] ref: Create common integrations that are exposed on `@sentry/core` and reexposed through `browser`/`node`
78

89
## 4.0.0
910

packages/browser/src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ export { BrowserClient } from './client';
3131
export { defaultIntegrations, init, lastEventId, showReportDialog } from './sdk';
3232
export { SDK_NAME, SDK_VERSION } from './version';
3333

34-
import * as Integrations from './integrations';
34+
import { Integrations as CoreIntegrations } from '@sentry/core';
35+
import * as BrowserIntegrations from './integrations';
3536
import * as Transports from './transports';
3637

37-
export { Integrations, Transports };
38+
const INTEGRATIONS = {
39+
...CoreIntegrations,
40+
...BrowserIntegrations,
41+
};
42+
43+
export { INTEGRATIONS as Integrations, Transports };

packages/core/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ export { SentryError } from './error';
1616
export { RequestBuffer } from './requestbuffer';
1717
export { Backend, Client, LogLevel, Options } from './interfaces';
1818
export { initAndBind, ClientClass } from './sdk';
19+
20+
import * as Integrations from './integrations';
21+
22+
export { Integrations };
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// TODO

packages/node/src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,14 @@ export { NodeClient } from './client';
3131
export { defaultIntegrations, init } from './sdk';
3232
export { SDK_NAME, SDK_VERSION } from './version';
3333

34+
import { Integrations as CoreIntegrations } from '@sentry/core';
3435
import * as Handlers from './handlers';
35-
import * as Integrations from './integrations';
36+
import * as NodeIntegrations from './integrations';
3637
import * as Transports from './transports';
3738

38-
export { Integrations, Transports, Handlers };
39+
const INTEGRATIONS = {
40+
...CoreIntegrations,
41+
...NodeIntegrations,
42+
};
43+
44+
export { INTEGRATIONS as Integrations, Transports, Handlers };

0 commit comments

Comments
 (0)