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.39.2

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

Patch Changes

  • dc554da: Fix params resolving as any when pathParams is missing and zod is not installed

@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.39.1

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • 4e166b3: Fix fastify crashing on malformed request JSON

@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.39.0

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

Minor Changes

  • 860e402: Add contract definition for an absent body and handle accordingly on the server
  • 487b2b6: Add c.responses utility

Patch Changes

  • 8f4cfe6: Fix client not validating response

@ts-rest/[email protected]

Minor Changes

  • 860e402: Add contract definition for an absent body and handle accordingly on the server

@ts-rest/[email protected]

Minor Changes

  • 860e402: Add contract definition for an absent body and handle accordingly on the server

@ts-rest/[email protected]

Minor Changes

  • 860e402: Add contract definition for an absent body and handle accordingly on the server

@ts-rest/[email protected]

Minor Changes

  • 860e402: Add contract definition for an absent body and handle accordingly on the server

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 860e402: Add contract definition for an absent body and handle accordingly on the server

Patch Changes

  • Updated dependencies [8f4cfe6]
  • Updated dependencies [860e402]
  • Updated dependencies [487b2b6]

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.38.0

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

Patch Changes

  • 0b9f249: Fix ts-rest overwriting a supplied content-type header
  • 15d4926: Fix invalid extraHeaders type when no headers are defined in the contract

@ts-rest/[email protected]

Minor Changes

  • 33d6a57: Add single route implementation helper

@ts-rest/[email protected]

Minor Changes

  • 33d6a57: Add single route implementation helper

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 33d6a57: Add single route implementation helper

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • Updated dependencies [0b9f249]
  • Updated dependencies [15d4926]

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.37.0

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

Minor Changes

  • 6a5280c: Allow fetch options to be set and client options to be overridden per request

Patch Changes

  • 77db06b: Fix client not correctly encoding application/x-www-form-urlencoded body

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • 85b262b: Fix return types for Nest handlers

@ts-rest/[email protected]

Patch Changes

  • 6a5280c: Deprecate initNextClient. Use initClient from @ts-rest/core and use the fetchOptions.next parameter.

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 6a5280c: Allow fetch options to be set and client options to be overridden per request

@ts-rest/[email protected]

Patch Changes

  • Updated dependencies [6a5280c]
  • Updated dependencies [77db06b]

@ts-rest/[email protected]

Minor Changes

  • 6a5280c: Allow fetch options to be set and client options to be overridden per request

@ts-rest/[email protected]

Minor Changes

  • 6a5280c: Allow fetch options to be set and client options to be overridden per request
ts-rest - v3.36.0

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

Patch Changes

  • c7e05d8: Fix optional path parameters showing in types with a question mark if path params are not used

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 3e8701c: Add functionality to be able to set configuration options globally using TsRestModule

Breaking Change

  • The deprecated @JsonQuery decorator has been removed. Use the existing options argument on @TsRest instead.

@ts-rest/[email protected]

Minor Changes

  • ab4dd27: Add support for creating single url routes in Next.js

@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.36.0-beta.0

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

Patch Changes

  • c7e05d8: Fix optional path parameters showing in types with a question mark if path params are not used

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 766b8a1: Add functionality to be able to set configuration options globally using TsRestModule

@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.35.1

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • b3fde9b: Fix Nest.js interceptor returninng promise when using new Nest.js handlers
  • 14f9416: Allow Nest.js handlers to return non-promise 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 - v3.35.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

  • bacc9d1: New serverless library for AWS Lambda, Edge runtimes and Next.js-specific Edge runtime

Patch Changes

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.34.0

Published by github-actions[bot] 7 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • ea5c641: Export type TsRestExpressOptions

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • b194d2a: Allow examples on body and responses

Patch Changes

  • 4665e0f: Correctly add style: deepObject for optional objects

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

ts-rest - v3.33.1

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]

Patch Changes

  • 6d2c369: Remove TanStack Query v5 from peer dependencies

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • 6d2c369: Remove TanStack Query v5 from peer dependencies
ts-rest - v3.33.0

Published by github-actions[bot] 9 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 820658a: feat @ts-rest/express: Allow file downloads with Express

@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 - v3.32.0

Published by github-actions[bot] 9 months ago

@ts-rest/[email protected]

Minor Changes

  • c4fb3f6: feat: @ts-rest/core: Add support for x-www-form-urlencoded content-type to core client fetcher

@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]

ts-rest - v3.31.0

Published by github-actions[bot] 9 months ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • dcf40a6: feat: @ts-rest/nest allow TsRestException to be handled by NestJS exception filters
  • 89941a2: feat: @ts-rest/nest Adds support to provide a cause to TsRestException

@ts-rest/[email protected]

Minor Changes

  • 3668247: feat: @ts-rest/next allow nextjs as a peer dependency
  • cb7aa3d: feat: ts-rest/next allow customization for zod validation errors

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 29fe85b: feat: @ts-rest/react-query use object-syntax in react-query to support @tanstack/react-query@^5.0.0

    • note: This does not implement a complete migration to v5 but lays the groundwork to get the ball rolling and apps running again.

    feat: @ts-rest/vue-query add @tanstack/vue-query@^5.0.0 as peer dependency

@ts-rest/[email protected]

@ts-rest/[email protected]

