Skip to content

Commit

Permalink
fix: Adds support for Next.js 15 and React 19
Browse files Browse the repository at this point in the history
  • Loading branch information
JorWo committed Nov 12, 2024
1 parent ba76a56 commit 98149e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-cas-client",
"version": "1.2.2",
"version": "1.3.0",
"description": "A CAS client built for Next.js to authenticate, validate tickets, and provide session management to a CAS server",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -67,9 +67,8 @@
"typescript-eslint": "^8.11.0"
},
"peerDependencies": {
"next": "^13.5.4 || ^14.0.3 || >=15.0.0-rc",
"react": ">=18 || >=19.0.0-beta",
"react-dom": ">=18 || >=19.0.0-beta"
"next": "^13 || ^14 || ^15",
"react": "^18 || ^19"
},
"engines": {
"node": ">=18.17.0"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/app/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { SessionData, SessionOptions } from '../session';
import { cookies } from 'next/headers';

export const getSession = async (): Promise<IronSession<SessionData>> => {
return await getIronSession<SessionData>(cookies(), SessionOptions);
return await getIronSession<SessionData>(await cookies(), SessionOptions);
};

0 comments on commit 98149e1

Please sign in to comment.