@lobehub/chat 1.37.0 → 1.37.1

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,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.37.1](https://github.com/lobehub/lobe-chat/compare/v1.37.0...v1.37.1)
6
+
7
+ <sup>Released on **2024-12-22**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Refactor the client service to deprecated.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Code refactoring
19
+
20
+ - **misc**: Refactor the client service to deprecated, closes [#5132](https://github.com/lobehub/lobe-chat/issues/5132) ([e603234](https://github.com/lobehub/lobe-chat/commit/e603234))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ## [Version 1.37.0](https://github.com/lobehub/lobe-chat/compare/v1.36.46...v1.37.0)
6
31
 
7
32
  <sup>Released on **2024-12-22**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Refactor the client service to deprecated."
6
+ ]
7
+ },
8
+ "date": "2024-12-22",
9
+ "version": "1.37.1"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "features": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.37.0",
3
+ "version": "1.37.1",
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",
@@ -7,7 +7,7 @@ import { clientS3Storage } from '@/services/file/ClientS3';
7
7
  import { serverConfigSelectors } from '@/store/serverConfig/selectors';
8
8
  import { createServerConfigStore } from '@/store/serverConfig/store';
9
9
 
10
- import { ClientService } from './client';
10
+ import { ClientService } from './_deprecated';
11
11
 
12
12
  const fileService = new ClientService();
13
13
 
@@ -1,4 +1,4 @@
1
- import { ClientService as DeprecatedService } from './client';
1
+ import { ClientService as DeprecatedService } from './_deprecated';
2
2
  import { ClientService } from './pglite';
3
3
  import { ServerService } from './server';
4
4
 
@@ -1,4 +1,4 @@
1
- import { ClientService as DeprecatedService } from './client';
1
+ import { ClientService as DeprecatedService } from './_deprecated';
2
2
  import { ClientService } from './pglite';
3
3
  import { ServerService } from './server';
4
4
 
@@ -10,7 +10,7 @@ import {
10
10
  ChatTranslate,
11
11
  } from '@/types/message';
12
12
 
13
- import { ClientService } from './client';
13
+ import { ClientService } from './_deprecated';
14
14
 
15
15
  const messageService = new ClientService();
16
16
 
@@ -1,4 +1,4 @@
1
- import { ClientService as DeprecatedService } from './client';
1
+ import { ClientService as DeprecatedService } from './_deprecated';
2
2
  import { ClientService } from './pglite';
3
3
  import { ServerService } from './server';
4
4
 
@@ -6,7 +6,7 @@ import { DB_Plugin } from '@/database/_deprecated/schemas/plugin';
6
6
  import { LobeTool } from '@/types/tool';
7
7
  import { LobeToolCustomPlugin } from '@/types/tool/plugin';
8
8
 
9
- import { ClientService } from './client';
9
+ import { ClientService } from './_deprecated';
10
10
  import { InstallPluginParams } from './type';
11
11
 
12
12
  const pluginService = new ClientService();
@@ -1,4 +1,4 @@
1
- import { ClientService as DeprecatedService } from './client';
1
+ import { ClientService as DeprecatedService } from './_deprecated';
2
2
  import { ClientService } from './pglite';
3
3
  import { ServerService } from './server';
4
4
 
@@ -5,7 +5,7 @@ import { SessionGroupModel } from '@/database/_deprecated/models/sessionGroup';
5
5
  import { LobeAgentConfig } from '@/types/agent';
6
6
  import { LobeAgentSession, LobeSessionType, SessionGroups } from '@/types/session';
7
7
 
8
- import { ClientService } from './client';
8
+ import { ClientService } from './_deprecated';
9
9
 
10
10
  const sessionService = new ClientService();
11
11
 
@@ -1,4 +1,4 @@
1
- import { ClientService as DeprecatedService } from './client';
1
+ import { ClientService as DeprecatedService } from './_deprecated';
2
2
  import { ClientService } from './pglite';
3
3
  import { ServerService } from './server';
4
4
 
@@ -4,7 +4,7 @@ import { SessionModel } from '@/database/_deprecated/models/session';
4
4
  import { CreateTopicParams, TopicModel } from '@/database/_deprecated/models/topic';
5
5
  import { ChatTopic } from '@/types/topic';
6
6
 
7
- import { ClientService } from './client';
7
+ import { ClientService } from './_deprecated';
8
8
 
9
9
  const topicService = new ClientService();
10
10
  // Mock the TopicModel
@@ -1,4 +1,4 @@
1
- import { ClientService as DeprecatedService } from './client';
1
+ import { ClientService as DeprecatedService } from './_deprecated';
2
2
  import { ClientService } from './pglite';
3
3
  import { ServerService } from './server';
4
4
 
@@ -5,7 +5,7 @@ import { UserModel } from '@/database/_deprecated/models/user';
5
5
  import { UserPreference } from '@/types/user';
6
6
  import { UserSettings } from '@/types/user/settings';
7
7
 
8
- import { ClientService } from './client';
8
+ import { ClientService } from './_deprecated';
9
9
 
10
10
  vi.mock('@/database/_deprecated/models/user', () => ({
11
11
  UserModel: {
@@ -1,4 +1,4 @@
1
- import { ClientService as DeprecatedService } from './client';
1
+ import { ClientService as DeprecatedService } from './_deprecated';
2
2
  import { ClientService } from './pglite';
3
3
  import { ServerService } from './server';
4
4
 
@@ -2,7 +2,7 @@ import { act, renderHook } from '@testing-library/react';
2
2
  import { describe, expect, it, vi } from 'vitest';
3
3
 
4
4
  import { fileService } from '@/services/file';
5
- import { ClientService } from '@/services/file/client';
5
+ import { ClientService } from '@/services/file/_deprecated';
6
6
  import { messageService } from '@/services/message';
7
7
  import { imageGenerationService } from '@/services/textToImage';
8
8
  import { uploadService } from '@/services/upload';
@@ -5,7 +5,7 @@ import { withSWR } from '~test-utils';
5
5
 
6
6
  import { DEFAULT_PREFERENCE } from '@/const/user';
7
7
  import { userService } from '@/services/user';
8
- import { ClientService } from '@/services/user/client';
8
+ import { ClientService } from '@/services/user/_deprecated';
9
9
  import { useUserStore } from '@/store/user';
10
10
  import { preferenceSelectors } from '@/store/user/selectors';
11
11
  import { GlobalServerConfig } from '@/types/serverConfig';
File without changes
File without changes