⚙ Enhanced
🔣 Dependencies
- 升级了
@nsnanocat/util
- 修复 Stash 不存在 $argument 的情况下,脚本直接错误退出的问题.
- 新增
[储存] 配置类型 (Storage)选项,提供如下三个选项,其中 Argument 为默认选项:
Argument: 优先使用来自插件选项与模块参数等,由 $argument 传入的配置,$argument 不包含的设置项由 PersistentStore (BoxJs) 提供。
PersistentStore: 只使用来自 BoxJs 等,由 $persistentStore 提供的配置;
database: 只使用由作者的 database.mjs 文件提供的默认配置,其他任何自定义配置不再起作用。
未选择/未填写: 配置优先级依旧是 $persistentStore (BoxJs) > $argument > database
- ⚠️ 注意:
[储存] 配置类型 (Storage)选项只能经由 $argument 进行配置,可通过支持 $argument 的插件选项或模块参数进行设置。对于本就不支持 $argument 的 app (如 Quantumult X),始终按照 未选择/未填写 模式进行处理(与旧版逻辑一致)。
- 更新
biome.json 配置以适配 2.4.3 schema,并调整文件包含规则。
🆕 New Features
🔣 Dependencies
- 升级了
@nsnanocat/url
- 升级了
@nsnanocat/util
Lodash polyfill 新增 merge 能力
- 现在来自
插件与模块等的 $argument 配置将深层合并覆盖 $persistentStore (BoxJs) 的配置
- 即,有相同键名时,
$argument 的值会覆盖 $persistentStore (BoxJs) 的值
- 用户在未更新
$persistentStore (BoxJs) 的情况下也不会影响新功能的配置字段
🆕 New Features
🔣 Dependencies
- 升级了
@nsnanocat/url
- 升级了
@nsnanocat/util
🛠️ Bug Fixes
- 修复
$argument 和 $persistentStore 载入顺序颠倒的问题
- 正确顺序为先读取
$argument 再读取 $persistentStore (BoxJs)
- 即,有相同键名时,
$persistentStore (BoxJs) 的值会覆盖 $argument 的值
🔣 Dependencies
- 升级了
@nsnanocat/url
- 使用了全新的
URL 和 URLSearchParams polyfill
- 升级了
@nsnanocat/util
util 由 submodule 更改为 package
$platform 改为 $app
- 使用了全新的
Console polyfill
🛠️ Bug Fixes
- 修复
$argument 和 $persistentStore 载入顺序颠倒的问题
- 正确顺序为先读取
$argument 再读取 $persistentStore (BoxJs)
- 即,有相同键名时,
$persistentStore (BoxJs) 的值会覆盖 $argument 的值
🔣 Dependencies
- 升级了
@nsnanocat/url
- 使用了全新的
URL 和 URLSearchParams polyfill
- 升级了
@nsnanocat/util
util 由 submodule 更改为 package
$platform 改为 $app
- 使用了全新的
Console polyfill
🛠️ Bug Fixes
- 修复
$argument 和 $persistentStore 载入顺序颠倒的问题
- 正确顺序为先读取
$argument 再读取 $persistentStore (BoxJs)
- 即,有相同键名时,
$persistentStore (BoxJs) 的值会覆盖 $argument 的值
🔣 Dependencies
- 升级了
@nsnanocat/url
- 使用了全新的
URL 和 URLSearchParams polyfill
- 升级了
@nsnanocat/util
util 由 submodule 更改为 package
$platform 改为 $app
- 使用了全新的
Console polyfill
🔄 Other Changes
- 打包器由
rollup 更改为 rspack
- util 由
submodule 更改为 package