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

github-actions bot commented Dec 19, 2025

Changepacks

@devup-api/[email protected] → 0.1.10 - packages/generator/package.json

Patch

  • Fix gen interface issue

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.
Changed all occurrences of the incorrect option name:
- openapiFile (❌ singular) → openapiFiles (✅ plural)
- Updated type to string | string[] to support multiple OpenAPI schemas
- Fixed Quick Start examples (Vite, Webpack, Rsbuild)
- Fixed Configuration Options section with correct type signature

The actual option name in the codebase is openapiFiles (plural), as defined in:
- packages/core/src/options.ts
- packages/utils/src/read-openapi.ts (normalizeOpenapiFiles function)
Removed the Timeout Middleware example that was not found in the codebase:
- The pattern was unverified and potentially had memory leaks (no timeout cleanup)
- Used unnecessary middleware complexity

Replaced with correct approach using signal option directly:
- DevupApiRequestInit extends RequestInit, so signal is natively supported
- Added two examples: wrapper function and direct signal usage
- Includes proper timeout cleanup with clearTimeout()
- Simpler, clearer, and verified approach

This matches how React Query integration uses signal (see packages/react-query/src/query-client.ts:88-94)
@owjs3901 owjs3901 merged commit b3a3163 into main Dec 22, 2025
3 checks passed
@owjs3901 owjs3901 deleted the claude/fix-readme-typo-ucfPT branch December 22, 2025 13:05
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