Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ targets:
id: '@sentry/node-core'
includeNames: /^sentry-node-core-\d.*\.tgz$/
- name: npm
id: '@sentry-internal/server-utils'
includeNames: /^sentry-internal-server-utils-\d.*\.tgz$/
id: '@sentry/server-utils'
includeNames: /^sentry-server-utils-\d.*\.tgz$/
## 1.3 Browser Utils package
- name: npm
id: '@sentry-internal/browser-utils'
includeNames: /^sentry-internal-browser-utils-\d.*\.tgz$/
## 1.4 Replay Internal package (browser only)
id: '@sentry/browser-utils'
includeNames: /^sentry-browser-utils-\d.*\.tgz$/
## 1.4 Replay package (browser only)
- name: npm
id: '@sentry-internal/replay'
includeNames: /^sentry-internal-replay-\d.*\.tgz$/
id: '@sentry/replay'
includeNames: /^sentry-replay-\d.*\.tgz$/
## 1.5 OpenTelemetry package
- name: npm
id: '@sentry/opentelemetry'
includeNames: /^sentry-opentelemetry-\d.*\.tgz$/
## 1.6 Feedback package (browser only)
- name: npm
id: '@sentry-internal/feedback'
includeNames: /^sentry-internal-feedback-\d.*\.tgz$/
id: '@sentry/feedback'
includeNames: /^sentry-feedback-\d.*\.tgz$/
## 1.7 ReplayCanvas package (browser only)
- name: npm
id: '@sentry-internal/replay-canvas'
includeNames: /^sentry-internal-replay-canvas-\d.*\.tgz$/
id: '@sentry/replay-canvas'
includeNames: /^sentry-replay-canvas-\d.*\.tgz$/

## 2. Browser & Node SDKs
- name: npm
Expand Down Expand Up @@ -149,15 +149,15 @@ targets:
## 7. Other Packages
## 7.1
- name: npm
id: '@sentry-internal/typescript'
includeNames: /^sentry-internal-typescript-\d.*\.tgz$/
id: '@sentry/typescript'
includeNames: /^sentry-typescript-\d.*\.tgz$/
- name: npm
id: '@sentry-internal/eslint-plugin-sdk'
includeNames: /^sentry-internal-eslint-plugin-sdk-\d.*\.tgz$/
id: '@sentry/eslint-plugin-sdk'
includeNames: /^sentry-eslint-plugin-sdk-\d.*\.tgz$/
## 7.2
- name: npm
id: '@sentry-internal/eslint-config-sdk'
includeNames: /^sentry-internal-eslint-config-sdk-\d.*\.tgz$/
id: '@sentry/eslint-config-sdk'
includeNames: /^sentry-eslint-config-sdk-\d.*\.tgz$/

# AWS Lambda Layer target
- name: aws-lambda-layer
Expand Down
2 changes: 1 addition & 1 deletion .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"jsPlugins": [
{
"name": "sdk",
"specifier": "@sentry-internal/eslint-plugin-sdk"
"specifier": "@sentry/eslint-plugin-sdk"
}
],
"categories": {},
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Besides the high-level SDKs, this repository contains shared packages, helpers a
development. If you're thinking about contributing to or creating a JavaScript-based SDK, have a look at the resources
below:

