diff --git a/.craft.yml b/.craft.yml index 77bfdfcd14b7..b65e012eb5e7 100644 --- a/.craft.yml +++ b/.craft.yml @@ -184,6 +184,8 @@ targets: onlyIfPresent: /^sentry-nextjs-\d.*\.tgz$/ 'npm:@sentry/remix': onlyIfPresent: /^sentry-remix-\d.*\.tgz$/ + 'npm:@sentry/solid': + onlyIfPresent: /^sentry-solid-\d.*\.tgz$/ 'npm:@sentry/svelte': onlyIfPresent: /^sentry-svelte-\d.*\.tgz$/ 'npm:@sentry/sveltekit': diff --git a/CHANGELOG.md b/CHANGELOG.md index fa9abad81755..fafc53349b60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott +## 8.9.2 + +- fix(profiling): Update exports so types generate properly (#12469) + ## 8.9.1 ### Important changes diff --git a/dev-packages/e2e-tests/test-applications/solid/tests/errorboundary.test.ts b/dev-packages/e2e-tests/test-applications/solid/tests/errorboundary.test.ts index 279eec70c059..287642424850 100644 --- a/dev-packages/e2e-tests/test-applications/solid/tests/errorboundary.test.ts +++ b/dev-packages/e2e-tests/test-applications/solid/tests/errorboundary.test.ts @@ -3,7 +3,7 @@ import { waitForError } from '@sentry-internal/test-utils'; test('captures an exception', async ({ page }) => { const errorEventPromise = waitForError('solid', errorEvent => { - return !errorEvent.type; + return !errorEvent.type && errorEvent.transaction === '/error-boundary-example'; }); const [, errorEvent] = await Promise.all([page.goto('/error-boundary-example'), errorEventPromise]); @@ -27,7 +27,7 @@ test('captures an exception', async ({ page }) => { test('captures a second exception after resetting the boundary', async ({ page }) => { const firstErrorEventPromise = waitForError('solid', errorEvent => { - return !errorEvent.type; + return !errorEvent.type && errorEvent.transaction === '/error-boundary-example'; }); const [, firstErrorEvent] = await Promise.all([page.goto('/error-boundary-example'), firstErrorEventPromise]); @@ -49,7 +49,7 @@ test('captures a second exception after resetting the boundary', async ({ page } }); const secondErrorEventPromise = waitForError('solid', errorEvent => { - return !errorEvent.type; + return !errorEvent.type && errorEvent.transaction === '/error-boundary-example'; }); const [, secondErrorEvent] = await Promise.all([ diff --git a/dev-packages/e2e-tests/test-applications/solid/tests/errors.test.ts b/dev-packages/e2e-tests/test-applications/solid/tests/errors.test.ts index b55a9192ab1c..8fb9d3d2513a 100644 --- a/dev-packages/e2e-tests/test-applications/solid/tests/errors.test.ts +++ b/dev-packages/e2e-tests/test-applications/solid/tests/errors.test.ts @@ -3,7 +3,7 @@ import { waitForError } from '@sentry-internal/test-utils'; test('sends an error', async ({ page }) => { const errorPromise = waitForError('solid', async errorEvent => { - return !errorEvent.type; + return !errorEvent.type && errorEvent.transaction === '/'; }); await Promise.all([page.goto(`/`), page.locator('#errorBtn').click()]); diff --git a/packages/profiling-node/src/utils.ts b/packages/profiling-node/src/utils.ts index 5661129791bb..107debae5c8b 100644 --- a/packages/profiling-node/src/utils.ts +++ b/packages/profiling-node/src/utils.ts @@ -3,6 +3,7 @@ import * as os from 'os'; import type { Client, Context, + ContinuousThreadCpuProfile, DebugImage, DsnComponents, Envelope, @@ -11,6 +12,7 @@ import type { Profile, ProfileChunk, ProfileChunkEnvelope, + ProfileChunkItem, SdkInfo, StackFrame, StackParser, @@ -21,8 +23,6 @@ import { GLOBAL_OBJ, createEnvelope, dsnToString, forEachEnvelopeItem, logger, u import { env, versions } from 'process'; import { isMainThread, threadId } from 'worker_threads'; -import type { ProfileChunkItem } from '@sentry/types/build/types/envelope'; -import type { ContinuousThreadCpuProfile } from '../../types/src/profiling'; import { DEBUG_BUILD } from './debug-build'; import type { RawChunkCpuProfile, RawThreadCpuProfile } from './types'; diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 8fbfd37e95ab..257620abc9f7 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -46,6 +46,7 @@ export type { StatsdEnvelope, ProfileItem, ProfileChunkEnvelope, + ProfileChunkItem, SpanEnvelope, SpanItem, } from './envelope';