dsh-folia 4.25.3 → 4.25.5

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.
@@ -171,14 +171,19 @@ const SWITCH_SPEED_VALUES = ['fast', 'normal', 'slow'];
171
171
  // 其余三个是手选覆盖,与宿主按请求观测出来的三档同名同字面量。
172
172
  const ADAPTER_TARGET_VALUES = ['auto', 'browser', 'desktop-community', 'desktop-official'];
173
173
  /**
174
- * 站点壁纸的播放策略(4.23.23):
175
- * · `download-first`(默认):点未缓存的壁纸 ⇒ **先整份下到本地并校验通过,再从本地文件播**。
174
+ * 站点壁纸的播放策略(4.23.23,4.25.5 收敛为一档):
175
+ * · `download-first`(**唯一**):点未缓存的壁纸 ⇒ **先整份下到本地并校验通过,再从本地文件播**。
176
176
  * 首帧要等一次下载,但播放全程不走 CDN 流(省流量、可续传、之后秒开)。
177
- * · `stream-first`(旧行为,保留给回滚 / 愿意秒开的人):点击即用站点代理边下边播,
178
- * 下载在后台继续,下完后再切到本地副本。
179
- * 判据:test/verify-download-first.mjs(默认值 / 面板两档 / 不播站点流 / stream-first 回滚)。
177
+ * · `stream-first` **已删除**(用户 4.25.5 明确要求):客户端那条"点击即站点流 / 改用边下边播"
178
+ * 的链路(`useStreamingNow()` / `dfUseStream()` / 长等待按钮)整体拆掉了。
179
+ *
180
+ * 为什么**保留这个键**而不是连键一起删:
181
+ * · 老存档里可能写着 `stream-first`。白名单收窄后 `sanitizeFromSchema` 的 enum 分支会把它
182
+ * 夹回 `DEFAULTS.playbackPolicy`(= download-first)—— 一次正常的"值不再合法"矫正;
183
+ * · 键消失则读侧拿到的是一个空值/未知键,那才是"配置读错"。
184
+ * 判据:test/verify-download-first.mjs(F1/F2:默认值 + 白名单只剩一档)。
180
185
  */
181
- const PLAYBACK_POLICY_VALUES = ['download-first', 'stream-first'];
186
+ const PLAYBACK_POLICY_VALUES = ['download-first'];
182
187
  // 点击效果与拖尾效果(「扩展」页签的第二个模块):
183
188
  // 点击样式 —— ripple = 从落点扩散的圆环;spark = 向四周飞散的亮点;both = 两者一起。
184
189
  const FX_CLICK_STYLE_VALUES = ['ripple', 'spark', 'both'];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-folia",
3
- "version": "4.25.3",
4
- "description": "把本机 Wallpaper Engine 壁纸放进 DSH:场景、视频、网页壁纸,开机动画、桌宠与助手皮肤;也能从自建素材站一键拉取并缓存到本地。",
3
+ "version": "4.25.5",
4
+ "description": "DSH 壁纸引擎:本机 WE 壁纸实时渲染,视频/网页/开机动画/桌宠皮肤,一键拉取在线素材。",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=22.12.0",