Skip to content

docs(bare): document bare_poll(), bare_attach(), and bare_detach() - #412

Merged
lucas-tortora merged 1 commit into
publishedfrom
docs/bare-embedding-poll-attach
Oct 6, 2026
Merged

lucas-tortora merged 1 commit into
publishedfrom
docs/bare-embedding-poll-attach

Conversation

@lucas-tortora

Copy link
Copy Markdown

Summary

Document bare_poll(), bare_attach(), and bare_detach() in the Embedding section of the Bare runtime reference.

They shipped in Bare 1.34.0 (holepunchto/bare#218 and #219) and are not documented anywhere on the site. The only prose for them is in the holepunchto/bare README, which is being trimmed in a separate PR to link to this page instead, so this should merge first.

Notes

  • The text is checked against include/bare.h, src/runtime.c, and the poll and attach tests at Bare 1.34.1.
  • The version requirement is written in prose ("Requires Bare >=1.34.0"), as on the embedder context page. The bare-runtime doc-states axis only tracks the Bare global in npm/index.d.ts (newest 1.32.0), so a <Since v="1.34.0" /> marker would fail check:docs-versions.

Testing

  • check-docs-versions, check-doctypes, and check-internal-links pass.
  • runtime.mdx compiles with the repo's remark plugins.
  • Not run locally: a full next build or the dev server.

🤖 Generated with Claude Code

Add the host-loop polling and attaching parts of the C embedding API to the
Embedding section of the Bare runtime reference. They shipped in Bare 1.34.0
(holepunchto/bare#218 and #219) and are not documented anywhere on the site;
the only prose was in the holepunchto/bare README, which is being trimmed to
link here instead.

The text is checked against include/bare.h, src/runtime.c, and the poll and
attach tests at Bare 1.34.1. The version requirement is stated in prose, as on
the embedder context page, because the bare-runtime doc-states axis only tracks
the Bare global in npm/index.d.ts (1.32.0 is its newest) and a <Since> marker
for 1.34.0 would fail check:docs-versions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kinsta

kinsta Bot commented Oct 6, 2026

Copy link
Copy Markdown

Preview deployments for pear-docs preview ⚡️

Status Branch preview Commit preview
✅ Ready Visit preview Visit preview

Commit: 8d81ce9e598518f2dc3efcab8f667418c8976d31

Deployment ID: fb426adb-549f-4af6-afa3-67a7f596bad1

Static site name: pear-docs-preview-iimt7

@kinsta

kinsta Bot commented Oct 6, 2026

Copy link
Copy Markdown

Preview deployments for pear-docs published ⚡️

Status Branch preview Commit preview
✅ Ready Visit preview Visit preview

Commit: 8d81ce9e598518f2dc3efcab8f667418c8976d31

Deployment ID: 2cb662a0-fa58-4e5e-b9a6-94ddb4dd004a

Static site name: pear-docs-published-i1yp5

@lucas-tortora
lucas-tortora merged commit 52500d6 into published Oct 6, 2026
9 checks passed
@lucas-tortora
lucas-tortora deleted the docs/bare-embedding-poll-attach branch October 6, 2026 18:58
lucas-tortora added a commit that referenced this pull request Oct 6, 2026
Conflicts in runtime.mdx are resolved in favour of published, whose #412
documents bare_poll(), bare_attach() and bare_detach() under Embedding. The C API
reference and the Supported platforms section, which published does not have,
are kept, with the reference now pointing at published's bare_poll() and
bare_attach() sections. The release overview links to the new anchor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
preview — 8d81ce9e Deployed Oct 6, 2026 by kinsta[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