Skip to content

docs: fix server range and write-retry claims in examples - #126

Merged
zeevdr merged 1 commit into
mainfrom
docs/124-server-range-retry
Jun 7, 2026
Merged

docs: fix server range and write-retry claims in examples#126
zeevdr merged 1 commit into
mainfrom
docs/124-server-range-retry

Conversation

@zeevdr

@zeevdr zeevdr commented Jun 7, 2026

Copy link
Copy Markdown
Member

Summary

  • The documented supported-server range and the error-handling retry guidance were both factually wrong. The retry misstatement was a data-safety hazard: it implied writes retry on DEADLINE_EXCEEDED by default, when in fact writes retry only on UNAVAILABLE unless an idempotencyKey is set.
  • The server-info doc example used the deprecated serverVersion getter and omitted the features map, steering users toward an API that is being removed.

Changes

  • docs/configuration.md: corrected supported server range to >=0.8.0,<1.0.0; switched the server-info example to serverInfo with a 0.8.x version and the features map.
  • examples/error-handling/main.ts: reworded retry guidance to match src/retry.ts — reads retry on UNAVAILABLE/DEADLINE_EXCEEDED/RESOURCE_EXHAUSTED; writes retry only on UNAVAILABLE unless idempotencyKey is set (which additionally enables DEADLINE_EXCEEDED).

Test plan

  • npm run build and npx tsc --noEmit pass.
  • Example typecheck (cd examples && npm ci && npx tsc --noEmit) passes — the authoritative CI gate for the edited example.
  • npm run lint and full npm test (255 tests) pass.
  • Each corrected fact verified against source: src/version.ts, src/retry.ts, src/types.ts, src/client.ts.

Closes #124

Three documentation facts were wrong:

- configuration.md stated the supported server range as
  >=0.3.0,<1.0.0; the real value in src/version.ts is
  >=0.8.0,<1.0.0.
- The error-handling example claimed writes retry on UNAVAILABLE
  and DEADLINE_EXCEEDED. Per src/retry.ts, reads retry on
  UNAVAILABLE, DEADLINE_EXCEEDED, and RESOURCE_EXHAUSTED, while
  writes retry only on UNAVAILABLE unless an idempotencyKey is
  passed (which additionally enables DEADLINE_EXCEEDED). Reworded
  to match the source and the doc's own prose.
- The server-info example used the deprecated serverVersion getter
  and omitted features. Switched to serverInfo with a realistic
  0.8.x version and the features map.

Closes #124

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@zeevdr zeevdr added this to the Beta Readiness milestone Jun 7, 2026
@zeevdr zeevdr added size: S Quick win — a few hours or less priority: P0 Blocks alpha or release labels Jun 7, 2026
@zeevdr zeevdr added this to OpenDecree Jun 7, 2026
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

Bundle size

Entry Size Budget Status
dist/index.js 101.5 kB 160000

@codecov

codecov Bot commented Jun 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zeevdr
zeevdr merged commit 86d1ada into main Jun 7, 2026
17 checks passed
@zeevdr
zeevdr deleted the docs/124-server-range-retry branch June 7, 2026 17:17
@github-project-automation github-project-automation Bot moved this from Todo to Done in OpenDecree Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: P0 Blocks alpha or release size: S Quick win — a few hours or less

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

docs: wrong server range + wrong write-retry claim in examples

1 participant