Skip to content

Commit f9ce18f

Browse files
committed
yarn upgrade all, auth broken
1 parent 2cda823 commit f9ce18f

File tree

5 files changed

+402
-517
lines changed

5 files changed

+402
-517
lines changed

next-env.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
32
/// <reference types="next/image-types/global" />
43

54
// NOTE: This file should not be edited

package.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -15,47 +15,47 @@
1515
"test-all": "yarn lint && yarn type-check && yarn format"
1616
},
1717
"dependencies": {
18-
"@hookform/resolvers": "^2.8.3",
19-
"@next-auth/prisma-adapter": "0.5.2-next.19",
20-
"@prisma/client": "3.5.0",
18+
"@hookform/resolvers": "^2.8.4",
19+
"@next-auth/prisma-adapter": "1.0.1",
20+
"@prisma/client": "3.6.0",
2121
"axios": "^0.24.0",
2222
"bcryptjs": "^2.4.3",
2323
"express": "^4.17.1",
24-
"multer": "^1.4.3",
25-
"next": "11.1.2",
26-
"next-auth": "4.0.0-beta.6",
24+
"multer": "^1.4.4",
25+
"next": "12.0.7",
26+
"next-auth": "4.0.5",
2727
"next-connect": "^0.11.0",
2828
"next-validations": "^0.1.10",
2929
"react": "17.0.2",
3030
"react-dom": "17.0.2",
3131
"react-dropzone": "^11.4.2",
32-
"react-hook-form": "^7.20.4",
33-
"sass": "^1.44.0",
32+
"react-hook-form": "^7.21.2",
33+
"sass": "^1.45.0",
3434
"zod": "^3.11.6"
3535
},
3636
"devDependencies": {
3737
"@types/bcryptjs": "^2.4.2",
3838
"@types/express": "^4.17.13",
3939
"@types/multer": "^1.4.7",
40-
"@types/node": "16.4.2",
41-
"@types/react": "17.0.34",
40+
"@types/node": "16.11.12",
41+
"@types/react": "17.0.37",
4242
"@types/react-dom": "^17.0.8",
43-
"@typescript-eslint/eslint-plugin": "^4.14.2",
44-
"@typescript-eslint/parser": "^4.14.2",
43+
"@typescript-eslint/eslint-plugin": "^5.6.0",
44+
"@typescript-eslint/parser": "^5.6.0",
4545
"autoprefixer": "^10.4.0",
46-
"eslint": "^7.19.0",
47-
"eslint-config-prettier": "^7.2.0",
48-
"eslint-plugin-react": "^7.19.0",
46+
"eslint": "^8.4.1",
47+
"eslint-config-prettier": "^8.3.0",
48+
"eslint-plugin-react": "^7.27.1",
4949
"nodemon": "^2.0.15",
5050
"postcss": "^8.4.4",
51-
"prettier": "^2.0.2",
52-
"prisma": "3.5.0",
51+
"prettier": "^2.5.1",
52+
"prisma": "3.6.0",
5353
"stylelint": "^14.1.0",
5454
"stylelint-config-recommended-scss": "^5.0.2",
55-
"stylelint-scss": "^4.0.0",
56-
"tailwindcss": "^3.0.0",
55+
"stylelint-scss": "^4.0.1",
56+
"tailwindcss": "^3.0.1",
5757
"ts-node": "10.4.0",
58-
"typescript": "4.4.4"
58+
"typescript": "4.5.3"
5959
},
6060
"prisma": {
6161
"seed": "ts-node prisma/seed.ts"

pages/api/auth/[...nextauth].ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ handler.use(
4646
}),
4747
],
4848
session: {
49-
jwt: true, // doesnt work without this...
49+
// jwt: true, // doesnt work without this...
5050
maxAge: 60 * 60, // 1h
5151
},
5252
callbacks: {

tsconfig.json

+18-6
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22
"compilerOptions": {
33
"baseUrl": ".", // this handles the root
44
"paths": {
5-
"@lib-server/*": ["lib-server/*"] // just placeholder for now
5+
"@lib-server/*": [
6+
"lib-server/*"
7+
] // just placeholder for now
68
},
7-
89
"target": "es5",
9-
"lib": ["dom", "dom.iterable", "esnext"],
10+
"lib": [
11+
"dom",
12+
"dom.iterable",
13+
"esnext"
14+
],
1015
"allowJs": true,
1116
"skipLibCheck": true,
1217
"strict": false,
@@ -17,10 +22,17 @@
1722
"moduleResolution": "node",
1823
"resolveJsonModule": true,
1924
"isolatedModules": true,
20-
"jsx": "preserve"
25+
"jsx": "preserve",
26+
"incremental": true
2127
},
22-
"exclude": ["node_modules"],
23-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
28+
"exclude": [
29+
"node_modules"
30+
],
31+
"include": [
32+
"next-env.d.ts",
33+
"**/*.ts",
34+
"**/*.tsx"
35+
],
2436
"ts-node": {
2537
"compilerOptions": {
2638
"module": "commonjs"

0 commit comments

Comments
 (0)