- Added: api-patterns, app-builder, architecture, bash-linux, behavioral-modes, clean-code, code-review-checklist, database-design, deployment-procedures, docker-expert, documentation-templates, game-development, geo-fundamentals, i18n-localization, lint-and-validate, mobile-design, nestjs-expert, nextjs-best-practices, nodejs-best-practices, parallel-agents, performance-profiling, plan-writing, powershell-windows, prisma-expert, python-patterns, react-patterns, red-team-tactics, seo-fundamentals, server-management, tailwind-patterns, tdd-workflow, typescript-expert, vulnerability-scanner - Updated README: skill count 179 → 223 - Added credit for vudovn/antigravity-kit (MIT License) Source: https://github.com/vudovn/antigravity-kit
23 lines
651 B
Markdown
23 lines
651 B
Markdown
# Versioning Strategies
|
|
|
|
> Plan for API evolution from day one.
|
|
|
|
## Decision Factors
|
|
|
|
| Strategy | Implementation | Trade-offs |
|
|
|----------|---------------|------------|
|
|
| **URI** | /v1/users | Clear, easy caching |
|
|
| **Header** | Accept-Version: 1 | Cleaner URLs, harder discovery |
|
|
| **Query** | ?version=1 | Easy to add, messy |
|
|
| **None** | Evolve carefully | Best for internal, risky for public |
|
|
|
|
## Versioning Philosophy
|
|
|
|
```
|
|
Consider:
|
|
├── Public API? → Version in URI
|
|
├── Internal only? → May not need versioning
|
|
├── GraphQL? → Typically no versions (evolve schema)
|
|
├── tRPC? → Types enforce compatibility
|
|
```
|