soma-voice 1.0.0 → 2.0.0

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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  SOMA 的纯函数语音能力 source package。根入口只导出 SSR-safe 浏览器 API,不包含 UI、HTML、React、公开 controller 或第三方浏览器 SDK。
4
4
 
5
+ > 2.0.0 运行时基线:Node.js `24.21.0`、Next.js `16.3.5`、`soma-core >=2.0.0`。
6
+
5
7
  ## 开箱即用能力
6
8
 
7
9
  - `detectVoiceCapabilities()`:按特性检测 MediaRecorder、Web Audio 和注入 adapter。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soma-voice",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "Pure-function browser recording, speech recognition and speech synthesis for SOMA Hosts.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -28,7 +28,7 @@
28
28
  "manifest.md"
29
29
  ],
30
30
  "engines": {
31
- "node": ">=20.9"
31
+ "node": "24.21.0"
32
32
  },
33
33
  "scripts": {
34
34
  "typecheck": "tsc --noEmit",
@@ -40,17 +40,17 @@
40
40
  "server-only": "0.0.1"
41
41
  },
42
42
  "peerDependencies": {
43
- "next": ">=16.3.1 <17",
44
- "soma-core": ">=1.3.0"
43
+ "next": ">=16.3.5 <17",
44
+ "soma-core": ">=2.0.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/js-yaml": "^4.0.9",
48
48
  "@types/node": "^20.0.0",
49
- "js-yaml": "^4.3.1",
49
+ "js-yaml": "^4.3.2",
50
50
  "jsdom": "^26.1.0",
51
- "next": "16.3.1",
51
+ "next": "16.3.5",
52
52
  "playwright": "^1.62.1",
53
- "soma-core": "^1.3.2",
53
+ "soma-core": "^2.0.0",
54
54
  "typescript": "^5.5.0",
55
55
  "vitest": "3.2.6"
56
56
  },