From 1a3b6a7f44f1bc98b8b9d188f3e129881eaec3a1 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Fri, 23 Oct 2026 22:15:28 +0000 Subject: [PATCH] chore(cli): Upgrade @sentry/api to 0.399.0 0.399.0 adds named types for enum-valued query parameters (getsentry/sentry-api-schema#108), such as ListOrganizationTraceItemAttributesQueryDataset, so callers can stop deriving them with NonNullable<...["query"]>. Two schema changes since 0.356.0 affect existing tests: - Organization Sentry App components now include a required installationUuid (getsentry/sentry#127591). The issue-link fixture gains it, since the CLI validates the response against the schema. - The replay index now accepts every replay response field, including replay_type (getsentry/sentry#128518). The tests that expected replay_type to be rejected now use a field outside the schema. Co-Authored-By: BYK --- packages/cli/package.json | 2 +- packages/cli/test/commands/explore.test.ts | 4 ++-- packages/cli/test/lib/api/issue-app-links.test.ts | 1 + packages/cli/test/lib/replay-search.test.ts | 4 ---- pnpm-lock.yaml | 10 +++++----- pnpm-workspace.yaml | 2 +- 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index a63b8a3b3..2da970360 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -99,7 +99,7 @@ "@clack/prompts": "0.11.0", "@hono/node-server": "^2.0.10", "@mastra/client-js": "^1.38.0", - "@sentry/api": "^0.356.0", + "@sentry/api": "^0.399.0", "@sentry/core": "10.63.0", "@sentry/mcp-server": "workspace:*", "@sentry/node": "10.65.0", diff --git a/packages/cli/test/commands/explore.test.ts b/packages/cli/test/commands/explore.test.ts index 9e72b2ed1..fa68161e4 100644 --- a/packages/cli/test/commands/explore.test.ts +++ b/packages/cli/test/commands/explore.test.ts @@ -1158,14 +1158,14 @@ describe("sentry explore", () => { ); }); - test("rejects replay detail-only fields on the replay dataset", async () => { + test("rejects fields missing from the replay schema", async () => { resolveTargetSpy.mockResolvedValue({ org: "test-org" }); const { context } = createContext(); await expect( func.call( context, - { ...DEFAULT_FLAGS, dataset: "replays", field: ["replay_type"] }, + { ...DEFAULT_FLAGS, dataset: "replays", field: ["device.model_id"] }, "test-org/", ), ).rejects.toThrow(ValidationError); diff --git a/packages/cli/test/lib/api/issue-app-links.test.ts b/packages/cli/test/lib/api/issue-app-links.test.ts index 1584b006a..ff69ab9ec 100644 --- a/packages/cli/test/lib/api/issue-app-links.test.ts +++ b/packages/cli/test/lib/api/issue-app-links.test.ts @@ -50,6 +50,7 @@ const COMPONENT = { type: "issue-link", error: "", sentryApp: { uuid: "app-uuid", slug: "linear", name: "Linear", avatars: [] }, + installationUuid: INSTALLATION.uuid, schema: { link: FORM }, }; diff --git a/packages/cli/test/lib/replay-search.test.ts b/packages/cli/test/lib/replay-search.test.ts index 00e7e14b7..449d871aa 100644 --- a/packages/cli/test/lib/replay-search.test.ts +++ b/packages/cli/test/lib/replay-search.test.ts @@ -60,10 +60,6 @@ describe("isSupportedReplayField", () => { expect(isSupportedReplayField("device.model_id")).toBe(false); expect(isSupportedReplayField("warning_ids")).toBe(false); }); - - test("rejects response fields the replay index does not accept", () => { - expect(isSupportedReplayField("replay_type")).toBe(false); - }); }); describe("getReplayFieldValue", () => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 885adef6a..d5efa922f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -444,8 +444,8 @@ importers: specifier: ^1.38.0 version: 1.46.0(ai@6.0.230(zod@4.6.5))(express@5.2.1)(zod@4.6.5) '@sentry/api': - specifier: ^0.356.0 - version: 0.356.0(valibot@1.4.2(typescript@5.9.3))(zod@4.6.5) + specifier: ^0.399.0 + version: 0.399.0(valibot@1.4.2(typescript@5.9.3))(zod@4.6.5) '@sentry/core': specifier: 10.63.0 version: 10.63.0(patch_hash=e663994979ff877a26ab6d4dea5968fbaee4ccdfdeb85623983535a572678940) @@ -4285,8 +4285,8 @@ packages: zod: optional: true - '@sentry/api@0.356.0': - resolution: {integrity: sha512-IYgEOAwDH5WXqzpxgOphYFKTBR1ALf4HK5cLl0RtIHvGIA8PgYu79a43Q6zmBf04up2XsDt9/xkuvIWgA/Eo6Q==} + '@sentry/api@0.399.0': + resolution: {integrity: sha512-hv1LMTtWOwbSXT3qomGz3b4irCtn+2SaLVrRM6kkwNB0a3PyMmraQxM0vCzWs0GxxDRdNF51GPpnGrOwoX62Hg==} engines: {node: '>=22'} peerDependencies: valibot: '*' @@ -12635,7 +12635,7 @@ snapshots: valibot: 1.4.2(typescript@5.9.3) zod: 4.4.3 - '@sentry/api@0.356.0(valibot@1.4.2(typescript@5.9.3))(zod@4.6.5)': + '@sentry/api@0.399.0(valibot@1.4.2(typescript@5.9.3))(zod@4.6.5)': optionalDependencies: valibot: 1.4.2(typescript@5.9.3) zod: 4.6.5 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 6984d6fe8..17f387a05 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -161,6 +161,6 @@ minimumReleaseAgeExclude: - "@oxlint/binding-win32-x64-msvc@1.87.0" - oxfmt@0.72.0 - oxlint@1.87.0 - - "@sentry/api@0.356.0" + - "@sentry/api@0.399.0" - miniflare@5.20261019.1-beta - wrangler@4.151.3