Skip to content

Commit 28d5ebe

Browse files
s1gr1dc298lee
authored andcommitted
ref(replay): Move @sentry/replay code to @sentry-internal/replay (#11200)
closes #9165
1 parent 02f1ba6 commit 28d5ebe

File tree

180 files changed

+50
-288
lines changed

Some content is hidden

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

180 files changed

+50
-288
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';

0 commit comments

Comments
 (0)