- [`@sentry-internal/replay`](https://github.com/getsentry/sentry-javascript/tree/master/packages/replay-internal):
- [`@sentry/replay`](https://github.com/getsentry/sentry-javascript/tree/master/packages/replay-internal):
Provides the integration for Session Replay.
- [`@sentry/core`](https://github.com/getsentry/sentry-javascript/tree/master/packages/core): The base for all
JavaScript SDKs with interfaces, type definitions and base classes.
Expand Down
4 changes: 2 additions & 2 deletions dev-packages/browser-integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
"@babel/core": "^7.27.7",
"@babel/preset-typescript": "^7.16.7",
"@playwright/test": "~1.56.0",
"@sentry-internal/rrweb": "2.43.0",
"@sentry/rrweb": "2.43.2",
"@sentry/browser": "10.57.0",
"@sentry-internal/replay": "10.57.0",
"@sentry/replay": "10.57.0",
"@sentry/opentelemetry": "10.57.0",
"@supabase/supabase-js": "2.49.3",
"axios": "1.16.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from '@playwright/test';
import type { replayIntegration as actualReplayIntegration } from '@sentry-internal/replay';
import type { ReplayContainer } from '@sentry-internal/replay/build/npm/types/types';
import type { replayIntegration as actualReplayIntegration } from '@sentry/replay';
import type { ReplayContainer } from '@sentry/replay/build/npm/types/types';
import { sentryTest } from '../../../utils/fixtures';
import { envelopeRequestParser, waitForErrorRequest } from '../../../utils/helpers';
import { expectedClickBreadcrumb, getExpectedReplayEvent } from '../../../utils/replayEventTemplates';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/browser';
import { replayIntegration } from '@sentry-internal/replay';
import { replayIntegration } from '@sentry/replay';

window.Sentry = Sentry;
window.Replay = replayIntegration({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SDK_VERSION } from '@sentry/browser';
import { sentryTest, TEST_HOST } from '../../../utils/fixtures';
import { getReplayEvent, shouldSkipReplayTest, waitForReplayRequest } from '../../../utils/replayHelpers';

sentryTest('should capture replays (@sentry-internal/replay export)', async ({ getLocalTestUrl, page }) => {
sentryTest('should capture replays (@sentry/replay export)', async ({ getLocalTestUrl, page }) => {
if (shouldSkipReplayTest()) {
sentryTest.skip();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from '@playwright/test';
import type { inputData } from '@sentry-internal/rrweb';
import { IncrementalSource } from '@sentry-internal/rrweb';
import type { inputData } from '@sentry/rrweb';
import { IncrementalSource } from '@sentry/rrweb';
import { sentryTest } from '../../../utils/fixtures';
import type { IncrementalRecordingSnapshot } from '../../../utils/replayHelpers';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from '@playwright/test';
import type { mutationData } from '@sentry-internal/rrweb-types';
import type { mutationData } from '@sentry/rrweb-types';
import { sentryTest } from '../../../utils/fixtures';
import type { RecordingSnapshot } from '../../../utils/replayHelpers';
import { collectReplayRequests, shouldSkipReplayTest, waitForReplayRequest } from '../../../utils/replayHelpers';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from '@playwright/test';
import type { inputData } from '@sentry-internal/rrweb';
import { IncrementalSource } from '@sentry-internal/rrweb';
import type { inputData } from '@sentry/rrweb';
import { IncrementalSource } from '@sentry/rrweb';
import { sentryTest } from '../../../utils/fixtures';
import type { IncrementalRecordingSnapshot } from '../../../utils/replayHelpers';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from '@playwright/test';
import type { inputData } from '@sentry-internal/rrweb';
import { IncrementalSource } from '@sentry-internal/rrweb';
import type { inputData } from '@sentry/rrweb';
import { IncrementalSource } from '@sentry/rrweb';
import { sentryTest } from '../../../utils/fixtures';
import type { IncrementalRecordingSnapshot } from '../../../utils/replayHelpers';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from '@playwright/test';
import type { replayIntegration as actualReplayIntegration } from '@sentry-internal/replay';
import type { replayIntegration as actualReplayIntegration } from '@sentry/replay';
import { sentryTest } from '../../../utils/fixtures';
import { getExpectedReplayEvent } from '../../../utils/replayEventTemplates';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addLcpInstrumentationHandler } from '@sentry-internal/browser-utils';
import { addLcpInstrumentationHandler } from '@sentry/browser-utils';

addLcpInstrumentationHandler(({ metric }) => {
const entry = metric.entries[metric.entries.length - 1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class SentryScenarioGenerationPlugin {
? {
// To help Webpack resolve Sentry modules in `import` statements in cases where they're provided in bundles rather than in `node_modules`
'@sentry/browser': 'Sentry',
'@sentry-internal/replay': 'Sentry',
'@sentry/replay': 'Sentry',
'@sentry/wasm': 'Sentry',
}
: {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import type {
ReplayContainer,
ReplayPluginOptions,
Session,
} from '@sentry-internal/replay/build/npm/types/types';
} from '@sentry/replay/build/npm/types/types';
/* eslint-disable max-lines */
import type { ReplayCanvasIntegrationOptions } from '@sentry-internal/replay-canvas';
import type { fullSnapshotEvent, incrementalSnapshotEvent } from '@sentry-internal/rrweb';
import { EventType } from '@sentry-internal/rrweb';
import type { ReplayCanvasIntegrationOptions } from '@sentry/replay-canvas';
import type { fullSnapshotEvent, incrementalSnapshotEvent } from '@sentry/rrweb';
import { EventType } from '@sentry/rrweb';
import { decompressSync, strFromU8 } from 'fflate';
import { envelopeRequestParser } from './helpers';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class LocalLambdaStack extends Stack {
{ dir: 'core', name: '@sentry/core' },
{ dir: 'node-core', name: '@sentry/node-core' },
{ dir: 'opentelemetry', name: '@sentry/opentelemetry' },
{ dir: 'server-utils', name: '@sentry-internal/server-utils' },
{ dir: 'server-utils', name: '@sentry/server-utils' },
];
const dependencies: Record<string, string> = {};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as _SentryReplay from '@sentry-internal/replay';
import * as _SentryReplay from '@sentry/replay';
import * as _SentryBrowser from '@sentry/browser';
import * as _SentryCore from '@sentry/core';
import * as _SentryNode from '@sentry/node';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@sentry/browser": "file:../../packed/sentry-browser-packed.tgz",
"@sentry/core": "file:../../packed/sentry-core-packed.tgz",
"@sentry/node": "file:../../packed/sentry-node-packed.tgz",
"@sentry-internal/replay": "file:../../packed/sentry-internal-replay-packed.tgz",
"@sentry/replay": "file:../../packed/sentry-replay-packed.tgz",
"@sentry/wasm": "file:../../packed/sentry-wasm-packed.tgz"
},
"pnpm": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as _SentryReplay from '@sentry-internal/replay';
import * as _SentryReplay from '@sentry/replay';
import * as _SentryBrowser from '@sentry/browser';
import * as _SentryCore from '@sentry/core';
import * as _SentryNode from '@sentry/node';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@sentry/browser": "file:../../packed/sentry-browser-packed.tgz",
"@sentry/core": "file:../../packed/sentry-core-packed.tgz",
"@sentry/node": "file:../../packed/sentry-node-packed.tgz",
"@sentry-internal/replay": "file:../../packed/sentry-internal-replay-packed.tgz",
"@sentry/replay": "file:../../packed/sentry-replay-packed.tgz",
"@sentry/wasm": "file:../../packed/sentry-wasm-packed.tgz"
},
"volta": {
Expand Down
4 changes: 2 additions & 2 deletions docs/adding-cdn-bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ export { setActiveSpanInBrowser } from './tracing/setActiveSpan';
**For REPLAY:**

```typescript
export { replayIntegration, getReplay } from '@sentry-internal/replay';
export { replayIntegration, getReplay } from '@sentry/replay';
```

**For FEEDBACK:**

```typescript
import { feedbackAsyncIntegration } from './feedbackAsync';
export { getFeedback, sendFeedback } from '@sentry-internal/feedback';
export { getFeedback, sendFeedback } from '@sentry/feedback';
export { feedbackAsyncIntegration as feedbackAsyncIntegration, feedbackAsyncIntegration as feedbackIntegration };
```

Expand Down
2 changes: 1 addition & 1 deletion packages/angular/.oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"jsPlugins": [
{
"name": "sdk",
"specifier": "@sentry-internal/eslint-plugin-sdk"
"specifier": "@sentry/eslint-plugin-sdk"
}
],
"env": {
Expand Down
13 changes: 7 additions & 6 deletions packages/browser-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

# Sentry JavaScript SDK Browser Utilities

[![npm version](https://img.shields.io/npm/v/@sentry-internal/browser-utils.svg)](https://www.npmjs.com/package/@sentry-internal/browser-utils)
[![npm dm](https://img.shields.io/npm/dm/@sentry-internal/browser-utils.svg)](https://www.npmjs.com/package/@sentry-internal/browser-utils)
[![npm dt](https://img.shields.io/npm/dt/@sentry-internal/browser-utils.svg)](https://www.npmjs.com/package/@sentry-internal/browser-utils)
[![npm version](https://img.shields.io/npm/v/@sentry/browser-utils.svg)](https://www.npmjs.com/package/@sentry/browser-utils)
[![npm dm](https://img.shields.io/npm/dm/@sentry/browser-utils.svg)](https://www.npmjs.com/package/@sentry/browser-utils)
[![npm dt](https://img.shields.io/npm/dt/@sentry/browser-utils.svg)](https://www.npmjs.com/package/@sentry/browser-utils)

> [!NOTE]
> This package is an internal library published for use by Sentry-owned JavaScript SDK packages. It is not part of the
> public API contract and may change in any release. Do not rely on SemVer compatibility if you depend on it directly.

## Links

Expand All @@ -17,6 +21,3 @@
## General

Common utilities used by the Sentry JavaScript SDKs.

Note: This package is only meant to be used internally, and as such is not part of our public API contract and does not
follow semver.
4 changes: 2 additions & 2 deletions packages/browser-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@sentry-internal/browser-utils",
"name": "@sentry/browser-utils",
"version": "10.57.0",
"description": "Browser Utilities for all Sentry JavaScript SDKs",
"repository": "git://github.com/getsentry/sentry-javascript.git",
Expand Down Expand Up @@ -53,7 +53,7 @@
"build:dev:watch": "run-p build:transpile:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
"build:tarball": "npm pack",
"clean": "rimraf build coverage sentry-internal-browser-utils-*.tgz",
"clean": "rimraf build coverage sentry-browser-utils-*.tgz",
"lint:fix": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --fix --type-aware",
"lint": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --type-aware",
"lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module",
Expand Down
8 changes: 4 additions & 4 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"access": "public"
},
"dependencies": {
"@sentry-internal/browser-utils": "10.57.0",
"@sentry-internal/feedback": "10.57.0",
"@sentry-internal/replay": "10.57.0",
"@sentry-internal/replay-canvas": "10.57.0",
"@sentry/browser-utils": "10.57.0",
"@sentry/feedback": "10.57.0",
"@sentry/replay": "10.57.0",
"@sentry/replay-canvas": "10.57.0",
"@sentry/core": "10.57.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/src/feedbackAsync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { buildFeedbackIntegration } from '@sentry-internal/feedback';
import { buildFeedbackIntegration } from '@sentry/feedback';
import { lazyLoadIntegration } from './utils/lazyLoadIntegration';

/**
Expand Down
6 changes: 1 addition & 5 deletions packages/browser/src/feedbackSync.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
buildFeedbackIntegration,
feedbackModalIntegration,
feedbackScreenshotIntegration,
} from '@sentry-internal/feedback';
import { buildFeedbackIntegration, feedbackModalIntegration, feedbackScreenshotIntegration } from '@sentry/feedback';

/** Add a widget to capture user feedback to your application. */
export const feedbackSyncIntegration: ReturnType<typeof buildFeedbackIntegration> = buildFeedbackIntegration({
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/src/index.bundle.feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export * from './index.bundle.base';
// TODO(v11): Export metricsShim here once we remove metrics from the base bundle.
export { consoleLoggingIntegrationShim as consoleLoggingIntegration, loggerShim as logger };

export { getFeedback, sendFeedback } from '@sentry-internal/feedback';
export { getFeedback, sendFeedback } from '@sentry/feedback';

export {
browserTracingIntegrationShim as browserTracingIntegration,
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/src/index.bundle.logs.metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export * from './index.bundle.base';
// TODO(v11): Export metrics here once we remove it from the base bundle.
export { logger, consoleLoggingIntegration } from '@sentry/core/browser';

export { elementTimingIntegration } from '@sentry-internal/browser-utils';
export { elementTimingIntegration } from '@sentry/browser-utils';

export {
browserTracingIntegrationShim as browserTracingIntegration,
Expand Down
4 changes: 2 additions & 2 deletions packages/browser/src/index.bundle.replay.feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export * from './index.bundle.base';
// TODO(v11): Export metricsShim here once we remove metrics from the base bundle.
export { consoleLoggingIntegrationShim as consoleLoggingIntegration, loggerShim as logger };

export { getFeedback, sendFeedback } from '@sentry-internal/feedback';
export { getFeedback, sendFeedback } from '@sentry/feedback';

export {
browserTracingIntegrationShim as browserTracingIntegration,
Expand All @@ -24,4 +24,4 @@ export {
fetchStreamPerformanceIntegrationShim as fetchStreamPerformanceIntegration,
};

export { replayIntegration, getReplay } from '@sentry-internal/replay';
export { replayIntegration, getReplay } from '@sentry/replay';
4 changes: 2 additions & 2 deletions packages/browser/src/index.bundle.replay.logs.metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export * from './index.bundle.base';
// TODO(v11): Export metrics here once we remove it from the base bundle.
export { logger, consoleLoggingIntegration } from '@sentry/core/browser';

export { replayIntegration, getReplay } from '@sentry-internal/replay';
export { replayIntegration, getReplay } from '@sentry/replay';

export { elementTimingIntegration } from '@sentry-internal/browser-utils';
export { elementTimingIntegration } from '@sentry/browser-utils';

export {
browserTracingIntegrationShim as browserTracingIntegration,
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/src/index.bundle.replay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export * from './index.bundle.base';
// TODO(v11): Export metricsShim here once we remove metrics from the base bundle.
export { consoleLoggingIntegrationShim as consoleLoggingIntegration, loggerShim as logger };

export { replayIntegration, getReplay } from '@sentry-internal/replay';
export { replayIntegration, getReplay } from '@sentry/replay';

export {
browserTracingIntegrationShim as browserTracingIntegration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export {
startBrowserTracingNavigationSpan,
startBrowserTracingPageLoadSpan,
} from './tracing/browserTracingIntegration';
export { elementTimingIntegration } from '@sentry-internal/browser-utils';
export { elementTimingIntegration } from '@sentry/browser-utils';
export { reportPageLoaded } from './tracing/reportPageLoaded';
export { setActiveSpanInBrowser } from './tracing/setActiveSpan';

Expand Down
Loading
Loading