Repository navigation
flatten post requests' input - #671
Merged
Merged
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). www – ./www🔍 Inspect: https://vercel.com/trpc/www/8EjbXkka6pkgQMpmqYSEQtAaUaD1 todomvc – ./examples/next-prisma-todomvc🔍 Inspect: https://vercel.com/trpc/todomvc/3TnhMBePHksPo7dyacTkAYnhsahi |
KATT
added a commit
that referenced
this pull request
Jul 19, 2021
KATT
added a commit
that referenced
this pull request
Aug 20, 2021
- Reduce `TRPCError`s - `METHOD_NOT_FOUND` removed & `PATH_NOT_FOUND` renamed to `NOT_FOUND` (closes #733) - Align input and output serialization (closes #746) - Remove deprecated `httpErrors`-helper - Remove support for `?input` to be an array - now assuming a `Record<number, unknown>`-style dict (changed with backward compat in #669) - Remove support for `POST` calls being `{ input: x }` (originally from #671)
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before post bodies looked like
Now, we just pass input data straight off without nesting it in
input. Added backward-compatible code and test that can be deleted in next major.The idea originated with having a body envelope was to be able to pass info about batching and the paths called, etc, but this is done through the query params