fix: update react
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
import { unstable_cache } from 'next/cache';
|
|
||||||
import { cookies } from 'next/headers';
|
|
||||||
import { validateSessionToken } from './src/session';
|
|
||||||
|
|
||||||
export const auth = async () => {
|
|
||||||
const token = (await cookies().get('session')?.value) ?? null;
|
|
||||||
return cachedAuth(token);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const cachedAuth = unstable_cache(validateSessionToken);
|
|
||||||
@@ -22,7 +22,6 @@
|
|||||||
"typescript": "catalog:"
|
"typescript": "catalog:"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"next": "14.2.1",
|
|
||||||
"react": "catalog:"
|
"react": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
2633
pnpm-lock.yaml
generated
2633
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -7,10 +7,10 @@ packages:
|
|||||||
# Define a catalog of version ranges.
|
# Define a catalog of version ranges.
|
||||||
catalog:
|
catalog:
|
||||||
zod: ^3.24.2
|
zod: ^3.24.2
|
||||||
react: ^19.0.0
|
react: ^19.2.3
|
||||||
"@types/react": ^19.0.0
|
"@types/react": ^19.2.3
|
||||||
"react-dom": ^19.0.0
|
"react-dom": ^19.2.3
|
||||||
"@types/react-dom": ^19.0.0
|
"@types/react-dom": ^19.2.3
|
||||||
"@types/node": ^24.7.1
|
"@types/node": ^24.7.1
|
||||||
typescript: ^5.9.3
|
typescript: ^5.9.3
|
||||||
groupmq: 1.1.1-next.2
|
groupmq: 1.1.1-next.2
|
||||||
|
|||||||
Reference in New Issue
Block a user