Releases: wobsoriano/trpc-nuxt
Releases · wobsoriano/trpc-nuxt
v0.10.1
🏡 Chore
- deps:
- Bump @trpc/client and @trpc/server to 10.26.0 - by @wobsoriano (4af2b)
🐞 Bug Fixes
- Transform types - by @wobsoriano (4339b)
- AsyncData types - by @wobsoriano (ae0b7)
View changes on GitHub
v0.9.0
🚀 Features
- deps: Bump @trpc/client and @trpc/server to 10.20.0 - by @wobsoriano (fb572)
🐞 Bug Fixes
- Trpc-nuxt docs - by @wobsoriano (be556)
- Use latest
@nuxtlabs/github
module - by @danielroe (54ef2)
View changes on GitHub
v0.8.0
🐞 Bug Fixes
- Pass all arguments to proxied trpc client method - by @robinWongM (6595a)
View changes on GitHub
v0.7.0
🚀 Features
- deps:
- Bump h3 to 1.5.0 - by @wobsoriano (d6c60)
- Bump ofetch to 1.0.1 - by @wobsoriano (6f179)
- Bump ufo to 1.1.0 - by @wobsoriano (aa3fe)
- Require trpc >10.12.0 - by @wobsoriano (4f6c0)
View changes on GitHub
v0.6.0
🚀 Features
- deps:
- Bump @trpc/client and @trpc/server to 10.10.0 - by @wobsoriano (f89c8)
- Bump h3 to 1.1.0 - by @wobsoriano (57faf)
View changes on GitHub
v0.5.0
- chore: bump
peerDependencies
of@trpc/*
-packages to^10.8.0
- by @wobsoriano (14a18) - fix: Link types - by @wobsoriano (c1a79)
View changes on GitHub
v0.4.4
🚀 Features
- Add custom Nuxt client (
createTRPCNuxtClient
) - by @wobsoriano (ee85f) - Add convenience link wrappers (
httpLink
,httpBatchLink
) - by @wobsoriano (ff888)
Usage
import { createTRPCNuxtClient, httpBatchLink } from 'trpc-nuxt/client'
import type { AppRouter } from '~/server/trpc/routers'
const client = createTRPCNuxtClient<AppRouter>({
links: [
httpBatchLink({
url: '/api/trpc',
}),
],
})
<script setup lang="ts">
const { $client } = useNuxtApp()
const hello = await $client.hello.useQuery({ text: 'world' })
</script>
<template>
<div>
<p>{{ hello.data?.greeting }}</p>
</div>
</template>
View changes on GitHub
v0.4.3
🚀 Features
- deps: Update minimum required @trpc/server and @trpc/nuxt version to 10.0.0 - by @wobsoriano (5cf1a)
View changes on GitHub
v0.4.2
🚀 Features
- Get req,res values from event.node - by @wobsoriano (f08b7)
- deps:
- Bump h3, ohash and ufo to 1.0.0 - by @wobsoriano (c5c1f)
- Bump h3 to 1.0.1 - by @wobsoriano (d6f11)
🐞 Bug Fixes
- Request types - by @wobsoriano (13713)
- Request types - by @wobsoriano (4085d)
View changes on GitHub
v0.4.1
🚀 Features
- Remove nuxt 3 wrappers for client - by @wobsoriano (85998)
- deps:
- Bump h3 to 0.8.6 - by @wobsoriano (f92ae)
- Bump nuxt to 3.0.0-rc.13 - by @wobsoriano (ffb69)