Skip to content

Commit 2e4e862

Browse files
s1gr1dcadesalaberry
authored andcommitted
ref(replay): Move @sentry/replay code to @sentry-internal/replay (getsentry#11200)
closes getsentry#9165
1 parent 0742795 commit 2e4e862

File tree

179 files changed

+50
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+50
-201
lines changed

.craft.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ targets:
2020
- name: npm
2121
id: '@sentry-internal/tracing'
2222
includeNames: /^sentry-internal-tracing-\d.*\.tgz$/
23-
## 1.5 Replay package (browser only)
23+
## 1.5 Replay Internal package (browser only)
2424
- name: npm
25-
id: '@sentry/replay'
26-
includeNames: /^sentry-replay-\d.*\.tgz$/
27-
## 1.6. OpenTelemetry package
25+
id: '@sentry-internal/replay'
26+
includeNames: /^sentry-internal-replay-\d.*\.tgz$/
27+
## 1.6 OpenTelemetry package
2828
- name: npm
2929
id: '@sentry/opentelemetry'
3030
includeNames: /^sentry-opentelemetry-\d.*\.tgz$/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

MIGRATION.md

Lines changed: 8 additions & 0 deletions

README.md

Lines changed: 2 additions & 2 deletions

dev-packages/browser-integration-tests/suites/replay/bufferMode/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from '@playwright/test';
2-
import type { replayIntegration as actualReplayIntegration } from '@sentry/replay';
3-
import type { ReplayContainer } from '@sentry/replay/build/npm/types/types';
2+
import type { replayIntegration as actualReplayIntegration } from '@sentry-internal/replay';
3+
import type { ReplayContainer } from '@sentry-internal/replay/build/npm/types/types';
44

55
import { sentryTest } from '../../../utils/fixtures';
66
import { envelopeRequestParser, waitForErrorRequest } from '../../../utils/helpers';

dev-packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { replayIntegration } from '@sentry-internal/replay';
12
import * as Sentry from '@sentry/browser';
2-
import { replayIntegration } from '@sentry/replay';
33

44
window.Sentry = Sentry;
55
window.Replay = replayIntegration({

dev-packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { SDK_VERSION } from '@sentry/browser';
44
import { sentryTest } from '../../../utils/fixtures';
55
import { getReplayEvent, shouldSkipReplayTest, waitForReplayRequest } from '../../../utils/replayHelpers';
66

7-
sentryTest('should capture replays (@sentry/replay export)', async ({ getLocalTestPath, page }) => {
7+
sentryTest('should capture replays (@sentry-internal/replay export)', async ({ getLocalTestPath, page }) => {
88
if (shouldSkipReplayTest()) {
99
sentryTest.skip();
1010
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class SentryScenarioGenerationPlugin {
162162
? {
163163
// To help Webpack resolve Sentry modules in `import` statements in cases where they're provided in bundles rather than in `node_modules`
164164
'@sentry/browser': 'Sentry',
165-
'@sentry/replay': 'Sentry',
165+
'@sentry-internal/replay': 'Sentry',
166166
'@sentry/wasm': 'Sentry',
167167
}
168168
: {};

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import type { Page, Request, Response } from '@playwright/test';
22
/* eslint-disable max-lines */
33
import type { ReplayCanvasIntegrationOptions } from '@sentry-internal/replay-canvas';
4-
import type { fullSnapshotEvent, incrementalSnapshotEvent } from '@sentry-internal/rrweb';
5-
import { EventType } from '@sentry-internal/rrweb';
6-
import type { ReplayEventWithTime } from '@sentry/browser';
74
import type {
85
InternalEventContext,
96
RecordingEvent,
107
ReplayContainer,
118
ReplayPluginOptions,
129
Session,
13-
} from '@sentry/replay/build/npm/types/types';
10+
} from '@sentry-internal/replay/build/npm/types/types';
11+
import type { fullSnapshotEvent, incrementalSnapshotEvent } from '@sentry-internal/rrweb';
12+
import { EventType } from '@sentry-internal/rrweb';
13+
import type { ReplayEventWithTime } from '@sentry/browser';
1414
import type { Breadcrumb, Event, ReplayEvent, ReplayRecordingMode } from '@sentry/types';
1515
import pako from 'pako';
1616

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
// biome-ignore lint/nursery/noUnusedImports:
2+
import * as _SentryReplay from '@sentry-internal/replay';
13
// biome-ignore lint/nursery/noUnusedImports: we need to import the SDK to ensure tsc check the types
24
import * as _SentryBrowser from '@sentry/browser';
35
// biome-ignore lint/nursery/noUnusedImports:
46
import * as _SentryCore from '@sentry/core';
57
// biome-ignore lint/nursery/noUnusedImports:
68
import * as _SentryNode from '@sentry/node';
79
// biome-ignore lint/nursery/noUnusedImports:
8-
import * as _SentryReplay from '@sentry/replay';
9-
// biome-ignore lint/nursery/noUnusedImports:
1010
import * as _SentryTypes from '@sentry/types';
1111
// biome-ignore lint/nursery/noUnusedImports:
1212
import * as _SentryUtils from '@sentry/utils';

dev-packages/e2e-tests/test-applications/generic-ts3.8/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@sentry/browser": "latest || *",
1717
"@sentry/core": "latest || *",
1818
"@sentry/node": "latest || *",
19-
"@sentry/replay": "latest || *",
19+
"@sentry-internal/replay": "latest || *",
2020
"@sentry/types": "latest || *",
2121
"@sentry/utils": "latest || *",
2222
"@sentry/wasm": "latest || *"

dev-packages/e2e-tests/verdaccio-config/config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ packages:
122122
unpublish: $all
123123
# proxy: npmjs # Don't proxy for E2E tests!
124124

125-
'@sentry/replay':
126-
access: $all
127-
publish: $all
128-
unpublish: $all
129-
# proxy: npmjs # Don't proxy for E2E tests!
130-
131125
'@sentry/aws-serverless':
132126
access: $all
133127
publish: $all

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"packages/profiling-node",
6666
"packages/react",
6767
"packages/remix",
68-
"packages/replay",
68+
"packages/replay-internal",
6969
"packages/replay-canvas",
7070
"packages/replay-worker",
7171
"packages/svelte",

packages/browser/rollup.bundle.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const tracingBaseBundleConfig = makeBaseBundleConfig({
5252
const replayBaseBundleConfig = makeBaseBundleConfig({
5353
bundleType: 'standalone',
5454
entrypoints: ['src/index.bundle.replay.ts'],
55-
licenseTitle: '@sentry/browser & @sentry/replay',
55+
licenseTitle: '@sentry/browser (Replay)',
5656
outputFileBase: () => 'bundles/bundle.replay',
5757
});
5858

packages/browser/src/index.bundle.replay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
browserTracingIntegrationShim,
55
feedbackIntegrationShim,
66
} from '@sentry-internal/integration-shims';
7-
import { replayIntegration } from '@sentry/replay';
7+
import { replayIntegration } from '@sentry-internal/replay';
88

99
export * from './index.bundle.base';
1010
export {

packages/browser/src/index.bundle.tracing.replay.feedback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { feedbackIntegration } from '@sentry-internal/feedback';
2+
import { replayIntegration } from '@sentry-internal/replay';
23
import { browserTracingIntegration } from '@sentry-internal/tracing';
34
import { addTracingExtensions } from '@sentry/core';
4-
import { replayIntegration } from '@sentry/replay';
55

66
// We are patching the global object with our hub extension methods
77
addTracingExtensions();

packages/browser/src/index.bundle.tracing.replay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { feedbackIntegrationShim } from '@sentry-internal/integration-shims';
2+
import { replayIntegration } from '@sentry-internal/replay';
23
import { browserTracingIntegration } from '@sentry-internal/tracing';
34
import { addTracingExtensions } from '@sentry/core';
4-
import { replayIntegration } from '@sentry/replay';
55

66
// We are patching the global object with our hub extension methods
77
addTracingExtensions();

packages/browser/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export {
3232
export {
3333
replayIntegration,
3434
getReplay,
35-
} from '@sentry/replay';
35+
} from '@sentry-internal/replay';
3636
export type {
3737
ReplayEventType,
3838
ReplayEventWithTime,
@@ -43,7 +43,7 @@ export type {
4343
ReplayFrameEvent,
4444
ReplaySpanFrame,
4545
ReplaySpanFrameEvent,
46-
} from '@sentry/replay';
46+
} from '@sentry-internal/replay';
4747

4848
export { replayCanvasIntegration } from '@sentry-internal/replay-canvas';
4949

packages/nextjs/test/integration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@sentry/node-experimental": "file:../../../node",
3232
"@sentry/opentelemetry": "file:../../../opentelemetry",
3333
"@sentry/react": "file:../../../react",
34-
"@sentry/replay": "file:../../../replay",
34+
"@sentry-internal/replay": "file:../../../replay-internal",
3535
"@sentry-internal/replay-canvas": "file:../../../replay-canvas",
3636
"@sentry-internal/tracing": "file:../../../tracing-internal",
3737
"@sentry-internal/feedback": "file:../../../feedback",

packages/remix/test/integration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@sentry/node": "file:../../../node-experimental",
2929
"@sentry/opentelemetry": "file:../../../opentelemetry",
3030
"@sentry/react": "file:../../../react",
31-
"@sentry/replay": "file:../../../replay",
31+
"@sentry-internal/replay": "file:../../../replay-internal",
3232
"@sentry-internal/replay-canvas": "file:../../../replay-canvas",
3333
"@sentry-internal/tracing": "file:../../../tracing-internal",
3434
"@sentry-internal/feedback": "file:../../../feedback",

packages/replay-canvas/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

packages/replay-canvas/src/canvas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { CanvasManagerInterface, CanvasManagerOptions } from '@sentry-internal/replay';
12
import { CanvasManager } from '@sentry-internal/rrweb';
23
import { defineIntegration } from '@sentry/core';
3-
import type { CanvasManagerInterface, CanvasManagerOptions } from '@sentry/replay';
44
import type { IntegrationFn } from '@sentry/types';
55

66
interface ReplayCanvasOptions {
File renamed without changes.
File renamed without changes.

packages/replay/CONTRIBUTING.md renamed to packages/replay-internal/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
File renamed without changes.

packages/replay/README.md renamed to packages/replay-internal/README.md

Lines changed: 7 additions & 4 deletions
File renamed without changes.

packages/replay/rollup.bundle.config.mjs renamed to packages/replay-internal/rollup.bundle.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { makeBaseBundleConfig, makeBundleConfigVariants } from '@sentry-internal
33
const baseBundleConfig = makeBaseBundleConfig({
44
bundleType: 'addon',
55
entrypoints: ['src/index.ts'],
6-
licenseTitle: '@sentry/replay',
6+
licenseTitle: '@sentry-internal/replay',
77
outputFileBase: () => 'bundles/replay',
88
});
99

File renamed without changes.

packages/replay-worker/README.md

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)