From 9d4d7a83d8797e77d7e0e34a1eb76c356010ba00 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 3 Dec 2024 14:47:03 +0000 Subject: [PATCH] Version Packages --- .changeset/three-singers-roll.md | 39 ------------------ packages/experimental-app-router/CHANGELOG.md | 40 +++++++++++++++++++ packages/experimental-app-router/package.json | 2 +- 3 files changed, 41 insertions(+), 40 deletions(-) delete mode 100644 .changeset/three-singers-roll.md diff --git a/.changeset/three-singers-roll.md b/.changeset/three-singers-roll.md deleted file mode 100644 index 579cf86e7..000000000 --- a/.changeset/three-singers-roll.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -'@faustwp/experimental-app-router': minor ---- - ---- - -## '@faustwp/experimental-app-router': minor - -Update @faustwp/experimental-app-router to account for next 15 changes to cookies and update NextResponse import - -Notable changes: - -- Adding await to all cookies requests as per Next documentation: https://nextjs.org/docs/app/api-reference/functions/cookies - -``` -import { cookies } from 'next/headers' - -export default async function Page() { - const cookieStore = await cookies() - const theme = cookieStore.get('theme') - return '...' -} -``` - -- Files changed: - - - packages/experimental-app-router/src/server-actions/logoutAction.ts - - packages/experimental-app-router/src/server-actions/utils/setRefreshToken.ts - - packages/experimental-app-router/src/server/auth/fetchTokens.ts - - packages/experimental-app-router/src/server/routeHandler/tokenHandler.ts - -- Updated Next App Router example to use latest next version and React 19 RC. -- Updated Example Login form using React 19s useActionState -- Updated Awaiting of params for Next 15 -- Files Changed: - - examples/next/app-router/app/login/page.tsx - - examples/next/app-router/package.json - - examples/next/app-router/[slug]hasPreviewProps.ts (made async) - - examples/next/app-router/[slug]page.tsx diff --git a/packages/experimental-app-router/CHANGELOG.md b/packages/experimental-app-router/CHANGELOG.md index 82e847642..963d4783b 100644 --- a/packages/experimental-app-router/CHANGELOG.md +++ b/packages/experimental-app-router/CHANGELOG.md @@ -1,5 +1,45 @@ # @faustwp/experimental-app-router +## 0.6.0 + +### Minor Changes + +- 5457479: --- + + ## '@faustwp/experimental-app-router': minor + + Update @faustwp/experimental-app-router to account for next 15 changes to cookies and update NextResponse import + + Notable changes: + + - Adding await to all cookies requests as per Next documentation: https://nextjs.org/docs/app/api-reference/functions/cookies + + ``` + import { cookies } from 'next/headers' + + export default async function Page() { + const cookieStore = await cookies() + const theme = cookieStore.get('theme') + return '...' + } + ``` + + - Files changed: + + - packages/experimental-app-router/src/server-actions/logoutAction.ts + - packages/experimental-app-router/src/server-actions/utils/setRefreshToken.ts + - packages/experimental-app-router/src/server/auth/fetchTokens.ts + - packages/experimental-app-router/src/server/routeHandler/tokenHandler.ts + + - Updated Next App Router example to use latest next version and React 19 RC. + - Updated Example Login form using React 19s useActionState + - Updated Awaiting of params for Next 15 + - Files Changed: + - examples/next/app-router/app/login/page.tsx + - examples/next/app-router/package.json + - examples/next/app-router/[slug]hasPreviewProps.ts (made async) + - examples/next/app-router/[slug]page.tsx + ## 0.5.0 ### Minor Changes diff --git a/packages/experimental-app-router/package.json b/packages/experimental-app-router/package.json index ba4660cc9..dcd2b0f47 100644 --- a/packages/experimental-app-router/package.json +++ b/packages/experimental-app-router/package.json @@ -1,7 +1,7 @@ { "name": "@faustwp/experimental-app-router", "type": "module", - "version": "0.5.0", + "version": "0.6.0", "description": "Experimental: A Faust package to support Next.js' App Router", "exports": { ".": "./dist/index.js",