Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
9e969da
feat(nuxt)!: Remove deprecated `sourceMapsUploadOptions` module optio…
nicohrubec Aug 3, 2026
ae3de33
feat: Streamline isolation scope handling & reset in isolation scopes…
andreiborza Aug 3, 2026
66acbf2
ci(deps): Bump getsentry/craft from 2.26.14 to 2.28.0 (#22932)
dependabot[bot] Aug 3, 2026
521986c
ci(deps): Bump dorny/paths-filter from 4.0.1 to 4.0.2 (#22931)
dependabot[bot] Aug 3, 2026
b29fefa
feat(deps): Bump shell-quote from 1.8.4 to 1.10.0 (#22409)
dependabot[bot] Aug 3, 2026
34748d4
ci(deps): Bump actions/stale from 10 to 11 (#22933)
dependabot[bot] Aug 3, 2026
5249b2f
ci(deps): Bump actions/cache from 5 to 6 (#22935)
dependabot[bot] Aug 3, 2026
8795caa
feat(deps): Bump engine.io from 6.6.2 to 6.6.9 (#22410)
dependabot[bot] Aug 3, 2026
cb4fa0e
feat(deps): Bump websocket-driver from 0.7.4 to 0.7.5 (#22307)
dependabot[bot] Aug 3, 2026
993aebf
test(e2e): Fix scripts for nuxt dev server (#22942)
chargome Aug 3, 2026
ad88bd8
feat(cloudflare): Prepare for nodejs_compat entrypoint (#22891)
JPeer264 Aug 3, 2026
afa06b9
ref(cloudflare): Ensure wrapRequestHandler stays free of node specifc…
JPeer264 Aug 3, 2026
8078141
chore(cloudflare): Remove restricted imports (#22896)
JPeer264 Aug 3, 2026
90bd981
feat(cloudflare)!: Make the nodejs_compat entrypoint the default (#22…
JPeer264 Aug 3, 2026
33725cd
feat(cloudflare): Make vercelAIIntegration the default (#22901)
JPeer264 Aug 3, 2026
aa07076
ref(server-utils): Add shared AI instrumentation base
nicohrubec Aug 3, 2026
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
2 changes: 1 addition & 1 deletion .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
shell: bash

- name: Check dependency cache
uses: actions/cache@v5
uses: actions/cache@v6.1.0
id: cache_dependencies
with:
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/install-playwright/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
working-directory: ${{ inputs.cwd }}

- name: Restore cached playwright binaries
uses: actions/cache/restore@v5
uses: actions/cache/restore@v6.1.0
id: playwright-cache
with:
path: |
Expand All @@ -43,7 +43,7 @@ runs:

# Only store cache on develop branch
- name: Store cached playwright binaries
uses: actions/cache/save@v5
uses: actions/cache/save@v6.1.0
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/restore-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
steps:
- name: Check dependency cache
id: dep-cache
uses: actions/cache/restore@v5
uses: actions/cache/restore@v6.1.0
with:
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
key: ${{ inputs.dependency_cache_key }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
node-version-file: 'package.json'

- name: Prepare release
uses: getsentry/craft@cdb657d4bbc70cd497876ad158984b4d345a48ae # v2.26.14
uses: getsentry/craft@aeb16753a1764f3ef0768c03c499e3d2e4b7227c # v2.28.0
if:
github.event.pull_request.merged == true && steps.version-regex.outputs.match != '' &&
steps.get_version.outputs.version != ''
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
} >> "$GITHUB_OUTPUT"

- name: Store NX cache
uses: actions/cache/save@v5
uses: actions/cache/save@v6.1.0
# Only cache this per-PR to speed up CI.
if: github.event_name == 'pull_request'
with:
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
with:
node-version-file: 'package.json'
- name: Restore NX cache
uses: actions/cache/restore@v5
uses: actions/cache/restore@v6.1.0
with:
path: |
.nx/cache
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
with:
node-version-file: 'package.json'
- name: Restore NX cache
uses: actions/cache/restore@v5
uses: actions/cache/restore@v6.1.0
with:
path: |
.nx/cache
Expand Down Expand Up @@ -968,7 +968,7 @@ jobs:
with:
node-version-file: 'package.json'
- name: Restore NX cache
uses: actions/cache/restore@v5
uses: actions/cache/restore@v6.1.0
with:
path: |
.nx/cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
node-version-file: 'package.json'
- name: Check canary cache
uses: actions/cache@v5
uses: actions/cache@v6.1.0
with:
path: ${{ env.CACHED_BUILD_PATHS }}
key: canary-${{ env.HEAD_COMMIT }}
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
node-version-file: 'dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}/package.json'

- name: Restore canary cache
uses: actions/cache/restore@v5
uses: actions/cache/restore@v6.1.0
with:
path: ${{ env.CACHED_BUILD_PATHS }}
key: canary-${{ env.HEAD_COMMIT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
# Most changed packages are determined in job_build via Nx
- name: Determine changed packages
uses: dorny/paths-filter@v4.0.1
uses: dorny/paths-filter@v4.0.2
id: changed
with:
filters: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flaky-test-detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
browsers: 'chromium'

- name: Determine changed tests
uses: dorny/paths-filter@v4.0.1
uses: dorny/paths-filter@v4.0.2
id: changed
with:
list-files: json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-stale-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Warn and close stale PRs
uses: actions/stale@v10
uses: actions/stale@v11
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: -1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
node-version-file: 'package.json'
- name: Prepare release
uses: getsentry/craft@cdb657d4bbc70cd497876ad158984b4d345a48ae # v2.26.14
uses: getsentry/craft@aeb16753a1764f3ef0768c03c499e3d2e4b7227c # v2.28.0
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
Expand Down
4 changes: 2 additions & 2 deletions .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ module.exports = [
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
gzip: false,
brotli: false,
limit: '200 KiB',
limit: '230 KiB',
disablePlugins: ['@size-limit/webpack'],
webpack: false,
modifyEsbuildConfig: function (config) {
Expand All @@ -452,7 +452,7 @@ module.exports = [
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
gzip: false,
brotli: false,
limit: '482 KiB',
limit: '540 KiB',
disablePlugins: ['@size-limit/webpack'],
webpack: false,
modifyEsbuildConfig: function (config) {
Expand Down
32 changes: 32 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,38 @@ Remove these options from your `next.config.js` / `next.config.ts`.

The deprecated `sourceMapsUploadOptions` and other deprecated Vite/build plugin options were removed from `@sentry/astro`, `@sentry/nuxt`, `@sentry/sveltekit`, and `@sentry/react-router`. Use the top-level equivalents (e.g. `sourcemaps`, `release`, `authToken`, `org`, `project`, `telemetry`) instead.

### `@sentry/nuxt`

The deprecated `sourceMapsUploadOptions` module option was removed. Move its fields to the root level of the `sentry` module options. Note that `url` was renamed to `sentryUrl`, and `enabled` was replaced by `sourcemaps.disable` (inverted: `enabled: false` becomes `sourcemaps: { disable: true }`).

```ts
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@sentry/nuxt/module'],
sentry: {
// before
sourceMapsUploadOptions: {
org: 'my-org',
project: 'my-project',
authToken: process.env.SENTRY_AUTH_TOKEN,
url: 'https://my-sentry.example.com',
sourcemaps: {
assets: ['./dist/**/*'],
},
},

// after
org: 'my-org',
project: 'my-project',
authToken: process.env.SENTRY_AUTH_TOKEN,
sentryUrl: 'https://my-sentry.example.com',
sourcemaps: {
assets: ['./dist/**/*'],
},
},
});
```

## 4. Package Removals

### `@sentry/types` is no longer published
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "d1-test-worker",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
"d1_databases": [
{
"binding": "DB",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { D1Database } from '@cloudflare/workers-types';
import { PrismaD1 } from '@prisma/adapter-d1';
import * as Sentry from '@sentry/cloudflare/nodejs_compat';
import * as Sentry from '@sentry/cloudflare';
import { PrismaClient } from './generated';

interface Env {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function envelopeItem(envelope: Envelope): Record<string, unknown> {
return envelope[1][0]![1] as Record<string, unknown>;
}

it('captures a transaction with Prisma spans for a D1 query via the @sentry/cloudflare/nodejs_compat prismaIntegration', async ({
it('captures a transaction with Prisma spans for a D1 query via the @sentry/cloudflare prismaIntegration', async ({
signal,
}) => {
const runner = createRunner(__dirname)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "start-span-streamed",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
"queues": {
"producers": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
"r2_buckets": [
{
"binding": "MY_BUCKET",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
"ratelimits": [
{
"name": "MY_RATE_LIMITER",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { wrapRequestHandler } from '@sentry/cloudflare/request';

interface Env {
SENTRY_DSN: string;
}

// Mirrors how Hydrogen (Remix) uses the SDK: only `wrapRequestHandler` from the
// `/request` subpath, without `nodejs_compat` compatibility flags.
// The subpath must stay free of Node.js-only modules.
export default {
async fetch(request, env, ctx) {
return wrapRequestHandler(
{
options: {
dsn: env.SENTRY_DSN,
traceLifecycle: 'static',
tracesSampleRate: 1,
},
request,
context: ctx,
},
() => new Response('ok'),
);
},
} satisfies ExportedHandler<Env>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { expect, it } from 'vitest';
import { createRunner } from '../../../runner';

it('captures a transaction via wrapRequestHandler from the /request subpath without node compatibility flags', async ({
signal,
}) => {
const runner = createRunner(__dirname)
.expect(envelope => {
const transactionEvent = envelope[1]?.[0]?.[1] as any;
expect(transactionEvent.transaction).toBe('GET /');
expect(transactionEvent.contexts?.trace?.op).toBe('http.server');
expect(transactionEvent.contexts?.trace?.origin).toBe('auto.http.cloudflare');
})
.start(signal);

await runner.makeRequest('get', '/');
await runner.completed();
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "anthropic-ai-worker",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "d1-worker",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
"d1_databases": [
{
"binding": "DB",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "worker-name",
"compatibility_date": "2025-06-17",
"main": "index.ts",
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
},
],
},
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
},
],
},
"compatibility_flags": ["nodejs_als"],
"compatibility_flags": ["nodejs_compat"],
}
Loading
Loading