Skip to content

chore(cli): Upgrade @sentry/api to 0.399.0 - #1643

Merged
BYK merged 1 commit into
mainfrom
chore/bump-sentry-api-0.399
Oct 23, 2026
Merged

BYK merged 1 commit into
mainfrom
chore/bump-sentry-api-0.399

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Upgrades the CLI's @sentry/api dependency from ^0.356.0 to ^0.399.0, the release that includes getsentry/sentry-api-schema#108. That release exports a named type for every enum-valued query parameter, such as ListOrganizationTraceItemAttributesQueryDataset, so callers no longer need to derive them with NonNullable<…["query"]>. #1559 will switch its trace-item attribute types to these once this lands.

The lockfile change only covers @sentry/api. pnpm-workspace.yaml moves the minimumReleaseAgeExclude entry to the new version, because 0.399.0 was published today.

Two schema changes between 0.356.0 and 0.399.0 broke existing tests. Both changes match Sentry's current behavior, so the tests were updated rather than the code:

  • Sentry App components: the organization endpoint now returns a required installationUuid (feat(sentry-apps): Return installation UUID with org components sentry#127591). The CLI validates this response against the schema, so the issue-app-links test fixture now includes the field; without it, all 37 issue-link tests failed. The org endpoint always passes installation_uuids to the serializer, so live responses always include the field. Self-hosted servers older than that change will fail this validation.
  • Replay fields: the replay index now accepts every replay response field, including replay_type, because the field list comes from ReplayDetailsResponse (fix(replays): Reject unknown fields on replay details endpoints sentry#128518). The two tests that expected replay_type to be rejected now check a field that isn't in the schema, device.model_id.

Verification: typecheck and lint pass. CLI tests: 11,295 passed and 6 failed. The 6 failures are permission tests that also fail on a clean main in my sandbox (completions, code-scanner, file-changes, telemetry, upgrade).

The follow-up bump to 0.400.0 is #1645.

via BYK.

--

View Junior Session [Sentry]

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 <burak.kaya@sentry.io>
@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-local Ready Ready Preview Oct 23, 2026 10:18pm UTC

Request Review

@BYK
BYK enabled auto-merge (squash) October 23, 2026 22:21
@BYK
BYK merged commit 5524368 into main Oct 23, 2026
42 checks passed
@BYK
BYK deleted the chore/bump-sentry-api-0.399 branch October 23, 2026 22:27
@sentry-junior sentry-junior Bot changed the title chore(cli): Upgrade @sentry/api to 0.399.0 chore(cli): Upgrade @sentry/api to 0.400.0 Oct 23, 2026
@sentry-junior sentry-junior Bot changed the title chore(cli): Upgrade @sentry/api to 0.400.0 chore(cli): Upgrade @sentry/api to 0.399.0 Oct 23, 2026
BYK added a commit that referenced this pull request Oct 23, 2026
Upgrades the CLI's `@sentry/api` dependency from `^0.399.0` (#1643) to
`^0.400.0`, the first release with getsentry/sentry#128639. That change
withholds `info_ids` and `warning_ids` from the public replay `field`
enum. The 0.400.0 types differ from 0.399.0 only in that enum, on the
replay index and details endpoints.

The lockfile change only covers `@sentry/api`. `pnpm-workspace.yaml`
moves the `minimumReleaseAgeExclude` entry to 0.400.0, because it was
published today.

Since #1617, replay explore builds its fields from the schema. New
assertions in `test/lib/replay-search.test.ts` check that:
- `replay_type` and `ota_updates.channel` are supported.
- `info_ids` and `warning_ids` are neither supported fields nor
requestable roots.

Verification: typecheck and lint pass, and a frozen-lockfile install
passes. The replay, explore, and issue-app-links tests pass (149 tests).
I didn't rerun the full suite, because the schema change is limited to
that enum.

<!-- junior-request-attribution:start -->
via **BYK**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC010884QHLG%3A1792754298.933159 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC010884QHLG%3A1792754298.933159)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC010884QHLG%3A1792754298.933159/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <burak.kaya@sentry.io>
sentry-junior Bot added a commit that referenced this pull request Oct 23, 2026
Switch TraceItemAttributeDataset and TraceItemAttributeValueType to the
ListOrganizationTraceItemAttributesQuery{Dataset,AttributeType} exports
added in @sentry/api (#1643) instead of deriving them
from the query shape.

Co-Authored-By: BYK <burak.kaya@sentry.io>

This branch was successfully deployed

1 active deployment
Preview — 1a3b6a7f Deployed Oct 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant