Skip to content

Commit 438ed6e

Browse files
committed
fix: 更新 @nsnanocat/util 依赖版本至 2.1.5
Update arguments-builder-full.config.ts Update boxjs.settings.json Update CHANGELOG.md Update setENV.mjs
1 parent df168b2 commit 438ed6e

File tree

6 files changed

+22
-12
lines changed

6 files changed

+22
-12
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,22 @@
1717
### ‼️ Breaking Changes
1818
* 空气质量相关的设置结构经过了大幅修改。
1919

20+
### 🔣 Dependencies
21+
* 升级了 `@nsnanocat/util`
22+
* 修复 Stash 不存在 $argument 的情况下,脚本直接错误退出的问题.
23+
* 新增`[储存] 配置类型 (Storage)`选项,提供如下三个选项,其中 `Argument` 为默认选项:
24+
* `Argument`: 优先使用来自`插件选项``模块参数`等,由 `$argument` 传入的配置,`$argument` 不包含的设置项由 `PersistentStore (BoxJs)` 提供。
25+
* `PersistentStore`: 只使用来自 `BoxJs` 等,由 `$persistentStore` 提供的配置;
26+
* `database`: 只使用由作者的 `database.mjs` 文件提供的默认配置,其他任何自定义配置不再起作用。
27+
* `未选择/未填写`: 配置优先级依旧是 `$persistentStore (BoxJs)` > `$argument` > `database`
28+
* ⚠️ 注意:`[储存] 配置类型 (Storage)`选项只能经由 `$argument` 进行配置,可通过支持 `$argument` 的插件选项或模块参数进行设置。对于本就不支持 `$argument` 的 app (如 Quantumult X),始终按照 `未选择/未填写` 模式进行处理(与旧版逻辑一致)。
29+
2030
### 🔄 Other Changes
2131
* 数据集和未来一小时降水强度默认限制在彩云天气的支持范围内。
2232
* 今日空气质量和对比昨日默认限制在彩云天气的支持范围内。
2333
* 默认使用彩云天气替换了CN天气。
2434
* 默认使用内置算法,转为德国LQI。
25-
* 适配[NSNanoCat/util](https://github.com/NSNanoCat/util/tree/v2.1.0) v2.1.3
35+
* 适配[NSNanoCat/util](https://github.com/NSNanoCat/util/tree/v2.1.5) v2.1.5
2636
* 将部分设置剥离到 BoxJs。
2737
* 增加了新的配置优先级选项
2838
* 清除了不再使用的代码。

arguments-builder-full.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,14 @@ export const storage: Args = [
341341
{
342342
key: "Storage",
343343
name: "[储存] 配置类型",
344-
defaultValue: "$argument",
344+
defaultValue: "Argument",
345345
type: "string",
346346
options: [
347-
{ key: "$argument", label: "优先使用来自 $argument 的配置,$argument 不包含的设置项由 PersistentStore(BoxJs) 提供" },
348-
{ key: "PersistentStore", label: "只使用 PersistentStore(BoxJs) 提供的配置" },
347+
{ key: "Argument", label: "优先使用插件选项与模块参数等,由 $argument 传入的配置,$argument 不包含的设置项由 PersistentStore (BoxJs) 提供" },
348+
{ key: "PersistentStore", label: "只使用来自 BoxJs 等,由 $persistentStore 提供的配置" },
349349
{ key: "database", label: "只使用由作者的 database.mjs 文件提供的默认配置,其他任何自定义配置不再起作用" },
350350
],
351-
description: "选择要使用的配置类型。未设置此选项或不通过此选项的旧版本的配置顺序依旧是 PersistentStore(BoxJs) > $argument > database。",
351+
description: "选择要使用的配置类型。未设置此选项或不通过此选项的旧版本的配置顺序依旧是 $persistentStore (BoxJs) > $argument > database。",
352352
},
353353
];
354354

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"typescript": "^5.9.3"
5555
},
5656
"dependencies": {
57-
"@nsnanocat/util": "^2.1.3",
57+
"@nsnanocat/util": "^2.1.5",
5858
"flatbuffers": "^24.12.23",
5959
"node-polyfill-webpack-plugin": "^4.1.0"
6060
}

src/function/setENV.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getStorage } from "@nsnanocat/util/getStorage.mjs";
1+
import getStorage from "@nsnanocat/util/getStorage.mjs";
22
import { Console, Lodash as _ } from "@nsnanocat/util";
33

44
/**

template/boxjs.settings.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)