Skip to content

feat: endpoints, route-aware plugins and guide-style docs (0.1.0-rc.0) - #4

Merged
monarcode merged 6 commits into
mainfrom
next/0.1.0-rc.1
Oct 13, 2026
Merged

monarcode merged 6 commits into
mainfrom
next/0.1.0-rc.1

Conversation

@monarcode

Copy link
Copy Markdown
Owner

Adds client.endpoint(route, definition), exposes each call's route to plugins (ctx.route, wrap's third argument, logger's route annotation), and reorganizes the README into a top-to-bottom guide with new examples. See CHANGELOG.md for details. Sets the version to 0.1.0-rc.0 and freezes the API until 0.1.0.

- add `client.endpoint("GET /users/:id", definition)` to save a route with its
  schemas, headers and plugin overrides, plus the `Endpoint*` and route types
- pass the call's route to plugins as `ctx.route` and `wrap`'s third argument,
  and add it to `logger` annotations
- add endpoint and multi-backend examples, tests, type tests and docs
- expand the README Endpoints section with why, when to use them, and how to
  organize them
- add `examples/app/`, a feature-sliced app with shared clients and module-owned
  endpoints, plus `examples/README.md`
- rename `make` to `makeApi` in the examples and docs
- rewrite the intro, add a side-by-side with `HttpClient`, and restructure
  sections into a two-level table of contents
- group content into getting started, clients, calls, errors, plugins,
  endpoints, structuring an app, testing and reference
- note the reorganization in the changelog
@monarcode
monarcode merged commit 0c02b84 into main Oct 13, 2026
2 checks passed
@monarcode
monarcode deleted the next/0.1.0-rc.1 branch October 13, 2026 10:20
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