@lobehub/chat 1.110.6 → 1.110.7
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/locales/resources.ts +3 -0
- package/src/server/sitemap.test.ts +12 -10
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.110.7](https://github.com/lobehub/lobe-chat/compare/v1.110.6...v1.110.7)
|
6
|
+
|
7
|
+
<sup>Released on **2025-08-07**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Missing languages it-IT, pl-PL, nl-NL.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Missing languages it-IT, pl-PL, nl-NL, closes [#8710](https://github.com/lobehub/lobe-chat/issues/8710) ([b46fa8e](https://github.com/lobehub/lobe-chat/commit/b46fa8e))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.110.6](https://github.com/lobehub/lobe-chat/compare/v1.110.5...v1.110.6)
|
6
31
|
|
7
32
|
<sup>Released on **2025-08-07**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.110.
|
3
|
+
"version": "1.110.7",
|
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",
|
package/src/locales/resources.ts
CHANGED
@@ -5,6 +5,8 @@ import { getCanonicalUrl } from '@/server/utils/url';
|
|
5
5
|
|
6
6
|
import { LAST_MODIFIED, Sitemap, SitemapType } from './sitemap';
|
7
7
|
|
8
|
+
const LOCALE_COUNT = 18;
|
9
|
+
|
8
10
|
describe('Sitemap', () => {
|
9
11
|
const sitemap = new Sitemap();
|
10
12
|
|
@@ -80,7 +82,7 @@ describe('Sitemap', () => {
|
|
80
82
|
]);
|
81
83
|
|
82
84
|
const assistantsSitemap = await sitemap.getAssistants();
|
83
|
-
expect(assistantsSitemap.length).toBe(
|
85
|
+
expect(assistantsSitemap.length).toBe(LOCALE_COUNT);
|
84
86
|
expect(assistantsSitemap).toContainEqual(
|
85
87
|
expect.objectContaining({
|
86
88
|
url: getCanonicalUrl('/discover/assistant/test-assistant'),
|
@@ -108,7 +110,7 @@ describe('Sitemap', () => {
|
|
108
110
|
|
109
111
|
// Test first page (should have 100 items)
|
110
112
|
const firstPageSitemap = await sitemap.getAssistants(1);
|
111
|
-
expect(firstPageSitemap.length).toBe(100 *
|
113
|
+
expect(firstPageSitemap.length).toBe(100 * LOCALE_COUNT); // 100 items * LOCALE_COUNT locales
|
112
114
|
expect(firstPageSitemap).toContainEqual(
|
113
115
|
expect.objectContaining({
|
114
116
|
url: getCanonicalUrl('/discover/assistant/test-assistant-0'),
|
@@ -118,7 +120,7 @@ describe('Sitemap', () => {
|
|
118
120
|
|
119
121
|
// Test second page (should have 50 items)
|
120
122
|
const secondPageSitemap = await sitemap.getAssistants(2);
|
121
|
-
expect(secondPageSitemap.length).toBe(50 *
|
123
|
+
expect(secondPageSitemap.length).toBe(50 * LOCALE_COUNT); // 50 items * LOCALE_COUNT locales
|
122
124
|
expect(secondPageSitemap).toContainEqual(
|
123
125
|
expect.objectContaining({
|
124
126
|
url: getCanonicalUrl('/discover/assistant/test-assistant-100'),
|
@@ -136,7 +138,7 @@ describe('Sitemap', () => {
|
|
136
138
|
]);
|
137
139
|
|
138
140
|
const pluginsSitemap = await sitemap.getPlugins();
|
139
|
-
expect(pluginsSitemap.length).toBe(
|
141
|
+
expect(pluginsSitemap.length).toBe(LOCALE_COUNT);
|
140
142
|
expect(pluginsSitemap).toContainEqual(
|
141
143
|
expect.objectContaining({
|
142
144
|
url: getCanonicalUrl('/discover/plugin/test-plugin'),
|
@@ -164,11 +166,11 @@ describe('Sitemap', () => {
|
|
164
166
|
|
165
167
|
// Test first page (should have 100 items)
|
166
168
|
const firstPageSitemap = await sitemap.getPlugins(1);
|
167
|
-
expect(firstPageSitemap.length).toBe(100 *
|
169
|
+
expect(firstPageSitemap.length).toBe(100 * LOCALE_COUNT); // 100 items * 15 locales
|
168
170
|
|
169
171
|
// Test third page (should have 50 items)
|
170
172
|
const thirdPageSitemap = await sitemap.getPlugins(3);
|
171
|
-
expect(thirdPageSitemap.length).toBe(50 *
|
173
|
+
expect(thirdPageSitemap.length).toBe(50 * LOCALE_COUNT); // 50 items * 15 locales
|
172
174
|
});
|
173
175
|
});
|
174
176
|
|
@@ -180,7 +182,7 @@ describe('Sitemap', () => {
|
|
180
182
|
]);
|
181
183
|
|
182
184
|
const modelsSitemap = await sitemap.getModels();
|
183
|
-
expect(modelsSitemap.length).toBe(
|
185
|
+
expect(modelsSitemap.length).toBe(LOCALE_COUNT);
|
184
186
|
expect(modelsSitemap).toContainEqual(
|
185
187
|
expect.objectContaining({
|
186
188
|
url: getCanonicalUrl('/discover/model/test:model'),
|
@@ -208,11 +210,11 @@ describe('Sitemap', () => {
|
|
208
210
|
|
209
211
|
// Test first page (should have 100 items)
|
210
212
|
const firstPageSitemap = await sitemap.getModels(1);
|
211
|
-
expect(firstPageSitemap.length).toBe(100 *
|
213
|
+
expect(firstPageSitemap.length).toBe(100 * LOCALE_COUNT); // 100 items * LOCALE_COUNT locales
|
212
214
|
|
213
215
|
// Test second page (should have 20 items)
|
214
216
|
const secondPageSitemap = await sitemap.getModels(2);
|
215
|
-
expect(secondPageSitemap.length).toBe(20 *
|
217
|
+
expect(secondPageSitemap.length).toBe(20 * LOCALE_COUNT); // 20 items * LOCALE_COUNT locales
|
216
218
|
});
|
217
219
|
});
|
218
220
|
|
@@ -224,7 +226,7 @@ describe('Sitemap', () => {
|
|
224
226
|
]);
|
225
227
|
|
226
228
|
const providersSitemap = await sitemap.getProviders();
|
227
|
-
expect(providersSitemap.length).toBe(
|
229
|
+
expect(providersSitemap.length).toBe(LOCALE_COUNT);
|
228
230
|
expect(providersSitemap).toContainEqual(
|
229
231
|
expect.objectContaining({
|
230
232
|
url: getCanonicalUrl('/discover/provider/test-provider'),
|