Skip to content

Releases: webrpc/gen-typescript

v0.22.5

07 Nov 11:10
4377c0f

Choose a tag to compare

What's Changed

Full Changelog: v0.22.4...v0.22.5

v0.22.4

07 Nov 10:54
aff9214

Choose a tag to compare

What's Changed

Full Changelog: v0.22.3...v0.22.4

v0.22.3

07 Nov 10:03
b83464d

Choose a tag to compare

v0.22.3 Pre-release
Pre-release

What's Changed

  • Fix Webrpc client header, should be enabled by default by @VojtechVitek in #47

There's a bug in this release. Please don't use it.

Full Changelog: v0.22.2...v0.22.3

v0.22.1

27 Oct 20:10
7a755b4

Choose a tag to compare

  • tiny fix in client sse template

v0.22.0

27 Oct 20:07
d9bfc20

Choose a tag to compare

bigint support

v0.21.0

22 Oct 17:00
af334d1

Choose a tag to compare

What's Changed

Features

Query Keys for React Query / SWR

The generated client now includes a queryKey property with type-safe query key generators for each endpoint. This makes it easy to use with popular data-fetching
libraries like tanstack query and Vercel's SWR

import { useQuery } from '@tanstack/react-query'
import { Example } from './client.gen'

const client = new Example('http://localhost:3000', fetch)

function UserProfile({ userId }) {
  const { data } = useQuery({
    queryKey: client.queryKey.getUser({ userId }),
    queryFn: ({ signal }) => client.getUser({ userId }, undefined, signal)
  })

  return <div>{data?.user.name}</div>
}

The query keys follow the pattern [ServiceName, methodName, request?]

Full Changelog: v0.20.2...v0.21.0

v0.19.0

29 Jul 14:44
8afe13b

Choose a tag to compare

What's Changed

Full Changelog: v0.18.0...v0.19.0

v0.18.0

29 Jul 14:41
bf0cc97

Choose a tag to compare

What's Changed

Full Changelog: v0.17.0...v0.18.0

v0.17.0

25 Mar 18:58
52d15f4

Choose a tag to compare

What's Changed

Full Changelog: v0.16.3...v0.17.0

v0.16.3

26 Feb 12:12
61a3d63

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.16.2...v0.16.3