Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

fix: tRPC example to support 11.x types #1103

Merged
merged 3 commits into from
Sep 27, 2024
Merged

fix: tRPC example to support 11.x types #1103

merged 3 commits into from
Sep 27, 2024

Conversation

chamathpali
Copy link
Contributor

@chamathpali chamathpali commented Sep 19, 2024

Updated the tRPC example guide to support the latest version of tRPC 11.x (next).
Accepted types of CreateAWSLambdaContextOptions has changed to

export type LambdaEvent = APIGatewayProxyEvent | APIGatewayProxyEventV2;

Reference:
https://github.com/trpc/trpc/blob/next/packages/server/src/adapters/aws-lambda/getPlanner.ts#L8
https://trpc.io/docs/server/adapters/aws-lambda#a-word-about-payload-format-version

@jayair
Copy link
Contributor

jayair commented Sep 20, 2024

Thanks!

Can you also make a change to the example app for this: https://github.com/sst/ion/tree/dev/examples/aws-trpc

I can test and merge it.

@chamathpali
Copy link
Contributor Author

@jayair Updated the PR with the latest trpc example

@jayair
Copy link
Contributor

jayair commented Sep 27, 2024

Thanks!

@jayair jayair merged commit 873a292 into sst:dev Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants