Skip to content

Replace the removed Zero endpoint mode option with readOnly - #65

Draft
Kn0ax wants to merge 1 commit into
mainfrom
codex/zero-endpoint-docs
Draft

Kn0ax wants to merge 1 commit into
mainfrom
codex/zero-endpoint-docs

Conversation

@Kn0ax

@Kn0ax Kn0ax commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The Zero endpoint examples still used the mode option, which @spacefast/zero 0.5.0 removed. This updates both examples and the endpoint() reference to readOnly. GET and HEAD endpoints are read endpoints by default, and every other method writes. readOnly overrides that default in either direction.

The zero_mutation_origin_invalid error page isn't in this PR. It's part of the producer-owned generated snapshot, which can't be split, so it ships with the reference refresh in #54.

Validation

verify:generated, check, validate, build, audit, verify:public-safety, and verify:routes pass with Bun 1.3.11 and Node 26.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@spacefast/zero 0.5.0 replaced endpoint `mode` with an optional
`readOnly`: GET and HEAD read by default, every other method writes.
Update the endpoint examples and the endpoint() reference to match.
@Kn0ax
Kn0ax force-pushed the codex/zero-endpoint-docs branch from d462475 to db737f4 Compare October 6, 2026 18:43
@Kn0ax Kn0ax changed the title Fix Zero endpoint API docs and restore the origin error reference Replace the removed Zero endpoint mode option with readOnly Oct 6, 2026
@spacefast
spacefast Bot had a problem deploying to preview/codex/zero-endpoint-docs October 7, 2026 17:43 Failure

This branch had an error being deployed

1 failed deployment
preview/codex/zero-endpoint-docs — db737f4a Deployed Oct 7, 2026 by spacefast[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant