🧙♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
MIT License
Bot releases are hidden (Show)
Published by KATT over 2 years ago
lambda
adapter to aws-lambda
by @skovhus & @KATT in https://github.com/trpc/trpc/pull/1974
Full Changelog: https://github.com/trpc/trpc/compare/v9.25.0...v9.25.1
Published by KATT over 2 years ago
Full Changelog: https://github.com/trpc/trpc/compare/v9.24.0...v9.25.0
Published by KATT over 2 years ago
.close()
by @jlalmes in https://github.com/trpc/trpc/pull/1928
select
in useQuery()
is used by @bradennapier in https://github.com/trpc/trpc/pull/1950
useMutation
context support by @luixo in https://github.com/trpc/trpc/pull/1947
Full Changelog: https://github.com/trpc/trpc/compare/v9.23.6...v9.24.0
Published by KATT over 2 years ago
string
type instead of Symbol
in middlewares by @KATT in https://github.com/trpc/trpc/pull/1920, fixes #1900Full Changelog: https://github.com/trpc/trpc/compare/v9.23.5...v9.23.6
Published by KATT over 2 years ago
node-http
type errors by @sachinraja in https://github.com/trpc/trpc/pull/1913, fixes #1904Full Changelog: https://github.com/trpc/trpc/compare/v9.23.4...v9.23.5
Published by KATT over 2 years ago
@link
s in TRPCClient
by @BWsix in https://github.com/trpc/trpc/pull/1894
Full Changelog: https://github.com/trpc/trpc/compare/v9.23.3...v9.23.4
Published by KATT over 2 years ago
fastify-websocket
with @fastify/websocket
by @lukahartwig in https://github.com/trpc/trpc/pull/1883
Full Changelog: https://github.com/trpc/trpc/compare/v9.23.2...v9.23.3
Published by KATT over 2 years ago
Full Changelog: https://github.com/trpc/trpc/compare/v9.23.1...v9.23.2
Published by KATT over 2 years ago
Full Changelog: https://github.com/trpc/trpc/compare/v9.23.0...v9.23.1
Published by KATT over 2 years ago
CONFLICT
code to TRPCError
by @Perfect7M in https://github.com/trpc/trpc/pull/1764
output
type inference priority by @jlalmes in https://github.com/trpc/trpc/pull/1819
Full Changelog: https://github.com/trpc/trpc/compare/v9.22.0...v9.23.0
Published by KATT over 2 years ago
feat(server): route metadata by @LouisHaftmann in https://github.com/trpc/trpc/pull/1751
interface Context {
// ...
}
interface Meta {
data: string;
}
export const appRouter = trpc
.router<
Context,
/* <✨✨✨> */
Meta
/* </✨✨✨> */
>()
.query('query', {
/* <✨✨✨> */
meta: {
data: 'foo',
},
/* </✨✨✨> */
async resolve({ input }) {
return { input };
},
})
Full Changelog: https://github.com/trpc/trpc/compare/v9.21.0...v9.22.0
Published by KATT over 2 years ago
Full Changelog: https://github.com/trpc/trpc/compare/v9.20.3...v9.21.0
Published by KATT over 2 years ago
useMutation()
with context:
by @KATT in https://github.com/trpc/trpc/pull/1667
Thanks, @timcole for reporting and making repro!
Full Changelog: https://github.com/trpc/trpc/compare/v9.20.2...v9.20.3
Published by KATT over 2 years ago
error
by @KATT in https://github.com/trpc/trpc/pull/1645
Thanks, @TkDodo & @sachinraja for the help! ❤️
Full Changelog: https://github.com/trpc/trpc/compare/v9.20.1...v9.20.2
Published by KATT over 2 years ago
Thanks, @jlalmes for reporting!
Full Changelog: https://github.com/trpc/trpc/compare/v9.20.0...v9.20.1
Published by KATT over 2 years ago
@trpc/react
Improved helpers for infinite queries (#1530 - closes #1358)Thanks, @BrockHerion & @CommanderRoot! 🎉
Full Changelog: https://github.com/trpc/trpc/compare/v9.19.0...v9.20.0
invalidateQueries()
align better with react-query
(#1386)
Thanks to @MarcGuiselin for highlighting and reviewing!
CACHE_KEY_*
suffixes in react-query
cache (#1313)setQueryData
callback (#1319)If you are manually reading or writing to the raw
react-query
client's cache (trpc.useContext().queryClient
) cache, you might want to double-check your logic still works as intended after #1313