ts-rest

RPC-like client, contract, and server implementation for a pure REST API

MIT License

Downloads
878.9K
Stars
2K
Committers
69

Bot releases are visible (Hide)

ts-rest - v3.48.1 Latest Release

Published by github-actions[bot] 3 months ago

@ts-rest/[email protected]

Patch Changes

  • f2835dd: Fix merging of baseHeaders and headers in contracts when they are defined using plain types

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • 48f2a8c: Use fastify logger for route initalization logs

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.48.0

Published by github-actions[bot] 3 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 24bb37c: RECOMMENDED: Add includeThrownErrorsInErrorType in react query client options. This should include the Error exception in the error type to cover non-HTTP errors such as network or CORS errors. Disabled by default so it does not break existing code, but extremely recommended to switch on.

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v4.0.0-beta.1

Published by github-actions[bot] 3 months ago

@ts-rest/[email protected]

Minor Changes

  • 5b5ae48: Set error type to include Error exception type to handle non-response fetch errors

Patch Changes

ts-rest - v3.47.0

Published by github-actions[bot] 3 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • eb2c647: Make sure initialized client and router types are exported so they can be re-exported with types emitted

@ts-rest/[email protected]

Minor Changes

  • eb2c647: Make sure initialized client and router types are exported so they can be re-exported with types emitted

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • eb2c647: Make sure initialized client and router types are exported so they can be re-exported with types emitted

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • eb2c647: Make sure initialized client and router types are exported so they can be re-exported with types emitted

@ts-rest/[email protected]

Minor Changes

  • eb2c647: BREAKING CHANGE: The order of generics on the tsr.* methods have been swapped. Now you don't have to pass typeof contract first. You can now pass your request extension type only.
  • eb2c647: Make sure initialized client and router types are exported so they can be re-exported with types emitted
  • eb2c647: Fluent router builder for easier modification of request context type in middleware. Try it out through tsr.routerBuilder(contract)!

Patch Changes

@ts-rest/[email protected]

Minor Changes

  • eb2c647: Make sure initialized client and router types are exported so they can be re-exported with types emitted

@ts-rest/[email protected]

Minor Changes

  • eb2c647: Make sure initialized client and router types are exported so they can be re-exported with types emitted
ts-rest - v3.46.0

Published by github-actions[bot] 3 months ago

@ts-rest/[email protected]

Minor Changes

  • d763d45: Export RequestValidationErrorSchema for default request validation error responses.

@ts-rest/[email protected]

Minor Changes

  • d763d45: Export RequestValidationErrorSchema for default request validation error responses.

@ts-rest/[email protected]

Minor Changes

  • fb42b94: Add ts-rest route to fastify config object
  • bfec125: Add option to define hooks on app level or route level
  • d763d45: Export RequestValidationErrorSchema for default request validation error responses.

Patch Changes

  • 610428d: Fix when pathPrefix is used multiple times in nested contracts

@ts-rest/[email protected]

Minor Changes

  • d763d45: Export RequestValidationErrorSchema for default request validation error responses.

@ts-rest/[email protected]

Minor Changes

  • d763d45: Export RequestValidationErrorSchema for default request validation error responses.

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • d763d45: Export RequestValidationErrorSchema for default request validation error responses.
  • 72fd14e: Add Azure Functions compatibility

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v4.0.0-beta.0

Published by github-actions[bot] 3 months ago

@ts-rest/[email protected]

Major Changes

  • e206168: Update to @tanstack/react-query v5
ts-rest - v3.45.2

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.45.1

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • b56a97d: Fix type inference for createSingleRouteHandler

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.45.0

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 3dc697f: Pass appRoute to route handlers

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 5f83426: Export the entire @tanstack/react-query from @ts-rest/react-query/tanstack to fix No QueryClient set errors caused by version mismatches

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.45.0-beta.1

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

Patch Changes

  • e6b2091: Add type: module to package.json

@ts-rest/[email protected]

Patch Changes

  • e6b2091: Add type: module to package.json

@ts-rest/[email protected]

Patch Changes

  • e6b2091: Add type: module to package.json

@ts-rest/[email protected]

Patch Changes

  • e6b2091: Add type: module to package.json

@ts-rest/[email protected]

Patch Changes

  • e6b2091: Add type: module to package.json

@ts-rest/[email protected]

Patch Changes

  • e6b2091: Add type: module to package.json

@ts-rest/[email protected]

Patch Changes

  • e6b2091: Add type: module to package.json

@ts-rest/[email protected]

Patch Changes

  • e6b2091: Add type: module to package.json
  • Updated dependencies [e6b2091]

@ts-rest/[email protected]

Patch Changes

  • e6b2091: Add type: module to package.json

@ts-rest/[email protected]

Patch Changes

  • e6b2091: Add type: module to package.json
ts-rest - v3.45.0-beta.0

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 3dc697f: Pass appRoute to route handlers

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • eed5e98: Export the entire @tanstack/react-query from @ts-rest/react-query/tanstack to fix No QueryClient set errors caused by version mismatches

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.44.1

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • 08878f0: Create type helpers for route-level middleware context

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.44.0

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

Minor Changes

  • 60f90fa: Allow entire contract to be passed to TsRestResponseError so common responses can be thrown easily
  • 45e5104: Add router-level metadata

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • Updated dependencies [60f90fa]
  • Updated dependencies [45e5104]

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.43.0

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

Minor Changes

  • 308b966: TsRestResponseError can be thrown from any server package

@ts-rest/[email protected]

Minor Changes

  • 308b966: TsRestResponseError can be thrown from any server package

@ts-rest/[email protected]

Minor Changes

  • 308b966: TsRestResponseError can be thrown from any server package

@ts-rest/[email protected]

Minor Changes

  • 308b966: TsRestResponseError can be thrown from any server package

@ts-rest/[email protected]

Minor Changes

  • 308b966: TsRestResponseError can be thrown from any server package

@ts-rest/[email protected]

Minor Changes

  • 77f23a8: Add operationMapper option to extend OpenAPI operations

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 308b966: TsRestResponseError can be thrown from any server package
  • 05e8a92: Add ability to include custom platform context for serverless fetch handler

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.42.0

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

Minor Changes

  • 7372bee: Allow arrays of files to be uploaded

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 7108c19: Add middleware support

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.41.2

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • b6bd2ed: Fix module resolution when not using node16 or nodenext

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.41.1

Published by github-actions[bot] 6 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • d107181: Fix broken type for @ts-rest/serverless/next handler

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.41.0

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

Minor Changes

  • fc0adc6: Add contract option to define common responses

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • a0ee91d: Fix setting of response description

@ts-rest/[email protected]

Patch Changes

  • 5a48f18: Fix select option

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

Patch Changes

  • 5a48f18: Fix select option

@ts-rest/[email protected]

Patch Changes

  • 5a48f18: Fix select option
ts-rest - v3.40.1

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

Patch Changes

  • afa5066: Fix incorrect type for URL params when using optional params without defining pathParams
  • afa5066: Fix broken types for c.responses()

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • Updated dependencies [afa5066]
  • Updated dependencies [afa5066]

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.40.0

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • fa7219d: Support Next.js App Router route handlers

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

Package Rankings
Top 2.0% on Npmjs.org
Related Projects