Skip to content

docs(readme): drop compose() mention; it's not public API#15

Merged
lesnik512 merged 1 commit into
mainfrom
docs/readme-fix-compose-mention
May 31, 2026
Merged

docs(readme): drop compose() mention; it's not public API#15
lesnik512 merged 1 commit into
mainfrom
docs/readme-fix-compose-mention

Conversation

@lesnik512

@lesnik512 lesnik512 commented May 31, 2026

Copy link
Copy Markdown
Member

Summary

Final-review catch on the 0.1.0 release-prep PR (#14): the README's middleware bullet named `compose()` as if it were public, but `compose` lives at `httpware._internal.chain.compose` per the seam-1 design. `from httpware import compose` raises `ImportError`.

This is exactly the "overpromising what's not shipped" failure mode the trim was supposed to prevent. One-line fix on the bullet that:

  • Drops `compose()` from the list of public surface items.
  • Adds a short note that the chain is composed at AsyncClient construction (so users understand how middleware is wired without seeing the internal symbol).

Caught by the opus review on PR #14 before the maintainer creates the GitHub Release tag. Lands cleanly so 0.1.0 ships honest README copy.

Test plan

  • No source/test changes.
  • `just lint-ci` clean.
  • CI green.

🤖 Generated with Claude Code

The README bullet under "Middleware foundation" named compose() as if it
were a user-callable function. `compose` lives at
`httpware._internal.chain.compose` per the seam-1 design — `Middleware`
chain composition is an internal AsyncClient concern, not a consumer
API. A user reading the bullet and trying `from httpware import compose`
would hit ImportError.

Replaces the compose() reference with a one-line note: "The chain is
composed at AsyncClient construction; consumers don't compose chains
themselves." Honest about how middleware is wired without exposing
internal symbols.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lesnik512 lesnik512 merged commit b6eb1f7 into main May 31, 2026
5 checks passed
@lesnik512 lesnik512 deleted the docs/readme-fix-compose-mention branch May 31, 2026 20:58
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