🧙♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
MIT License
react-query
to 3.31.0
and also bumped the peer dependency since this was merged (#1197)Published by KATT almost 3 years ago
@trpc/*
dependencies to peerDependencies
instead of dependencies
. Hopefully, this makes dependabot being able for auto-updates to update in a batch and leads to not having mismatching versions installed at the same time. (#1199)PRECONDITION_FAILED
/ HTTP 412
error code (#1194)What #1189 means is that you can now do this code:
trpc.router()
.query('greeting', {
input: z.object({
hi: z.string().transform(s => s.length),
}),
resolve({ input }) {
input.hi // => `number`, as expected
},
});
// [...] somewhere else:
client.query('greeting', { hi: 'my greeting' });
Thanks to @mgreenw & @kimroen!
Type instantiation is excessively deep and possibly infinite
on big routers (#1079)
~40
procedures, now confirmed and tested for >500
proceduresThanks to @mgreenw for reporting this!
Very impressive work by @mmkal - thanks a lot!
resolveHTTPResponse()
to be used in place of requestHandler()
when doing adaptersrequestRequestHandler
to nodeHTTPRequestHandler
and move to adapters/node-http
*HTTP
rather than Http
everywhere *adapters/standalone
*@trpc/ws
to @trpc/adapters/ws
**) with backward compatibility and deprecation warnings