@lobehub/chat 1.45.7 → 1.45.8

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.45.8](https://github.com/lobehub/lobe-chat/compare/v1.45.7...v1.45.8)
6
+
7
+ <sup>Released on **2025-01-14**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Refactor dynamic import in RSC.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Refactor dynamic import in RSC, closes [#5434](https://github.com/lobehub/lobe-chat/issues/5434) ([6a663a7](https://github.com/lobehub/lobe-chat/commit/6a663a7))
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.45.7](https://github.com/lobehub/lobe-chat/compare/v1.45.6...v1.45.7)
6
31
 
7
32
  <sup>Released on **2025-01-13**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Refactor dynamic import in RSC."
6
+ ]
7
+ },
8
+ "date": "2025-01-14",
9
+ "version": "1.45.8"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "fixes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.45.7",
3
+ "version": "1.45.8",
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",
@@ -315,7 +315,7 @@
315
315
  "vitest": "~1.2.2",
316
316
  "vitest-canvas-mock": "^0.3.3"
317
317
  },
318
- "packageManager": "pnpm@9.15.2",
318
+ "packageManager": "pnpm@9.15.3",
319
319
  "publishConfig": {
320
320
  "access": "public",
321
321
  "registry": "https://registry.npmjs.org"
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';
@@ -1,4 +1,3 @@
1
- import dynamic from 'next/dynamic';
2
1
  import { redirect } from 'next/navigation';
3
2
  import urlJoin from 'url-join';
4
3
 
@@ -10,20 +9,10 @@ import { translation } from '@/server/translation';
10
9
  import { PageProps } from '@/types/next';
11
10
  import { isMobileDevice } from '@/utils/server/responsive';
12
11
 
13
- import { ListLoadingWithoutBanner } from '../components/ListLoading';
14
-
15
- const AssistantsResult = dynamic(() => import('./features/AssistantsResult'), {
16
- loading: () => <ListLoadingWithoutBanner />,
17
- });
18
- const PluginsResult = dynamic(() => import('./features/PluginsResult'), {
19
- loading: () => <ListLoadingWithoutBanner />,
20
- });
21
- const ModelsResult = dynamic(() => import('./features/ModelsResult'), {
22
- loading: () => <ListLoadingWithoutBanner />,
23
- });
24
- const ProvidersResult = dynamic(() => import('./features/ProvidersResult'), {
25
- loading: () => <ListLoadingWithoutBanner />,
26
- });
12
+ import AssistantsResult from './features/AssistantsResult';
13
+ import ModelsResult from './features/ModelsResult';
14
+ import PluginsResult from './features/PluginsResult';
15
+ import ProvidersResult from './features/ProvidersResult';
27
16
 
28
17
  type Props = PageProps<
29
18
  undefined,
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';
@@ -1,5 +1,3 @@
1
- import { Skeleton } from 'antd';
2
- import dynamic from 'next/dynamic';
3
1
  import { notFound } from 'next/navigation';
4
2
 
5
3
  import { enableClerk } from '@/const/auth';
@@ -7,13 +5,7 @@ import { metadataModule } from '@/server/metadata';
7
5
  import { translation } from '@/server/translation';
8
6
  import { isMobileDevice } from '@/utils/server/responsive';
9
7
 
10
- const ClerkProfile = dynamic(() => import('../features/ClerkProfile'), {
11
- loading: () => (
12
- <div style={{ flex: 1 }}>
13
- <Skeleton paragraph={{ rows: 8 }} title={false} />
14
- </div>
15
- ),
16
- });
8
+ import ClerkProfile from '../features/ClerkProfile';
17
9
 
18
10
  export const generateMetadata = async () => {
19
11
  const { t } = await translation('auth');
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';
@@ -1,3 +1 @@
1
- import dynamic from 'next/dynamic';
2
-
3
- export default dynamic(() => import('@/components/404'));
1
+ export { default } from '@/components/404';