Skip to content

Conversation

@owjs3901
Copy link
Contributor

  • Fix typo: "Bold Typing" → "Boild Typing" (named after "boiled" - the warm opposite of cold, inspired by "boilerplate")
  • Add comprehensive Table of Contents to README
  • Improve Quick Start section with collapsible details and step-by-step guide
  • Expand API Usage examples:
    • Add PUT/PATCH/DELETE request examples
    • Add error handling patterns
    • Add request interceptors
    • Add timeout and retry logic examples
  • Enhance React Query integration section:
    • Add setup instructions with QueryClientProvider
    • Add useQuery examples with query options
    • Add useMutation examples with optimistic updates
    • Add useInfiniteQuery with pagination and infinite scroll
    • Add dependent queries pattern
  • Add new Advanced Usage section:
    • Authentication & JWT token refresh flow
    • File upload (single and multiple with progress)
    • Request cancellation with AbortController
    • Logging & debugging
    • Caching strategy
    • Rate limiting
    • Environment-based base URL
  • Update SKILL.md with Boild typing terminology and advanced features note

- Fix typo: "Bold Typing" → "Boild Typing" (named after "boiled" - the warm opposite of cold, inspired by "boilerplate")
- Add comprehensive Table of Contents to README
- Improve Quick Start section with collapsible details and step-by-step guide
- Expand API Usage examples:
  - Add PUT/PATCH/DELETE request examples
  - Add error handling patterns
  - Add request interceptors
  - Add timeout and retry logic examples
- Enhance React Query integration section:
  - Add setup instructions with QueryClientProvider
  - Add useQuery examples with query options
  - Add useMutation examples with optimistic updates
  - Add useInfiniteQuery with pagination and infinite scroll
  - Add dependent queries pattern
- Add new Advanced Usage section:
  - Authentication & JWT token refresh flow
  - File upload (single and multiple with progress)
  - Request cancellation with AbortController
  - Logging & debugging
  - Caching strategy
  - Rate limiting
  - Environment-based base URL
- Update SKILL.md with Boild typing terminology and advanced features note
@github-actions
Copy link

Changepacks

Fixed all examples that incorrectly used custom `fetch` function parameter:
- Authentication: Now uses api.use() with onRequest middleware for JWT token injection
- Token Refresh Flow: Uses onRequest and onResponse middleware for automatic token refresh
- Request Cancellation: Uses signal parameter in api.get() options
- Timeout Configuration: Uses middleware with AbortController
- Retry Logic: Uses onResponse middleware for retry on server errors
- Logging & Debugging: Uses onRequest/onResponse middleware
- Caching Strategy: Uses onRequest middleware to return cached responses
- Rate Limiting: Uses onRequest middleware with rate limiter

Removed duplicate "Request Interceptors" section (functionality covered by Middleware examples)

All examples now correctly demonstrate devup-api's Middleware API pattern as shown in test files.
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.

3 participants