Skip to content

Releases: rstackio/services

v0.1.0 — Initial Release

Choose a tag to compare

@rkovalov rkovalov released this 01 Mar 16:23

What's included

Minimal TypeScript toolkit for async data fetching — typed errors, chainable transforms, zero-config mocking.

Modules

  • data-providercreateSafeProvider / createProvider: chainable, mockable providers returning [error, data] tuples
  • safe — wrap any async/sync function to return [error, data] instead of throwing
  • mockenableMock / disableMock / delay: toggle mock mode, simulate latency, SSR-compatible
  • logger — structured console logger, silent in production

Highlights

  • .andMock() enforces exact signature match at compile time — no silent mismatches
  • NODE_ENV=test auto-enables mocks — no vi.mock needed
  • .andThen() / .andCatch() / .andFinally() compose once, apply on every call
  • AbortSignal flows through providers and delay()