Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 3, 2024
1 parent 5457479 commit 9d4d7a8
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 40 deletions.
39 changes: 0 additions & 39 deletions .changeset/three-singers-roll.md

This file was deleted.

40 changes: 40 additions & 0 deletions packages/experimental-app-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/experimental-app-router/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9d4d7a8

Please sign in to comment.