Skip to content

Commit 5ba80bc

Browse files
authored
Merge pull request #15703 from getsentry/prepare-release/9.6.0
meta(changelog): Update changelog for 9.6.0
2 parents f94f0b2 + 8dc6e50 commit 5ba80bc

File tree

76 files changed

+838
-543
lines changed

Some content is hidden

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

76 files changed

+838
-543
lines changed

.craft.yml

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ targets:
111111
- name: npm
112112
id: '@sentry/tanstackstart'
113113
includeNames: /^sentry-tanstackstart-\d.*\.tgz$/
114+
- name: npm
115+
id: '@sentry/tanstackstart-react'
116+
includeNames: /^sentry-tanstackstart-react-\d.*\.tgz$/
114117
- name: npm
115118
id: '@sentry/gatsby'
116119
includeNames: /^sentry-gatsby-\d.*\.tgz$/

.github/CANARY_FAILURE_TEMPLATE.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: '{{ env.TITLE }}'
33
labels: 'Type: Tests, Waiting for: Product Owner'
4-
type: 'task'
54
---
65

76
Canary tests failed: {{ env.RUN_LINK }}

.github/ISSUE_TEMPLATE/bug.yml

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ body:
5050
- '@sentry/solidstart'
5151
- '@sentry/svelte'
5252
- '@sentry/sveltekit'
53+
- '@sentry/tanstackstart-react'
5354
- '@sentry/vue'
5455
- '@sentry/wasm'
5556
- Sentry Browser Loader

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,28 @@
1010

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

