From e9582a9badb700c5a11b8381a2e92d2127d15739 Mon Sep 17 00:00:00 2001 From: Harsh Shrikant Bhat <90265455+harshsbhat@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:30:46 +0530 Subject: [PATCH 1/2] chore:withUnkey should not fail build (@unkey/nextjs) --- packages/nextjs/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/src/index.ts b/packages/nextjs/src/index.ts index 8d181c74aa..1978bee24b 100644 --- a/packages/nextjs/src/index.ts +++ b/packages/nextjs/src/index.ts @@ -52,7 +52,7 @@ export type WithUnkeyConfig = { type VerifyResponse = Awaited["keys"]["verify"]>>; export type UnkeyContext = VerifyResponse["result"]; -export type NextContext = { params: Record }; +export type NextContext = { params: Promise> }; export type NextRequestWithUnkeyContext = NextRequest & { unkey: UnkeyContext }; From 5b3f80ac37ab81ed46fca4d40eb111c43e86567d Mon Sep 17 00:00:00 2001 From: chronark Date: Wed, 13 Nov 2024 11:51:34 +0100 Subject: [PATCH 2/2] chore: release --- .changeset/little-melons-collect.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/little-melons-collect.md diff --git a/.changeset/little-melons-collect.md b/.changeset/little-melons-collect.md new file mode 100644 index 0000000000..eac1ca26c1 --- /dev/null +++ b/.changeset/little-melons-collect.md @@ -0,0 +1,5 @@ +--- +"@unkey/nextjs": minor +--- + +upgrade types to match nextjs 15