Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Update Zero docs with API routes, middleware, and testing#11

Merged
vitbokisch merged 1 commit into
mainfrom
docs/update-zero-full
Mar 21, 2026
Merged

Update Zero docs with API routes, middleware, and testing#11
vitbokisch merged 1 commit into
mainfrom
docs/update-zero-full

Conversation

@vitbokisch

Copy link
Copy Markdown
Contributor

Summary

Comprehensive update to the Zero documentation page (+188 lines):

New Sections

  • API Routes — file conventions, ApiContext, HTTP method handlers, wiring with virtual:zero/api-routes
  • CORS Middleware — origin config (string/array/function), credentials, preflight, all options
  • Rate Limiting — max/window, include/exclude patterns, X-RateLimit-* headers, 429 responses
  • Compression — gzip/deflate via CompressionStream, threshold, compressible types
  • Testing UtilitiescreateTestContext, testMiddleware, createTestApiServer, createMockHandler with examples

Updated Tables

  • Exports summary: +6 new entries (API middleware, CORS, rate limit, compression)
  • Subpath exports: +5 new paths (api-routes, cors, rate-limit, compression, testing)
  • Type exports: +7 new types (ApiContext, CorsConfig, RateLimitConfig, etc.)

🤖 Generated with Claude Code

…esting

Add comprehensive documentation for all new features:
- API routes: file conventions, ApiContext, wiring, method handlers
- CORS middleware: origin config (string/array/function), credentials, preflight
- Rate limiting: max/window, include/exclude, X-RateLimit headers
- Compression middleware: gzip/deflate via CompressionStream
- Testing utilities: createTestContext, testMiddleware, createTestApiServer, createMockHandler
- Updated exports summary table with 6 new entries
- Updated subpath exports table with 5 new subpaths
- Updated type exports table with 7 new types

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vitbokisch vitbokisch merged commit 1ca5352 into main Mar 21, 2026
6 checks passed
@vitbokisch vitbokisch deleted the docs/update-zero-full branch March 21, 2026 17:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant