Skip to content

Commit f9e9ed5

Browse files
authored
Merge branch 'master' into patch-1
2 parents 78d5b9c + 4f4eb37 commit f9e9ed5

File tree

1,543 files changed

+11184
-6937
lines changed

Some content is hidden

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

1,543 files changed

+11184
-6937
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
parserOptions: {
1212
ecmaVersion: 2018,
1313
},
14-
extends: ['@sentry-internal/sdk/src/base'],
14+
extends: ['@sentry-internal/sdk'],
1515
ignorePatterns: [
1616
'coverage/**',
1717
'build/**',

.github/ISSUE_TEMPLATE/bug.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 🐞 Bug Report
22
description: Tell us about something that's not working the way we (probably) intend.
3-
type: 'bug'
3+
labels: ['Bug']
44
body:
55
- type: checkboxes
66
attributes:

.github/ISSUE_TEMPLATE/feature.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 💡 Feature Request
22
description: Create a feature request for a sentry-javascript SDK.
3-
type: 'enhancement'
3+
labels: ['Feature']
44
body:
55
- type: markdown
66
attributes:

.github/ISSUE_TEMPLATE/flaky.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: ❅ Flaky Test
22
description: Report a flaky test in CI
33
title: '[Flaky CI]: '
4-
type: 'task'
5-
labels: ['Type: Tests']
4+
labels: ['Tests']
65
body:
76
- type: dropdown
87
id: type

.github/ISSUE_TEMPLATE/internal.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: 💡 [Internal] Blank Issue
22
description: Only for Sentry Employees! Create an issue without a template.
3-
type: 'task'
43
body:
54
- type: markdown
65
attributes:

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
packages/browser/test/loader.js
22
packages/replay-worker/examples/worker.min.js
3+
dev-packages/browser-integration-tests/fixtures

.size-limit.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = [
4747
path: 'packages/browser/build/npm/esm/index.js',
4848
import: createImport('init', 'browserTracingIntegration', 'replayIntegration'),
4949
gzip: true,
50-
limit: '76 KB',
50+
limit: '77 KB',
5151
},
5252
{
5353
name: '@sentry/browser (incl. Tracing, Replay) - with treeshaking flags',
@@ -79,7 +79,7 @@ module.exports = [
7979
path: 'packages/browser/build/npm/esm/index.js',
8080
import: createImport('init', 'browserTracingIntegration', 'replayIntegration', 'replayCanvasIntegration'),
8181
gzip: true,
82-
limit: '81 KB',
82+
limit: '82 KB',
8383
},
8484
{
8585
name: '@sentry/browser (incl. Tracing, Replay, Feedback)',
@@ -219,7 +219,7 @@ module.exports = [
219219
import: createImport('init'),
220220
ignore: ['$app/stores'],
221221
gzip: true,
222-
limit: '38.5 KB',
222+
limit: '39 KB',
223223
},
224224
// Node SDK (ESM)
225225
{

CHANGELOG.md

+91

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/addBreadcrumb/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/captureException/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { expect } from '@playwright/test';
22
import { SDK_VERSION } from '@sentry/browser';
3-
43
import { sentryTest } from '../../../../utils/fixtures';
54
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
65

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/customOnErrorHandler/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/errorHandler/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/errorHandlerLater/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/pageloadTransaction/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import {
54
envelopeRequestParser,
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

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

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { getReplayEvent, shouldSkipReplayTest, waitForReplayRequest } from '../../../../utils/replayHelpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/replayError/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54
import { getReplayEvent, shouldSkipReplayTest, waitForReplayRequest } from '../../../../utils/replayHelpers';

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/sdkLoadedInMeanwhile/test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import { expect } from '@playwright/test';
12
import * as fs from 'fs';
23
import * as path from 'path';
3-
import { expect } from '@playwright/test';
4-
5-
import { TEST_HOST, sentryTest } from '../../../../utils/fixtures';
4+
import { sentryTest, TEST_HOST } from '../../../../utils/fixtures';
65
import { LOADER_CONFIGS } from '../../../../utils/generatePlugin';
76
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
87

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/unhandeledPromiseRejectionHandler/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/addBreadcrumb/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/captureException/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/captureExceptionInOnLoad/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customBrowserTracing/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import {
54
envelopeRequestParser,

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customInit/init.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,5 @@ window.sentryIsLoaded = () => {
1616
const __sentry = window.__SENTRY__;
1717

1818
// If there is a global __SENTRY__ that means that in any of the callbacks init() was already invoked
19-
return !!(
20-
!(typeof __sentry === 'undefined') &&
21-
__sentry.version &&
22-
!!__sentry[__sentry.version]
23-
);
19+
return !!(!(typeof __sentry === 'undefined') && __sentry.version && !!__sentry[__sentry.version]);
2420
};

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customInit/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { LOADER_CONFIGS } from '../../../../utils/generatePlugin';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customIntegrations/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { shouldSkipTracingTest } from '../../../../utils/helpers';
54
import { shouldSkipReplayTest } from '../../../../utils/replayHelpers';

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customIntegrationsFunction/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43

54
sentryTest(

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customReplay/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { getReplayEvent, shouldSkipReplayTest, waitForReplayRequest } from '../../../../utils/replayHelpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/errorHandler/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/errorHandlerLater/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/keepSentryGlobal/init.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ window.sentryOnLoad = function () {
22
Sentry.init({});
33

44
window.__sentryLoaded = true;
5-
}
5+
};

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/keepSentryGlobal/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/onLoadLate/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/pageloadTransaction/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import {
54
envelopeRequestParser,

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

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { getReplayEvent, shouldSkipReplayTest, waitForReplayRequest } from '../../../../utils/replayHelpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/sentryOnLoad/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/sentryOnLoadAndOnLoad/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/sentryOnLoadError/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "9.14.0",
3+
"version": "9.17.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -42,7 +42,7 @@
4242
"@babel/preset-typescript": "^7.16.7",
4343
"@playwright/test": "~1.50.0",
4444
"@sentry-internal/rrweb": "2.34.0",
45-
"@sentry/browser": "9.14.0",
45+
"@sentry/browser": "9.17.0",
4646
"@supabase/supabase-js": "2.49.3",
4747
"axios": "1.8.2",
4848
"babel-loader": "^8.2.2",

dev-packages/browser-integration-tests/suites/errors/fetch/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ sentryTest('handles fetch network errors @firefox', async ({ getLocalTestUrl, pa
2929
});
3030
});
3131

32-
3332
sentryTest('handles fetch network errors on subdomains @firefox', async ({ getLocalTestUrl, page, browserName }) => {
3433
const url = await getLocalTestUrl({ testDir: __dirname });
3534
const reqPromise = waitForErrorRequest(page);

dev-packages/browser-integration-tests/suites/feedback/attachTo/test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { expect } from '@playwright/test';
2-
3-
import { TEST_HOST, sentryTest } from '../../../utils/fixtures';
2+
import { sentryTest, TEST_HOST } from '../../../utils/fixtures';
43
import { envelopeRequestParser, getEnvelopeType, shouldSkipFeedbackTest } from '../../../utils/helpers';
54

65
sentryTest('should capture feedback with custom button', async ({ getLocalTestUrl, page }) => {

0 commit comments

Comments
 (0)