Skip to content

Commit 715fcc0

Browse files
committed
fix: next-auth
Signed-off-by: Innei <[email protected]>
1 parent 857fc79 commit 715fcc0

File tree

3 files changed

+1264
-1012
lines changed

3 files changed

+1264
-1012
lines changed

package.json

+27-24
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@
3939
"@milkdown/transformer": "7.5.0",
4040
"@milkdown/utils": "7.5.0",
4141
"@mx-space/api-client": "1.16.1",
42-
"@openpanel/nextjs": "1.0.3",
42+
"@openpanel/nextjs": "1.0.5",
4343
"@prosemirror-adapter/react": "0.2.6",
44-
"@radix-ui/react-avatar": "1.1.0",
45-
"@radix-ui/react-dialog": "1.1.1",
46-
"@radix-ui/react-dropdown-menu": "2.1.1",
44+
"@radix-ui/react-avatar": "1.1.1",
45+
"@radix-ui/react-dialog": "1.1.2",
46+
"@radix-ui/react-dropdown-menu": "2.1.2",
4747
"@radix-ui/react-label": "2.1.0",
48-
"@radix-ui/react-scroll-area": "1.1.0",
49-
"@radix-ui/react-select": "2.1.1",
50-
"@radix-ui/react-switch": "1.1.0",
51-
"@radix-ui/react-tabs": "1.1.0",
48+
"@radix-ui/react-scroll-area": "1.2.0",
49+
"@radix-ui/react-select": "2.1.2",
50+
"@radix-ui/react-switch": "1.1.1",
51+
"@radix-ui/react-tabs": "1.1.1",
5252
"@shikijs/transformers": "1.20.0",
5353
"@shiro/fetch": "link:./packages/fetch",
54-
"@tanstack/query-async-storage-persister": "5.56.2",
55-
"@tanstack/react-query": "5.56.2",
56-
"@tanstack/react-query-devtools": "5.58.0",
57-
"@tanstack/react-query-persist-client": "5.56.2",
58-
"@upstash/redis": "1.34.1",
54+
"@tanstack/query-async-storage-persister": "5.59.0",
55+
"@tanstack/react-query": "5.59.0",
56+
"@tanstack/react-query-devtools": "5.59.0",
57+
"@tanstack/react-query-persist-client": "5.59.0",
58+
"@upstash/redis": "1.34.2",
5959
"@vercel/analytics": "1.3.1",
6060
"@vercel/postgres": "0.10.0",
6161
"bypass-vue-devtools": "0.0.6",
@@ -68,7 +68,7 @@
6868
"emoji-mart": "5.6.0",
6969
"emoji-picker-react": "4.12.0",
7070
"foxact": "0.2.38",
71-
"framer-motion": "11.5.4",
71+
"framer-motion": "11.11.1",
7272
"fuse.js": "7.0.0",
7373
"idb-keyval": "6.2.1",
7474
"immer": "^10.1.1",
@@ -83,14 +83,14 @@
8383
"markdown-to-jsx": "npm:@innei/[email protected]",
8484
"marked": "14.1.2",
8585
"medium-zoom": "1.1.0",
86-
"mermaid": "11.2.1",
86+
"mermaid": "11.3.0",
8787
"nanoid": "^5.0.7",
88-
"next": "14.2.13",
88+
"next": "14.2.14",
8989
"next-auth": "4.24.8",
9090
"next-runtime-env": "3.2.2",
9191
"next-themes": "0.3.0",
9292
"ofetch": "1.4.0",
93-
"openai": "4.65.0",
93+
"openai": "4.67.1",
9494
"pngjs": "7.0.0",
9595
"prop-types": "15.8.1",
9696
"qrcode.react": "3.2.0",
@@ -106,7 +106,7 @@
106106
"rss": "1.2.2",
107107
"server-only": "^0.0.1",
108108
"socket.io-client": "4.8.0",
109-
"tailwind-merge": "2.5.2",
109+
"tailwind-merge": "2.5.3",
110110
"unidata.js": "0.8.0",
111111
"unified": "^11.0.5",
112112
"uniqolor": "1.1.1",
@@ -117,11 +117,11 @@
117117
},
118118
"devDependencies": {
119119
"@egoist/tailwindcss-icons": "1.8.1",
120-
"@iconify-json/material-symbols": "1.2.1",
120+
"@iconify-json/material-symbols": "1.2.2",
121121
"@iconify-json/mingcute": "1.2.0",
122122
"@innei/prettier": "0.15.0",
123123
"@mx-space/webhook": "0.5.0",
124-
"@next/bundle-analyzer": "14.2.13",
124+
"@next/bundle-analyzer": "14.2.14",
125125
"@tailwindcss/container-queries": "0.1.1",
126126
"@tailwindcss/typography": "0.5.15",
127127
"@types/chroma-js": "2.4.4",
@@ -131,7 +131,7 @@
131131
"@types/markdown-escape": "1.1.3",
132132
"@types/node": "22.7.4",
133133
"@types/pngjs": "6.0.5",
134-
"@types/react": "18.3.10",
134+
"@types/react": "18.3.11",
135135
"@types/react-dom": "18.3.0",
136136
"@types/react-responsive-masonry": "2.1.3",
137137
"@types/remove-markdown": "0.3.4",
@@ -141,14 +141,14 @@
141141
"code-inspector-plugin": "0.16.1",
142142
"cross-env": "7.0.3",
143143
"dotenv": "16.4.5",
144-
"eslint": "9.11.1",
145-
"eslint-config-hyoban": "3.1.8",
144+
"eslint": "9.12.0",
145+
"eslint-config-hyoban": "3.1.9",
146146
"lint-staged": "15.2.10",
147147
"postcss": "8.4.47",
148148
"postcss-import": "16.1.0",
149149
"postcss-js": "4.0.1",
150150
"postcss-nested": "6.2.0",
151-
"postcss-preset-env": "10.0.5",
151+
"postcss-preset-env": "10.0.6",
152152
"postcss-prune-var": "1.1.2",
153153
"prettier": "3.3.3",
154154
"rimraf": "6.0.1",
@@ -177,6 +177,9 @@
177177
"object.hasown": "npm:@nolyfill/object.hasown@latest",
178178
"object.values": "npm:@nolyfill/object.values@latest",
179179
"string.prototype.matchall": "npm:@nolyfill/string.prototype.matchall@latest"
180+
},
181+
"patchedDependencies": {
182+
"next-auth": "patches/next-auth.patch"
180183
}
181184
},
182185
"simple-git-hooks": {

patches/next-auth.patch

+18-23
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
diff --git a/client/_utils.js b/client/_utils.js
2-
index de4e3c4eedfaffa561ff7ea80f109cbf3bb807e5..ea42a4893fbb67159663d21bd606f44eece0ebe1 100644
2+
index 25bd573915c9bd9251ed6ce241889e0d6f13ba55..13a0976921eee51ecaab15ec062ba3ce6e8b47ce 100644
33
--- a/client/_utils.js
44
+++ b/client/_utils.js
5-
@@ -57,6 +57,8 @@ function _fetchData() {
6-
options.method = "POST";
7-
}
8-
9-
+ options.credentials = "include";
10-
+
11-
_context.next = 7;
12-
return fetch(url, options);
13-
14-
diff --git a/src/client/_utils.ts b/src/client/_utils.ts
15-
index 1f3819e0db80661af241d9110aabe3e2f2520a1b..edf96089152f317a5eeb982acac3a3586f0ac3a9 100644
16-
--- a/src/client/_utils.ts
17-
+++ b/src/client/_utils.ts
18-
@@ -54,7 +54,7 @@ export async function fetchData<T = any>(
19-
if (!res.ok) throw data
20-
return Object.keys(data).length > 0 ? data : null // Return null if data empty
21-
} catch (error) {
22-
- logger.error("CLIENT_FETCH_ERROR", { error: error as Error, url })
23-
+ console.error("CLIENT_FETCH_ERROR", { error: error as Error, url })
24-
return null
25-
}
26-
}
5+
@@ -46,6 +46,7 @@ function _fetchData() {
6+
options.method = "POST";
7+
}
8+
_context.next = 7;
9+
+ options.credentials = "include";
10+
return fetch(url, options);
11+
case 7:
12+
res = _context.sent;
13+
@@ -63,7 +64,7 @@ function _fetchData() {
14+
case 16:
15+
_context.prev = 16;
16+
_context.t0 = _context["catch"](2);
17+
- logger.error("CLIENT_FETCH_ERROR", {
18+
+ console.error("CLIENT_FETCH_ERROR", {
19+
error: _context.t0,
20+
url: url
21+
});

0 commit comments

Comments
 (0)