Minor Changes

  • 29fe85b: feat: @ts-rest/react-query use object-syntax in react-query to support @tanstack/react-query@^5.0.0

    • note: This does not implement a complete migration to v5 but lays the groundwork to get the ball rolling and apps running again.

    feat: @ts-rest/vue-query add @tanstack/vue-query@^5.0.0 as peer dependency

ts-rest - v3.30.5

Published by github-actions[bot] 11 months ago

@ts-rest/[email protected]

Patch Changes

  • 9bd7402: - @ts-rest/fastify fix: fastify deprecated routerPath property (fixes #392)
    • @ts-rest/open-api fix: Pass through contentType to OpenApi schema (#414)
    • @ts-rest/core fix: Content-type text/html returns blob body (fixes #418)
  • 8cc95c5: add changeset for latest changes

@ts-rest/[email protected]

Patch Changes

  • 9bd7402: - @ts-rest/fastify fix: fastify deprecated routerPath property (fixes #392)
    • @ts-rest/open-api fix: Pass through contentType to OpenApi schema (#414)
    • @ts-rest/core fix: Content-type text/html returns blob body (fixes #418)
  • 8cc95c5: add changeset for latest changes

@ts-rest/[email protected]

Patch Changes

  • 9bd7402: - @ts-rest/fastify fix: fastify deprecated routerPath property (fixes #392)
    • @ts-rest/open-api fix: Pass through contentType to OpenApi schema (#414)
    • @ts-rest/core fix: Content-type text/html returns blob body (fixes #418)
  • 8cc95c5: add changeset for latest changes

@ts-rest/[email protected]

Patch Changes

  • 9bd7402: - @ts-rest/fastify fix: fastify deprecated routerPath property (fixes #392)
    • @ts-rest/open-api fix: Pass through contentType to OpenApi schema (#414)
    • @ts-rest/core fix: Content-type text/html returns blob body (fixes #418)
  • 8cc95c5: add changeset for latest changes

@ts-rest/[email protected]

Patch Changes

  • 9bd7402: - @ts-rest/fastify fix: fastify deprecated routerPath property (fixes #392)
    • @ts-rest/open-api fix: Pass through contentType to OpenApi schema (#414)
    • @ts-rest/core fix: Content-type text/html returns blob body (fixes #418)
  • 8cc95c5: add changeset for latest changes

@ts-rest/[email protected]

Patch Changes

  • 9bd7402: - @ts-rest/fastify fix: fastify deprecated routerPath property (fixes #392)
    • @ts-rest/open-api fix: Pass through contentType to OpenApi schema (#414)
    • @ts-rest/core fix: Content-type text/html returns blob body (fixes #418)
  • 8cc95c5: add changeset for latest changes

@ts-rest/[email protected]

Patch Changes

  • 9bd7402: - @ts-rest/fastify fix: fastify deprecated routerPath property (fixes #392)
    • @ts-rest/open-api fix: Pass through contentType to OpenApi schema (#414)
    • @ts-rest/core fix: Content-type text/html returns blob body (fixes #418)
  • 8cc95c5: add changeset for latest changes

@ts-rest/[email protected]

Patch Changes

  • 9bd7402: - @ts-rest/fastify fix: fastify deprecated routerPath property (fixes #392)
    • @ts-rest/open-api fix: Pass through contentType to OpenApi schema (#414)
    • @ts-rest/core fix: Content-type text/html returns blob body (fixes #418)
  • 8cc95c5: add changeset for latest changes

@ts-rest/[email protected]

Patch Changes

  • 9bd7402: - @ts-rest/fastify fix: fastify deprecated routerPath property (fixes #392)
    • @ts-rest/open-api fix: Pass through contentType to OpenApi schema (#414)
    • @ts-rest/core fix: Content-type text/html returns blob body (fixes #418)
  • 8cc95c5: add changeset for latest changes
ts-rest - v3.30.4

Published by github-actions[bot] about 1 year ago

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

Patch Changes

@ts-rest/[email protected]

Patch Changes

ts-rest - v3.30.3

Published by github-actions[bot] about 1 year ago

@ts-rest/[email protected]

Patch Changes

  • da48e62: fix: apply validateResponseOnClient recursively to nested App Routers in @ts-rest/core client

@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]

ts-rest - v3.30.2

Published by github-actions[bot] about 1 year ago

@ts-rest/[email protected]

Patch Changes

  • bd0161b: fix: content-type application/json will not be automatically included in client request if the route is GET or body is undefined/null

    if you need to send this header for whatever reason in a GET request/undefined body request, you can pass in runtime headers https://ts-rest.com/docs/core/#headers

@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

  • bd0161b: fix: content-type application/json will not be automatically included in client request if the route is GET or body is undefined/null
ts-rest - v3.30.1

Published by github-actions[bot] about 1 year ago

@ts-rest/[email protected]

@ts-rest/[email protected]

@ts-rest/[email protected]

Patch Changes

  • a30326c: Remove console log in fasitfy route initialization for @ts-rest/fastify

@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 - v3.30.0

Published by github-actions[bot] about 1 year ago

@ts-rest/[email protected]

Minor Changes

  • c056132: feat: add support for client-side response validation against contract schemas for @ts-rest/core (see docs for usage)

@ts-rest/[email protected]

Minor Changes

  • 225921c: feat: added stronger typing for the req object in the route handler for '@ts-rest/express'

@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]