@lobehub/lobehub 2.0.0-next.155 → 2.0.0-next.156

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 2.0.0-next.156](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.155...v2.0.0-next.156)
6
+
7
+ <sup>Released on **2025-12-04**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix React CVE issue.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix React CVE issue, closes [#10593](https://github.com/lobehub/lobe-chat/issues/10593) ([abd850f](https://github.com/lobehub/lobe-chat/commit/abd850f))
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 2.0.0-next.155](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.154...v2.0.0-next.155)
6
31
 
7
32
  <sup>Released on **2025-12-03**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix React CVE issue."
6
+ ]
7
+ },
8
+ "date": "2025-12-04",
9
+ "version": "2.0.0-next.156"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "fixes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.155",
3
+ "version": "2.0.0-next.156",
4
4
  "description": "LobeHub - an open-source,comprehensive AI Agent 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",
@@ -239,7 +239,7 @@
239
239
  "mdast-util-to-markdown": "^2.1.2",
240
240
  "model-bank": "workspace:*",
241
241
  "nanoid": "^5.1.6",
242
- "next": "16.0.5",
242
+ "next": "^16.0.7",
243
243
  "next-auth": "5.0.0-beta.30",
244
244
  "next-mdx-remote": "^5.0.0",
245
245
  "nextjs-toploader": "^3.9.17",
@@ -267,10 +267,10 @@
267
267
  "query-string": "^9.3.1",
268
268
  "random-words": "^2.0.1",
269
269
  "rc-util": "^5.44.4",
270
- "react": "19.2.0",
270
+ "react": "^19.2.1",
271
271
  "react-confetti": "^6.4.0",
272
272
  "react-diff-view": "^3.3.2",
273
- "react-dom": "19.2.0",
273
+ "react-dom": "^19.2.1",
274
274
  "react-fast-marquee": "^1.6.5",
275
275
  "react-hotkeys-hook": "^5.2.1",
276
276
  "react-i18next": "^15.7.4",
@@ -1,4 +1,5 @@
1
1
  import * as dotenv from 'dotenv';
2
+ import dotenvExpand from 'dotenv-expand';
2
3
  import { migrate as neonMigrate } from 'drizzle-orm/neon-serverless/migrator';
3
4
  import { migrate as nodeMigrate } from 'drizzle-orm/node-postgres/migrator';
4
5
  import { join } from 'node:path';
@@ -6,9 +7,15 @@ import { join } from 'node:path';
6
7
  // @ts-ignore tsgo handle esm import cjs and compatibility issues
7
8
  import { DB_FAIL_INIT_HINT, DUPLICATE_EMAIL_HINT, PGVECTOR_HINT } from './errorHint';
8
9
 
9
- // Read the `.env` file if it exists, or a file specified by the
10
- // dotenv_config_path parameter that's passed to Node.js
11
- dotenv.config();
10
+ // Load environment variables in priority order:
11
+ // 1. .env (lowest priority)
12
+ // 2. .env.[env] (medium priority, overrides .env)
13
+ // 3. .env.[env].local (highest priority, overrides previous)
14
+ // Use dotenv-expand to support ${var} variable expansion
15
+ const env = process.env.NODE_ENV || 'development';
16
+ dotenvExpand.expand(dotenv.config()); // Load .env
17
+ dotenvExpand.expand(dotenv.config({ override: true, path: `.env.${env}` })); // Load .env.[env] and override
18
+ dotenvExpand.expand(dotenv.config({ override: true, path: `.env.${env}.local` })); // Load .env.[env].local and override
12
19
 
13
20
  const migrationsFolder = join(__dirname, '../../packages/database/migrations');
14
21