@lobehub/lobehub 2.0.0-next.315 → 2.0.0-next.316
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/src/libs/trpc/client/lambda.ts +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 2.0.0-next.316](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.315...v2.0.0-next.316)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2026-01-19**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: When use trpc client should include the credentials cookies.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: When use trpc client should include the credentials cookies, closes [#11629](https://github.com/lobehub/lobe-chat/issues/11629) ([8ece553](https://github.com/lobehub/lobe-chat/commit/8ece553))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 2.0.0-next.315](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.314...v2.0.0-next.315)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2026-01-19**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lobehub",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.316",
|
|
4
4
|
"description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -77,15 +77,22 @@ const errorHandlingLink: TRPCLink<LambdaRouter> = () => {
|
|
|
77
77
|
const linkOptions = {
|
|
78
78
|
// eslint-disable-next-line no-undef
|
|
79
79
|
fetch: async (input: RequestInfo | URL, init?: RequestInit) => {
|
|
80
|
+
// Ensure credentials are included to send cookies (like mp_token)
|
|
81
|
+
// eslint-disable-next-line no-undef
|
|
82
|
+
const fetchOptions: RequestInit = {
|
|
83
|
+
...init,
|
|
84
|
+
credentials: 'include',
|
|
85
|
+
};
|
|
86
|
+
|
|
80
87
|
if (isDesktop) {
|
|
81
88
|
// eslint-disable-next-line no-undef
|
|
82
|
-
const res = await fetch(input as string,
|
|
89
|
+
const res = await fetch(input as string, fetchOptions);
|
|
83
90
|
|
|
84
91
|
if (res) return res;
|
|
85
92
|
}
|
|
86
93
|
|
|
87
94
|
// eslint-disable-next-line no-undef
|
|
88
|
-
return await fetch(input,
|
|
95
|
+
return await fetch(input, fetchOptions);
|
|
89
96
|
},
|
|
90
97
|
headers: async () => {
|
|
91
98
|
// dynamic import to avoid circular dependency
|