Skip to content

V9 refactoring and cleanup - #732

Merged
KATT merged 23 commits into
mainfrom
feature/next-major
Aug 20, 2021
Merged

KATT merged 23 commits into
mainfrom
feature/next-major

Conversation

@KATT

@KATT KATT commented Jul 28, 2021 •

Copy link
Copy Markdown
Member

Think this PR along with #718 settles what I want to do with the next major update.

Keen to have any input on other fundamentals people / API surfaces or shapes that people think should change (including if you disagree with the changes here) - ping @cyrus-za / @anthonyshort / @peterp / @mmkal .

Summary of changes

@vercel

vercel Bot commented Jul 28, 2021 •

Copy link
Copy Markdown

@KATT KATT added ⏭ major bump needed Requires a major version bump 🚧 wip work in progress labels Jul 28, 2021
@KATT KATT added this to the v9 milestone Jul 29, 2021
KATT added 5 commits July 29, 2021 10:19
# Conflicts:
#	packages/server/test/index.test.tsx
#	packages/server/test/middleware.test.ts
#	www/docs/server/authorization.md
@KATT KATT changed the title remove deprecated stuff v9 cleanup - remove deprecated stuff Aug 15, 2021
BAD_REQUEST: 400,
METHOD_NOT_FOUND: 405,
PATH_NOT_FOUND: 404,
NOT_FOUND: 404,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why no 405 METHOD_NOT_ALLOWED?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's removed now anyway :)

async resolve({ ctx }) {
if (!ctx.user) {
throw trpc.httpError.unauthorized();
throw new TRPCError({ code: 'UNAUTHORIZED' });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likimng this syntax 👍🏻

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 10, 2022

This branch was successfully deployed

2 active deployments
Preview – todomvc — 50ad4eb1 Deployed Aug 20, 2021 by vercel[bot]
Preview – www — 50ad4eb1 Deployed Aug 20, 2021 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

♻️ autoupdate ⏭ major bump needed Requires a major version bump 🙏 review please needs community sign-off

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Batching transformers inconsistency input/output Reduce TRPCError-codes

4 participants