Skip to content

Commit ccee1e2

Browse files
committed
rename occurences
1 parent 68ebda6 commit ccee1e2

38 files changed

+567
-31
lines changed

.craft.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,23 @@ 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)
24+
- name: npm
25+
id: '@sentry-internal/replay'
26+
includeNames: /^sentry-internal-replay-\d.*\.tgz$/
27+
## 1.6 Replay package (browser only)
2428
- name: npm
2529
id: '@sentry/replay'
2630
includeNames: /^sentry-replay-\d.*\.tgz$/
27-
## 1.6. OpenTelemetry package
31+
## 1.7 OpenTelemetry package
2832
- name: npm
2933
id: '@sentry/opentelemetry'
3034
includeNames: /^sentry-opentelemetry-\d.*\.tgz$/
31-
## 1.7 Feedback package (browser only)
35+
## 1.8 Feedback package (browser only)
3236
- name: npm
3337
id: '@sentry-internal/feedback'
3438
includeNames: /^sentry-internal-feedback-\d.*\.tgz$/
35-
## 1.8 ReplayCanvas package (browser only)
39+
## 1.9 ReplayCanvas package (browser only)
3640
- name: npm
3741
id: '@sentry-internal/replay-canvas'
3842
includeNames: /^sentry-internal-replay-canvas-\d.*\.tgz$/

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 || *"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"packages/react",
6767
"packages/remix",
6868
"packages/replay",
69+
"packages/replay-internal",
6970
"packages/replay-canvas",
7071
"packages/replay-worker",
7172
"packages/svelte",

packages/browser/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
},
4444
"dependencies": {
4545
"@sentry-internal/feedback": "8.0.0-alpha.4",
46+
"@sentry-internal/replay": "8.0.0-alpha.4",
4647
"@sentry-internal/replay-canvas": "8.0.0-alpha.4",
4748
"@sentry-internal/tracing": "8.0.0-alpha.4",
4849
"@sentry/core": "8.0.0-alpha.4",

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
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
When
44
[updating the `rrweb` dependency](https://github.com/getsentry/sentry-javascript/blob/a493aa6a46555b944c8d896a2164bcd8b11caaf5/packages/replay/package.json?plain=1#LL55),
55
please be aware that
6-
[`@sentry/replay`'s README.md](https://github.com/getsentry/sentry-javascript/blob/a493aa6a46555b944c8d896a2164bcd8b11caaf5/packages/replay/README.md?plain=1#LL204)
6+
[`@sentry-internal/replay`'s README.md](https://github.com/getsentry/sentry-javascript/blob/a493aa6a46555b944c8d896a2164bcd8b11caaf5/packages/replay/README.md?plain=1#LL204)
77
also needs to be updated.

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 {

packages/replay-internal/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
When
44
[updating the `rrweb` dependency](https://github.com/getsentry/sentry-javascript/blob/a493aa6a46555b944c8d896a2164bcd8b11caaf5/packages/replay/package.json?plain=1#LL55),
55
please be aware that
6-
[`@sentry/replay`'s README.md](https://github.com/getsentry/sentry-javascript/blob/a493aa6a46555b944c8d896a2164bcd8b11caaf5/packages/replay/README.md?plain=1#LL204)
6+
[`@sentry-internal/replay`'s README.md](https://github.com/getsentry/sentry-javascript/blob/a493aa6a46555b944c8d896a2164bcd8b11caaf5/packages/replay/README.md?plain=1#LL204)
77
also needs to be updated.

packages/replay-internal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## Pre-requisites
1414

15-
`@sentry/replay` requires Node 14+, and browsers newer than IE11.
15+
`@sentry-internal/replay` requires Node 14+, and browsers newer than IE11.
1616

1717
## Installation
1818

packages/replay-internal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@sentry/replay",
2+
"name": "@sentry-internal/replay",
33
"version": "8.0.0-alpha.4",
44
"description": "User replays for Sentry",
55
"main": "build/npm/cjs/index.js",

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

packages/replay-worker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Sentry Session Replay Worker
88

9-
This is an internal package that is used by @sentry/replay. It generates a web worker and converts it to a string, so
9+
This is an internal package that is used by @sentry-internal/replay. It generates a web worker and converts it to a string, so
1010
that we can process it easier in replay.
1111

1212
By extracting this into a dedicated (private, internal) package, we can streamline the build of replay.

packages/replay-worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/replay-worker",
33
"version": "8.0.0-alpha.4",
4-
"description": "Worker for @sentry/replay",
4+
"description": "Worker for @sentry-internal/replay",
55
"main": "build/npm/esm/index.js",
66
"module": "build/npm/esm/index.js",
77
"types": "build/npm/types/index.d.ts",

packages/replay/.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
build/
3+
demo/build/
4+
# TODO: Check if we can re-introduce linting in demo
5+
demo
6+
metrics

packages/replay/.eslintrc.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Note: All paths are relative to the directory in which eslint is being run, rather than the directory where this file
2+
// lives
3+
4+
// ESLint config docs: https://eslint.org/docs/user-guide/configuring/
5+
6+
module.exports = {
7+
extends: ['../../.eslintrc.js'],
8+
overrides: [
9+
{
10+
files: ['src/**/*.ts'],
11+
},
12+
{
13+
files: ['jest.setup.ts', 'jest.config.ts'],
14+
parserOptions: {
15+
project: ['tsconfig.test.json'],
16+
},
17+
rules: {
18+
'no-console': 'off',
19+
},
20+
},
21+
{
22+
files: ['test/**/*.ts'],
23+
24+
rules: {
25+
// most of these errors come from `new Promise(process.nextTick)`
26+
'@typescript-eslint/unbound-method': 'off',
27+
// TODO: decide if we want to enable this again after the migration
28+
// We can take the freedom to be a bit more lenient with tests
29+
'@typescript-eslint/no-floating-promises': 'off',
30+
},
31+
},
32+
{
33+
files: ['src/types/deprecated.ts'],
34+
rules: {
35+
'@typescript-eslint/naming-convention': 'off',
36+
},
37+
},
38+
],
39+
};

packages/replay/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
/*.tgz
3+
.eslintcache
4+
build

packages/replay/CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Updating the rrweb dependency
2+
3+
When
4+
[updating the `rrweb` dependency](https://github.com/getsentry/sentry-javascript/blob/a493aa6a46555b944c8d896a2164bcd8b11caaf5/packages/replay/package.json?plain=1#LL55),
5+
please be aware that
6+
[`@sentry/replay`'s README.md](https://github.com/getsentry/sentry-javascript/blob/a493aa6a46555b944c8d896a2164bcd8b11caaf5/packages/replay/README.md?plain=1#LL204)
7+
also needs to be updated.

packages/replay/LICENSE

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Copyright (c) 2022 Sentry (https://sentry.io) and individual contributors. All rights reserved.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
4+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
5+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
6+
persons to whom the Software is furnished to do so, subject to the following conditions:
7+
8+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
9+
Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
12+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
13+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
14+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File renamed without changes.

0 commit comments

Comments
 (0)