Skip to content

@asouei/safe-fetch v1.0.0 - Monorepo & React Query Adapter

Latest

Choose a tag to compare

@Asouei Asouei released this 05 Sep 08:34
8641286

Safe-fetch ecosystem release

@asouei/safe-fetch@1.0.0

Stable monorepo release - No breaking changes

  • Monorepo structure: Moved to workspace for better ecosystem management
  • Enhanced build: Updated to Vite + Vitest for improved DX
  • Zero breaking changes: All APIs remain identical
  • Documentation: Updated with ecosystem overview and framework examples

@asouei/safe-fetch-react-query@0.1.0

First release of React Query adapter

  • createQueryFn(api) - Factory for React Query compatible queries
  • createMutationFn(api) - Factory for mutations
  • rqDefaults() - Returns { retry: false } for optimal integration
  • unwrap(promise) - Convert safe results to throws
  • Full TypeScript support with type inference

Quick start

npm install @asouei/safe-fetch
# For React Query integration
npm install @asouei/safe-fetch-react-query

Documentation

See [CHANGELOG.md](CHANGELOG.md) for complete details.