Skip to content

Commit 68f7d1a

Browse files
authored
Merge branch 'getsentry:develop' into feat/graphqlClientIntegration
2 parents d8b0a83 + 3c4df06 commit 68f7d1a

File tree

77 files changed

+352
-197
lines changed

Some content is hidden

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

77 files changed

+352
-197
lines changed

.github/workflows/flaky-test-detector.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151

5252
- name: Install Playwright
5353
uses: ./.github/actions/install-playwright
54+
with:
55+
browsers: 'chromium'
5456

5557
- name: Determine changed tests
5658
uses: dorny/[email protected]

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@
1010

1111
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
1212

13-
Work in this release was contributed by @tjhiggins, @chris-basebone, @GrizliK1988, @davidturissini, @nwalters512, @aloisklink, @arturovt, @benjick, @maximepvrt, @mstrokin, @kunal-511, @jahands, @jrandolf, @tannerlinsley, @Zen-cronic and @nathankleyn. Thank you for your contributions!
13+
Work in this release was contributed by @tjhiggins, @chris-basebone, @GrizliK1988, @davidturissini, @nwalters512, @aloisklink, @arturovt, @benjick, @maximepvrt, @mstrokin, @kunal-511, @jahands, @jrandolf, @tannerlinsley, @Zen-cronic, @maxmaxme and @nathankleyn. Thank you for your contributions!
14+
15+
## 9.0.0-alpha.1
16+
17+
This is an alpha release of the upcoming major release of version 9.
18+
This release does not yet entail a comprehensive changelog as version 9 is not yet stable.
19+
20+
For this release's iteration of the migration guide, see the [Migration Guide as per `9.0.0-alpha.1`](https://github.com/getsentry/sentry-javascript/blob/e4333e5ce2d65be319ee6a5a5976f7c93983a417/docs/migration/v8-to-v9.md).
21+
Please note that the migration guide is work in progress and subject to change.
1422

1523
## 9.0.0-alpha.0
1624

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
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.31.0",
45-
"@sentry/browser": "9.0.0-alpha.0",
45+
"@sentry/browser": "9.0.0-alpha.1",
4646
"axios": "1.7.7",
4747
"babel-loader": "^8.2.2",
4848
"fflate": "0.8.2",