13+
## 9.6.0
14+
15+
### Important Changes
16+
17+
- **feat(tanstackstart): Add `@sentry/tanstackstart-react` package and make `@sentry/tanstackstart` package a utility package ([#15629](https://github.com/getsentry/sentry-javascript/pull/15629))**
18+
19+
Since TanStack Start is supposed to be a generic framework that supports libraries like React and Solid, the `@sentry/tanstackstart` SDK package was renamed to `@sentry/tanstackstart-react` to reflect that the SDK is specifically intended to be used for React TanStack Start applications.
20+
Note that the TanStack Start SDK is still in alpha status and may be subject to breaking changes in non-major package updates.
21+
22+
### Other Changes
23+
24+
- feat(astro): Accept all vite-plugin options ([#15638](https://github.com/getsentry/sentry-javascript/pull/15638))
25+
- feat(deps): bump @sentry/webpack-plugin from 3.2.1 to 3.2.2 ([#15627](https://github.com/getsentry/sentry-javascript/pull/15627))
26+
- feat(tanstackstart): Refine initial API ([#15574](https://github.com/getsentry/sentry-javascript/pull/15574))
27+
- fix(core): Ensure `fill` only patches functions ([#15632](https://github.com/getsentry/sentry-javascript/pull/15632))
28+
- fix(nextjs): Consider `pageExtensions` when looking for instrumentation file ([#15701](https://github.com/getsentry/sentry-javascript/pull/15701))
29+
- fix(remix): Null-check `options` ([#15610](https://github.com/getsentry/sentry-javascript/pull/15610))
30+
- fix(sveltekit): Correctly parse angle bracket type assertions for auto instrumentation ([#15578](https://github.com/getsentry/sentry-javascript/pull/15578))
31+
- fix(sveltekit): Guard process variable ([#15605](https://github.com/getsentry/sentry-javascript/pull/15605))
32+
33+
Work in this release was contributed by @angelikatyborska and @nwalters512. Thank you for your contributions!
34+
1335
## 9.5.0
1436

1537
### Important Changes

MIGRATION.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ These docs walk through how to migrate our JavaScript SDKs through different maj
55
- Upgrading from [SDK 4.x to 5.x/6.x](./docs/migration/v4-to-v5_v6.md)
66
- Upgrading from [SDK 6.x to 7.x](./docs/migration/v6-to-v7.md)
77
- Upgrading from [SDK 7.x to 8.x](./docs/migration/v7-to-v8.md)
8-
- Upgrading from [SDK 8.x to 9.x](./docs/migration/v8-to-v9.md#upgrading-from-7x-to-8x)
8+
- Upgrading from [SDK 8.x to 9.x](#upgrading-from-8x-to-9x)
99

1010
# Upgrading from 8.x to 9.x
1111

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ package. Please refer to the README and instructions of those SDKs for more deta
6060
- [`@sentry/nestjs`](https://github.com/getsentry/sentry-javascript/tree/master/packages/nestjs): SDK for NestJS
6161
- [`@sentry/nextjs`](https://github.com/getsentry/sentry-javascript/tree/master/packages/nextjs): SDK for Next.js
6262
- [`@sentry/remix`](https://github.com/getsentry/sentry-javascript/tree/master/packages/remix): SDK for Remix
63+
- [`@sentry/tanstackstart-react`](https://github.com/getsentry/sentry-javascript/tree/master/packages/tanstackstart-react): SDK for TanStack Start React
6364
- [`@sentry/aws-serverless`](https://github.com/getsentry/sentry-javascript/tree/master/packages/aws-serverless): SDK
6465
for AWS Lambda Functions
6566
- [`@sentry/google-cloud-serverless`](https://github.com/getsentry/sentry-javascript/tree/master/packages/google-cloud-serverless):

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@playwright/test": "~1.50.0",
4444
"@sentry-internal/rrweb": "2.34.0",
4545
"@sentry/browser": "9.5.0",
46-
"axios": "1.7.7",
46+
"axios": "1.8.2",
4747
"babel-loader": "^8.2.2",
4848
"fflate": "0.8.2",
4949
"html-webpack-plugin": "^5.5.0",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@playwright/test": "~1.50.0",
1414
"@sentry/node": "latest || *",
1515
"@sentry/profiling-node": "latest || *",
16-
"esbuild": "0.20.0",
16+
"esbuild": "0.25.0",
1717
"typescript": "^5.7.3"
1818
},
1919
"volta": {

dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"nuxt": "^3.14.0"
1919
},
2020
"devDependencies": {
21-
"@nuxt/test-utils": "^3.14.1",
2221
"@playwright/test": "~1.50.0",
2322
"@sentry-internal/test-utils": "link:../../../test-utils"
2423
},
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
import { fileURLToPath } from 'node:url';
2-
import type { ConfigOptions } from '@nuxt/test-utils/playwright';
31
import { getPlaywrightConfig } from '@sentry-internal/test-utils';
42

5-
const nuxtConfigOptions: ConfigOptions = {
6-
nuxt: {
7-
rootDir: fileURLToPath(new URL('.', import.meta.url)),
8-
},
9-
};
10-
113
/* Make sure to import from '@nuxt/test-utils/playwright' in the tests
124
* Like this: import { expect, test } from '@nuxt/test-utils/playwright' */
135

146
const config = getPlaywrightConfig({
157
startCommand: `pnpm start`,
16-
use: { ...nuxtConfigOptions },
178
});
189

1910
export default config;

dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/tests/errors.client.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, test } from '@nuxt/test-utils/playwright';
1+
import { expect, test } from '@playwright/test';
22
import { waitForError } from '@sentry-internal/test-utils';
33

44
test.describe('client-side errors', async () => {

dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/tests/tracing.client.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, test } from '@nuxt/test-utils/playwright';
1+
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
33
import type { Span } from '@sentry/nuxt';
44

dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"nuxt": "3.7.0"
2121
},
2222
"devDependencies": {
23-
"@nuxt/test-utils": "^3.14.1",
2423
"@playwright/test": "~1.50.0",
2524
"@sentry-internal/test-utils": "link:../../../test-utils"
2625
},
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
import { fileURLToPath } from 'node:url';
2-
import type { ConfigOptions } from '@nuxt/test-utils/playwright';
31
import { getPlaywrightConfig } from '@sentry-internal/test-utils';
42

5-
const nuxtConfigOptions: ConfigOptions = {
6-
nuxt: {
7-
rootDir: fileURLToPath(new URL('.', import.meta.url)),
8-
},
9-
};
10-
11-
/* Make sure to import from '@nuxt/test-utils/playwright' in the tests
12-
* Like this: import { expect, test } from '@nuxt/test-utils/playwright' */
13-
143
const config = getPlaywrightConfig({
154
startCommand: `pnpm start:import`,
16-
use: { ...nuxtConfigOptions },
175
});
186

197
export default config;

dev-packages/e2e-tests/test-applications/nuxt-3-min/tests/errors.client.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, test } from '@nuxt/test-utils/playwright';
1+
import { expect, test } from '@playwright/test';
22
import { waitForError } from '@sentry-internal/test-utils';
33

44
test.describe('client-side errors', async () => {

dev-packages/e2e-tests/test-applications/nuxt-3-min/tests/tracing.client.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, test } from '@nuxt/test-utils/playwright';
1+
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
33
import type { Span } from '@sentry/nuxt';
44

dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"nuxt": "^3.14.0"
1919
},
2020
"devDependencies": {
21-
"@nuxt/test-utils": "^3.14.1",
2221
"@playwright/test": "~1.50.0",
2322
"@sentry-internal/test-utils": "link:../../../test-utils"
2423
}
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
import { fileURLToPath } from 'node:url';
2-
import type { ConfigOptions } from '@nuxt/test-utils/playwright';
31
import { getPlaywrightConfig } from '@sentry-internal/test-utils';
42

5-
const nuxtConfigOptions: ConfigOptions = {
6-
nuxt: {
7-
rootDir: fileURLToPath(new URL('.', import.meta.url)),
8-
},
9-
};
10-
11-
/* Make sure to import from '@nuxt/test-utils/playwright' in the tests
12-
* Like this: import { expect, test } from '@nuxt/test-utils/playwright' */
13-
143
const config = getPlaywrightConfig({
154
startCommand: `pnpm start`,
16-
use: { ...nuxtConfigOptions },
175
});
186

197
export default config;

dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/tests/errors.client.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, test } from '@nuxt/test-utils/playwright';
1+
import { expect, test } from '@playwright/test';
22
import { waitForError } from '@sentry-internal/test-utils';
33

44
test.describe('client-side errors', async () => {

dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/tests/tracing.client.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, test } from '@nuxt/test-utils/playwright';
1+
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
33
import type { Span } from '@sentry/nuxt';
44

dev-packages/e2e-tests/test-applications/nuxt-3/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"nuxt": "^3.14.0"
2020
},
2121
"devDependencies": {
22-
"@nuxt/test-utils": "^3.14.1",
2322
"@playwright/test": "~1.50.0",
2423
"@sentry-internal/test-utils": "link:../../../test-utils"
2524
}
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
import { fileURLToPath } from 'node:url';
2-
import type { ConfigOptions } from '@nuxt/test-utils/playwright';
31
import { getPlaywrightConfig } from '@sentry-internal/test-utils';
42

5-
const nuxtConfigOptions: ConfigOptions = {
6-
nuxt: {
7-
rootDir: fileURLToPath(new URL('.', import.meta.url)),
8-
},
9-
};
10-
11-
/* Make sure to import from '@nuxt/test-utils/playwright' in the tests
12-
* Like this: import { expect, test } from '@nuxt/test-utils/playwright' */
13-
143
const config = getPlaywrightConfig({
154
startCommand: `pnpm start:import`,
16-
use: { ...nuxtConfigOptions },
175
});
186

197
export default config;

dev-packages/e2e-tests/test-applications/nuxt-3/tests/errors.client.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, test } from '@nuxt/test-utils/playwright';
1+
import { expect, test } from '@playwright/test';
22
import { waitForError } from '@sentry-internal/test-utils';
33

44
test.describe('client-side errors', async () => {

dev-packages/e2e-tests/test-applications/nuxt-3/tests/tracing.client.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, test } from '@nuxt/test-utils/playwright';
1+
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
33
import type { Span } from '@sentry/nuxt';
44

dev-packages/e2e-tests/test-applications/nuxt-4/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"nuxt": "^3.13.2"
2121
},
2222
"devDependencies": {
23-
"@nuxt/test-utils": "^3.14.2",
2423
"@playwright/test": "~1.50.0",
2524
"@sentry-internal/test-utils": "link:../../../test-utils"
2625
},
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
import { fileURLToPath } from 'node:url';
2-
import type { ConfigOptions } from '@nuxt/test-utils/playwright';
31
import { getPlaywrightConfig } from '@sentry-internal/test-utils';
42

5-
const nuxtConfigOptions: ConfigOptions = {
6-
nuxt: {
7-
rootDir: fileURLToPath(new URL('.', import.meta.url)),
8-
},
9-
};
10-
11-
/* Make sure to import from '@nuxt/test-utils/playwright' in the tests
12-
* Like this: import { expect, test } from '@nuxt/test-utils/playwright' */
13-
143
const config = getPlaywrightConfig({
154
startCommand: `pnpm start:import`,
16-
use: { ...nuxtConfigOptions },
175
});
186

197
export default config;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script lang="ts">
2+
export let data
3+
</script>
4+
5+
<h1>Type Assertion</h1>
6+
7+
<p>
8+
This route only exists to ensure we don't emit a build error because of the angle bracket type assertion in +page.ts
9+
see https://github.com/getsentry/sentry-javascript/issues/9318
10+
</p>
11+
12+
<p>
13+
Message: {data.msg}
14+
</p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export async function load() {
2+
let x: unknown = 'foo';
3+
return {
4+
// this angle bracket type assertion threw an auto instrumentation error
5+
// see: https://github.com/getsentry/sentry-javascript/issues/9318
6+
msg: <string>x,
7+
};
8+
}

dev-packages/e2e-tests/verdaccio-config/config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ packages:
176176
unpublish: $all
177177
# proxy: npmjs # Don't proxy for E2E tests!
178178

179+
'@sentry/tanstackstart-react':
180+
access: $all
181+
publish: $all
182+
unpublish: $all
183+
# proxy: npmjs # Don't proxy for E2E tests!
184+
179185
'@sentry/types':
180186
access: $all
181187
publish: $all

docs/new-sdk-release-checklist.md

+6
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ differ slightly for other SDKs depending on how they are structured and how they
6262
- [ ] If the package you're adding is a dependency of fullstack framework (e.g. Remix or NextJS) SDKs, make sure that
6363
your package is added to the integration test apps' `"resolutions"` field in their `package.json`s.
6464

65+
- [ ] Add the new package to the "root" README inside the repository.
66+
67+
- [ ] Add the new package to the GitHub Issue bug template.
68+
69+
- [ ] Create label inside the GitHub repo named "Package: foobar".
70+
6571
## Cutting the Release
6672

6773
When you’re ready to make the first release, there are a couple of steps that need to be performed in the **correct

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"packages/svelte",
8181
"packages/sveltekit",
8282
"packages/tanstackstart",
83+
"packages/tanstackstart-react",
8384
"packages/types",
8485
"packages/typescript",
8586
"packages/vercel-edge",

packages/astro/src/integration/index.ts

+10-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => {
3030
};
3131

3232
const sourceMapsNeeded = sdkEnabled.client || sdkEnabled.server;
33-
const uploadOptions = options.sourceMapsUploadOptions || {};
33+
const { unstable_sentryVitePluginOptions, ...uploadOptions } = options.sourceMapsUploadOptions || {};
3434
const shouldUploadSourcemaps = (sourceMapsNeeded && uploadOptions?.enabled) ?? true;
3535

3636
// We don't need to check for AUTH_TOKEN here, because the plugin will pick it up from the env
@@ -68,23 +68,26 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => {
6868
project: uploadOptions.project ?? env.SENTRY_PROJECT,
6969
authToken: uploadOptions.authToken ?? env.SENTRY_AUTH_TOKEN,
7070
telemetry: uploadOptions.telemetry ?? true,
71+
_metaOptions: {
72+
telemetry: {
73+
metaFramework: 'astro',
74+
},
75+
},
76+
...unstable_sentryVitePluginOptions,
77+
debug: options.debug ?? false,
7178
sourcemaps: {
7279
assets: uploadOptions.assets ?? [getSourcemapsAssetsGlob(config)],
7380
filesToDeleteAfterUpload:
7481
uploadOptions?.filesToDeleteAfterUpload ?? updatedFilesToDeleteAfterUpload,
82+
...unstable_sentryVitePluginOptions?.sourcemaps,
7583
},
7684
bundleSizeOptimizations: {
7785
...options.bundleSizeOptimizations,
7886
// TODO: with a future version of the vite plugin (probably 2.22.0) this re-mapping is not needed anymore
7987
// ref: https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/582
8088
excludePerformanceMonitoring: options.bundleSizeOptimizations?.excludeTracing,
89+
...unstable_sentryVitePluginOptions?.bundleSizeOptimizations,
8190
},
82-
_metaOptions: {
83-
telemetry: {
84-
metaFramework: 'astro',
85-
},
86-
},
87-
debug: options.debug ?? false,
8891
}),
8992
),
9093
],

0 commit comments

Comments
 (0)