@lobehub/chat 0.100.1 โ†’ 0.100.2

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 0.100.2](https://github.com/lobehub/lobe-chat/compare/v0.100.1...v0.100.2)
6
+
7
+ <sup>Released on **2023-11-09**</sup>
8
+
9
+ #### ๐Ÿ› Bug Fixes
10
+
11
+ - **misc**: Upgrade viewport for nextjs 14.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Upgrade viewport for nextjs 14, closes [#436](https://github.com/lobehub/lobe-chat/issues/436) ([57d3d07](https://github.com/lobehub/lobe-chat/commit/57d3d07))
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 0.100.1](https://github.com/lobehub/lobe-chat/compare/v0.100.0...v0.100.1)
6
31
 
7
32
  <sup>Released on **2023-11-09**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.100.1",
3
+ "version": "0.100.2",
4
4
  "description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -1,3 +1,4 @@
1
+ import { Viewport } from 'next';
1
2
  import { cookies } from 'next/headers';
2
3
  import { PropsWithChildren } from 'react';
3
4
 
@@ -42,3 +43,16 @@ const RootLayout = ({ children }: PropsWithChildren) => {
42
43
  export default RootLayout;
43
44
 
44
45
  export { default as metadata } from './metadata';
46
+
47
+ export const viewport: Viewport = {
48
+ initialScale: 1,
49
+ maximumScale: 1,
50
+ minimumScale: 1,
51
+ themeColor: [
52
+ { color: '#f8f8f8', media: '(prefers-color-scheme: light)' },
53
+ { color: '#000', media: '(prefers-color-scheme: dark)' },
54
+ ],
55
+ userScalable: false,
56
+ viewportFit: 'cover',
57
+ width: 'device-width',
58
+ };
@@ -40,10 +40,7 @@ const metadata: Metadata = {
40
40
  type: 'website',
41
41
  url: homepage,
42
42
  },
43
- themeColor: [
44
- { color: '#f8f8f8', media: '(prefers-color-scheme: light)' },
45
- { color: '#000', media: '(prefers-color-scheme: dark)' },
46
- ],
43
+
47
44
  title: {
48
45
  default: title,
49
46
  template: '%s ยท LobeChat',
@@ -57,14 +54,6 @@ const metadata: Metadata = {
57
54
  ],
58
55
  title,
59
56
  },
60
- viewport: {
61
- initialScale: 1,
62
- maximumScale: 1,
63
- minimumScale: 1,
64
- userScalable: false,
65
- viewportFit: 'cover',
66
- width: 'device-width',
67
- },
68
57
  };
69
58
 
70
59
  export default metadata;