dev-packages/browser-integration-tests/scripts/detectFlakyTests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ ${changedPaths.join('\n')}
4646
try {
4747
await new Promise<void>((resolve, reject) => {
4848
const cp = childProcess.spawn(
49-
`npx playwright test ${testPaths.length ? testPaths.join(' ') : './suites'} --repeat-each ${repeatEachCount}`,
49+
`npx playwright test ${
50+
testPaths.length ? testPaths.join(' ') : './suites'
51+
} --repeat-each ${repeatEachCount} --project=chromium`,
5052
{ shell: true, cwd, stdio: 'inherit' },
5153
);
5254

dev-packages/bundle-analyzer-scenarios/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/bundle-analyzer-scenarios",
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
44
"description": "Scenarios to test bundle analysis with",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/dev-packages/bundle-analyzer-scenarios",

dev-packages/clear-cache-gh-action/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/clear-cache-gh-action",
33
"description": "An internal Github Action to clear GitHub caches.",
4-
"version": "9.0.0-alpha.0",
4+
"version": "9.0.0-alpha.1",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/e2e-tests",
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
44
"license": "MIT",
55
"private": true,
66
"scripts": {
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "node-profiling-cjs",
3+
"version": "1.0.0",
4+
"private": true,
5+
"scripts": {
6+
"typecheck": "tsc --noEmit",
7+
"test": "node dist/cjs/index.js",
8+
"clean": "npx rimraf node_modules dist",
9+
"test:build": "pnpm install && node build-cjs.mjs",
10+
"test:assert": "pnpm run typecheck && pnpm run test"
11+
},
12+
"dependencies": {
13+
"@playwright/test": "~1.50.0",
14+
"@sentry/node": "latest || *",
15+
"@sentry/profiling-node": "latest || *",
16+
"esbuild": "0.20.0",
17+
"typescript": "^5.7.3"
18+
},
19+
"volta": {
20+
"extends": "../../package.json"
21+
}
22+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# @sentry:registry=http://127.0.0.1:4873
2+
# @sentry-internal:registry=http://127.0.0.1:4873

dev-packages/e2e-tests/test-applications/node-profiling/__tests__/electron.spec.js renamed to dev-packages/e2e-tests/test-applications/node-profiling-electron/__tests__/electron.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ test('an h1 contains hello world"', async () => {
77
process: {
88
env: {
99
...process.env,
10+
NODE_ENV: 'development',
1011
},
1112
},
1213
});
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "node-profiling-electron",
3+
"version": "1.0.0",
4+
"private": true,
5+
"scripts": {
6+
"clean": "npx rimraf node_modules dist",
7+
"test:build": "pnpm install",
8+
"test:assert": "$(pnpm bin)/electron-rebuild && pnpm playwright test"
9+
},
10+
"dependencies": {
11+
"@electron/rebuild": "^3.7.0",
12+
"@playwright/test": "~1.50.0",
13+
"@sentry/electron": "latest || *",
14+
"@sentry/node": "latest || *",
15+
"@sentry/profiling-node": "latest || *",
16+
"electron": "^33.2.0"
17+
},
18+
"volta": {
19+
"extends": "../../package.json"
20+
},
21+
"sentryTest": {
22+
"skip": true
23+
}
24+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# @sentry:registry=http://127.0.0.1:4873
2+
# @sentry-internal:registry=http://127.0.0.1:4873
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import * as Sentry from '@sentry/node';
2+
import { nodeProfilingIntegration } from '@sentry/profiling-node';
3+
4+
const wait = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
5+
6+
Sentry.init({
7+
dsn: 'https://[email protected]/6625302',
8+
integrations: [nodeProfilingIntegration()],
9+
tracesSampleRate: 1.0,
10+
profilesSampleRate: 1.0,
11+
});
12+
13+
Sentry.startSpan({ name: 'Precompile test' }, async () => {
14+
await wait(500);
15+
});
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "node-profiling-esm",
3+
"version": "1.0.0",
4+
"private": true,
5+
"scripts": {
6+
"typecheck": "tsc --noEmit",
7+
"test": "node dist/esm/index.mjs",
8+
"clean": "npx rimraf node_modules dist",
9+
"test:build": "pnpm install && node build-esm.mjs",
10+
"test:assert": "pnpm run typecheck && pnpm run test"
11+
},
12+
"dependencies": {
13+
"@playwright/test": "~1.50.0",
14+
"@sentry/node": "latest || *",
15+
"@sentry/profiling-node": "latest || *",
16+
"esbuild": "0.20.0",
17+
"typescript": "^5.7.3"
18+
},
19+
"volta": {
20+
"extends": "../../package.json"
21+
}
22+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compilerOptions": {
3+
"types": ["node"],
4+
"esModuleInterop": true,
5+
"lib": ["es2018"],
6+
"strict": true,
7+
"outDir": "dist",
8+
"target": "ESNext",
9+
"moduleResolution": "node",
10+
"skipLibCheck": true
11+
},
12+
"include": ["index.ts"]
13+
}

dev-packages/e2e-tests/test-applications/node-profiling/package.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

dev-packages/external-contributor-gh-action/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/external-contributor-gh-action",
33
"description": "An internal Github Action to add external contributors to the CHANGELOG.md file.",
4-
"version": "9.0.0-alpha.0",
4+
"version": "9.0.0-alpha.1",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/node-integration-tests",
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
44
"license": "MIT",
55
"engines": {
66
"node": ">=18"
@@ -31,9 +31,9 @@
3131
"@nestjs/common": "10.4.6",
3232
"@nestjs/core": "10.4.6",
3333
"@nestjs/platform-express": "10.4.6",
34-
"@sentry/aws-serverless": "9.0.0-alpha.0",
35-
"@sentry/core": "9.0.0-alpha.0",
36-
"@sentry/node": "9.0.0-alpha.0",
34+
"@sentry/aws-serverless": "9.0.0-alpha.1",
35+
"@sentry/core": "9.0.0-alpha.1",
36+
"@sentry/node": "9.0.0-alpha.1",
3737
"@types/mongodb": "^3.6.20",
3838
"@types/mysql": "^2.15.21",
3939
"@types/pg": "^8.6.5",

dev-packages/rollup-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/rollup-utils",
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
44
"description": "Rollup utilities used at Sentry for the Sentry JavaScript SDK",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/rollup-utils",

dev-packages/size-limit-gh-action/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/size-limit-gh-action",
33
"description": "An internal Github Action to compare the current size of a PR against the one on develop.",
4-
"version": "9.0.0-alpha.0",
4+
"version": "9.0.0-alpha.1",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/test-utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
44
"name": "@sentry-internal/test-utils",
55
"author": "Sentry",
66
"license": "MIT",
@@ -45,7 +45,7 @@
4545
},
4646
"devDependencies": {
4747
"@playwright/test": "~1.50.0",
48-
"@sentry/core": "9.0.0-alpha.0"
48+
"@sentry/core": "9.0.0-alpha.1"
4949
},
5050
"volta": {
5151
"extends": "../../package.json"

docs/migration/v8-to-v9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ This should not affect most users unless you relied on passing things with a sim
361361
- The `Request` type has been removed. Use `RequestEventData` type instead.
362362
- The `IntegrationClass` type is no longer exported - it was not used anymore. Instead, use `Integration` or `IntegrationFn`.
363363
- The `samplingContext.request` attribute in the `tracesSampler` has been removed. Use `samplingContext.normalizedRequest` instead. Note that the type of `normalizedRequest` differs from `request`.
364-
- The `samplingContext.transactionContext` object in the `tracesSampler` has been removed. All object attributes are available in the top-level of `samplingContext`.
364+
- The `samplingContext.transactionContext` object in the `tracesSampler` and `profilesSampler` has been removed. All object attributes are available in the top-level of `samplingContext`.
365365
- `Client` now always expects the `BaseClient` class - there is no more abstract `Client` that can be implemented! Any `Client` class has to extend from `BaseClient`.
366366
- `ReportDialogOptions` now extends `Record<string, unknown>` instead of `Record<string, any>` - this should not affect most users.
367367
- The `RequestDataIntegrationOptions` type has been removed. There is no replacement.

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
44
"npmClient": "yarn"
55
}

packages/angular/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/angular",
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
44
"description": "Official Sentry SDK for Angular",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular",
@@ -21,8 +21,8 @@
2121
"rxjs": "^6.5.5 || ^7.x"
2222
},
2323
"dependencies": {
24-
"@sentry/browser": "9.0.0-alpha.0",
25-
"@sentry/core": "9.0.0-alpha.0",
24+
"@sentry/browser": "9.0.0-alpha.1",
25+
"@sentry/core": "9.0.0-alpha.1",
2626
"tslib": "^2.4.1"
2727
},
2828
"devDependencies": {

packages/astro/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/astro",
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
44
"description": "Official Sentry SDK for Astro",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/astro",
@@ -56,9 +56,9 @@
5656
"astro": ">=3.x || >=4.0.0-beta || >=5.x"
5757
},
5858
"dependencies": {
59-
"@sentry/browser": "9.0.0-alpha.0",
60-
"@sentry/core": "9.0.0-alpha.0",
61-
"@sentry/node": "9.0.0-alpha.0",
59+
"@sentry/browser": "9.0.0-alpha.1",
60+
"@sentry/core": "9.0.0-alpha.1",
61+
"@sentry/node": "9.0.0-alpha.1",
6262
"@sentry/vite-plugin": "^2.22.6"
6363
},
6464
"devDependencies": {

packages/aws-serverless/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/aws-serverless",
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
44
"description": "Official Sentry SDK for AWS Lambda and AWS Serverless Environments",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/serverless",
@@ -68,8 +68,8 @@
6868
"@opentelemetry/instrumentation": "^0.57.1",
6969
"@opentelemetry/instrumentation-aws-lambda": "0.50.2",
7070
"@opentelemetry/instrumentation-aws-sdk": "0.49.0",
71-
"@sentry/core": "9.0.0-alpha.0",
72-
"@sentry/node": "9.0.0-alpha.0",
71+
"@sentry/core": "9.0.0-alpha.1",
72+
"@sentry/node": "9.0.0-alpha.1",
7373
"@types/aws-lambda": "^8.10.62"
7474
},
7575
"devDependencies": {

packages/browser-utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-utils",
3-
"version": "9.0.0-alpha.0",
3+
"version": "9.0.0-alpha.1",
44
"description": "Browser Utilities for all Sentry JavaScript SDKs",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser-utils",
@@ -39,7 +39,7 @@
3939
"access": "public"
4040
},
4141
"dependencies": {
42-
"@sentry/core": "9.0.0-alpha.0"
42+
"@sentry/core": "9.0.0-alpha.1"
4343
},
4444
"scripts": {
4545
"build": "run-p build:transpile build:types",

0 commit comments

Comments
 (0)