@lobehub/chat 0.161.19 → 0.161.21
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
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.161.21](https://github.com/lobehub/lobe-chat/compare/v0.161.20...v0.161.21)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-05-26**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix the batch import error.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix the batch import error, closes [#2671](https://github.com/lobehub/lobe-chat/issues/2671) ([db8f2c6](https://github.com/lobehub/lobe-chat/commit/db8f2c6))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.161.20](https://github.com/lobehub/lobe-chat/compare/v0.161.19...v0.161.20)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2024-05-26**</sup>
|
|
33
|
+
|
|
34
|
+
#### 🐛 Bug Fixes
|
|
35
|
+
|
|
36
|
+
- **misc**: Fix vercel build.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### What's fixed
|
|
44
|
+
|
|
45
|
+
- **misc**: Fix vercel build, closes [#2666](https://github.com/lobehub/lobe-chat/issues/2666) ([cb70e4a](https://github.com/lobehub/lobe-chat/commit/cb70e4a))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
### [Version 0.161.19](https://github.com/lobehub/lobe-chat/compare/v0.161.18...v0.161.19)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2024-05-25**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.161.
|
|
3
|
+
"version": "0.161.21",
|
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot 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",
|
|
@@ -84,22 +84,22 @@
|
|
|
84
84
|
"@ant-design/icons": "^5.3.7",
|
|
85
85
|
"@anthropic-ai/sdk": "^0.20.9",
|
|
86
86
|
"@auth/core": "0.28.0",
|
|
87
|
-
"@aws-sdk/client-bedrock-runtime": "^3.
|
|
88
|
-
"@aws-sdk/client-s3": "^3.
|
|
89
|
-
"@aws-sdk/s3-request-presigner": "^3.
|
|
87
|
+
"@aws-sdk/client-bedrock-runtime": "^3.583.0",
|
|
88
|
+
"@aws-sdk/client-s3": "^3.583.0",
|
|
89
|
+
"@aws-sdk/s3-request-presigner": "^3.583.0",
|
|
90
90
|
"@azure/openai": "1.0.0-beta.12",
|
|
91
91
|
"@cfworker/json-schema": "^1.12.8",
|
|
92
92
|
"@clerk/localizations": "2.0.0",
|
|
93
|
-
"@clerk/nextjs": "^5.
|
|
94
|
-
"@clerk/themes": "^2.1.
|
|
95
|
-
"@google/generative-ai": "^0.11.
|
|
93
|
+
"@clerk/nextjs": "^5.1.2",
|
|
94
|
+
"@clerk/themes": "^2.1.7",
|
|
95
|
+
"@google/generative-ai": "^0.11.4",
|
|
96
96
|
"@icons-pack/react-simple-icons": "^9.5.0",
|
|
97
97
|
"@khmyznikov/pwa-install": "^0.3.9",
|
|
98
98
|
"@lobehub/chat-plugin-sdk": "^1.32.3",
|
|
99
99
|
"@lobehub/chat-plugins-gateway": "^1.9.0",
|
|
100
|
-
"@lobehub/icons": "^1.22.
|
|
100
|
+
"@lobehub/icons": "^1.22.1",
|
|
101
101
|
"@lobehub/tts": "^1.24.1",
|
|
102
|
-
"@lobehub/ui": "^1.
|
|
102
|
+
"@lobehub/ui": "^1.141.2",
|
|
103
103
|
"@microsoft/fetch-event-source": "^2.0.1",
|
|
104
104
|
"@next/third-parties": "^14.2.3",
|
|
105
105
|
"@sentry/nextjs": "^7.116.0",
|
|
@@ -107,9 +107,9 @@
|
|
|
107
107
|
"@trpc/client": "next",
|
|
108
108
|
"@trpc/next": "next",
|
|
109
109
|
"@trpc/server": "next",
|
|
110
|
-
"@vercel/analytics": "^1.
|
|
111
|
-
"@vercel/speed-insights": "^1.0.
|
|
112
|
-
"ahooks": "^3.
|
|
110
|
+
"@vercel/analytics": "^1.3.1",
|
|
111
|
+
"@vercel/speed-insights": "^1.0.11",
|
|
112
|
+
"ahooks": "^3.8.0",
|
|
113
113
|
"ai": "3.0.19",
|
|
114
114
|
"antd": "^5.17.3",
|
|
115
115
|
"antd-style": "^3.6.2",
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
"immer": "^10.1.1",
|
|
129
129
|
"ip": "^2.0.1",
|
|
130
130
|
"jose": "^5.3.0",
|
|
131
|
-
"langfuse": "^3.11.
|
|
132
|
-
"langfuse-core": "^3.11.
|
|
131
|
+
"langfuse": "^3.11.1",
|
|
132
|
+
"langfuse-core": "^3.11.1",
|
|
133
133
|
"lodash-es": "^4.17.21",
|
|
134
134
|
"lucide-react": "latest",
|
|
135
135
|
"modern-screenshot": "^4.4.39",
|
|
@@ -143,18 +143,18 @@
|
|
|
143
143
|
"openai": "^4.47.1",
|
|
144
144
|
"pino": "^9.1.0",
|
|
145
145
|
"polished": "^4.3.1",
|
|
146
|
-
"posthog-js": "^1.
|
|
146
|
+
"posthog-js": "^1.135.2",
|
|
147
147
|
"pwa-install-handler": "^2.6.0",
|
|
148
148
|
"query-string": "^9.0.0",
|
|
149
149
|
"random-words": "^2.0.1",
|
|
150
150
|
"react": "^18.3.1",
|
|
151
151
|
"react-dom": "^18.3.1",
|
|
152
152
|
"react-hotkeys-hook": "^4.5.0",
|
|
153
|
-
"react-i18next": "^14.1.
|
|
153
|
+
"react-i18next": "^14.1.2",
|
|
154
154
|
"react-layout-kit": "^1.9.0",
|
|
155
155
|
"react-lazy-load": "^4.0.1",
|
|
156
|
-
"react-virtuoso": "^4.7.
|
|
157
|
-
"react-wrap-balancer": "^1.1.
|
|
156
|
+
"react-virtuoso": "^4.7.11",
|
|
157
|
+
"react-wrap-balancer": "^1.1.1",
|
|
158
158
|
"remark": "^14.0.3",
|
|
159
159
|
"remark-gfm": "^3.0.1",
|
|
160
160
|
"remark-html": "^15.0.2",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"@types/lodash-es": "^4.17.12",
|
|
201
201
|
"@types/node": "^20.12.12",
|
|
202
202
|
"@types/numeral": "^2.0.5",
|
|
203
|
-
"@types/react": "^18.3.
|
|
203
|
+
"@types/react": "^18.3.3",
|
|
204
204
|
"@types/react-dom": "^18.3.0",
|
|
205
205
|
"@types/rtl-detect": "^1.0.3",
|
|
206
206
|
"@types/semver": "^7.5.8",
|
|
@@ -215,13 +215,13 @@
|
|
|
215
215
|
"dpdm": "^3.14.0",
|
|
216
216
|
"eslint": "^8.57.0",
|
|
217
217
|
"eslint-plugin-mdx": "^2.3.4",
|
|
218
|
-
"fake-indexeddb": "^
|
|
219
|
-
"glob": "^10.
|
|
218
|
+
"fake-indexeddb": "^6.0.0",
|
|
219
|
+
"glob": "^10.4.1",
|
|
220
220
|
"gray-matter": "^4.0.3",
|
|
221
221
|
"happy-dom": "^14.11.0",
|
|
222
222
|
"husky": "^9.0.11",
|
|
223
223
|
"just-diff": "^6.0.2",
|
|
224
|
-
"lint-staged": "^15.2.
|
|
224
|
+
"lint-staged": "^15.2.5",
|
|
225
225
|
"lodash": "^4.17.21",
|
|
226
226
|
"markdown-table": "^3.0.3",
|
|
227
227
|
"node-fetch": "^3.3.2",
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"remark-parse": "^10.0.2",
|
|
233
233
|
"semantic-release": "^21.1.2",
|
|
234
234
|
"stylelint": "^15.11.0",
|
|
235
|
-
"tsx": "^4.
|
|
235
|
+
"tsx": "^4.11.0",
|
|
236
236
|
"typescript": "^5.4.5",
|
|
237
237
|
"unified": "^11.0.4",
|
|
238
238
|
"unist-util-visit": "^5.0.0",
|
|
@@ -40,6 +40,8 @@ const SessionPanel = memo<PropsWithChildren>(({ children }) => {
|
|
|
40
40
|
const handleSizeChange: DraggablePanelProps['onSizeChange'] = (_, size) => {
|
|
41
41
|
if (!size) return;
|
|
42
42
|
const nextWidth = typeof size.width === 'string' ? Number.parseInt(size.width) : size.width;
|
|
43
|
+
if (!nextWidth) return;
|
|
44
|
+
|
|
43
45
|
if (isEqual(nextWidth, sessionsWidth)) return;
|
|
44
46
|
setWidth(nextWidth);
|
|
45
47
|
updatePreference({ sessionsWidth: nextWidth });
|
|
@@ -110,11 +110,18 @@ export class BaseModel<N extends keyof BrowserDBSchema = any, T = BrowserDBSchem
|
|
|
110
110
|
continue;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
const getTime = (time?: string | number) => {
|
|
114
|
+
if (!time) return Date.now();
|
|
115
|
+
if (typeof time === 'number') return time;
|
|
116
|
+
|
|
117
|
+
return new Date(time).valueOf();
|
|
118
|
+
};
|
|
119
|
+
|
|
113
120
|
validatedData.push({
|
|
114
121
|
...item,
|
|
115
|
-
createdAt: item.createdAt
|
|
122
|
+
createdAt: getTime(item.createdAt as string),
|
|
116
123
|
id,
|
|
117
|
-
updatedAt: item.updatedAt
|
|
124
|
+
updatedAt: getTime(item.updatedAt as string),
|
|
118
125
|
});
|
|
119
126
|
} else {
|
|
120
127
|
errors.push(result.error);
|
|
@@ -7,9 +7,9 @@ export type DBModel<T> = T & {
|
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export const DBBaseFieldsSchema = z.object({
|
|
10
|
-
createdAt: z.number(),
|
|
10
|
+
createdAt: z.number().or(z.string()),
|
|
11
11
|
id: z.string(),
|
|
12
|
-
updatedAt: z.number(),
|
|
12
|
+
updatedAt: z.number().or(z.string()),
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
export const LOBE_CHAT_LOCAL_DB_NAME = 'LOBE_CHAT_DB';
|