daodou-command 1.4.4 → 1.4.6
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/.claude/settings.local.json +6 -1
- package/.idea/workspace.xml +2 -4
- package/CHANGELOG.md +12 -0
- package/lib/utils/update-checker.js +8 -2
- package/package.json +2 -2
|
@@ -7,7 +7,12 @@
|
|
|
7
7
|
"Bash(npm whoami:*)",
|
|
8
8
|
"Bash(npm publish)",
|
|
9
9
|
"Bash(git push:*)",
|
|
10
|
-
"Bash(npm view:*)"
|
|
10
|
+
"Bash(npm view:*)",
|
|
11
|
+
"Bash(npm deprecate:*)",
|
|
12
|
+
"Bash(npm unlink:*)",
|
|
13
|
+
"Bash(npm install:*)",
|
|
14
|
+
"Bash(dao:*)",
|
|
15
|
+
"Bash(npm link)"
|
|
11
16
|
],
|
|
12
17
|
"deny": [],
|
|
13
18
|
"ask": []
|
package/.idea/workspace.xml
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="1537cb23-f918-4011-a0ed-24da46bf53bc" name="更改" comment=""
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
9
|
-
</list>
|
|
7
|
+
<list default="true" id="1537cb23-f918-4011-a0ed-24da46bf53bc" name="更改" comment="" />
|
|
10
8
|
<option name="SHOW_DIALOG" value="false" />
|
|
11
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
12
10
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -65,7 +63,7 @@
|
|
|
65
63
|
<option name="presentableId" value="Default" />
|
|
66
64
|
<updated>1758879086844</updated>
|
|
67
65
|
<workItem from="1758879088110" duration="1336000" />
|
|
68
|
-
<workItem from="1763003382850" duration="
|
|
66
|
+
<workItem from="1763003382850" duration="4466000" />
|
|
69
67
|
</task>
|
|
70
68
|
<servers />
|
|
71
69
|
</component>
|
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,18 @@
|
|
|
6
6
|
并且此项目遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
## [1.4.6] - 2025-11-13
|
|
10
|
+
|
|
11
|
+
### 修复
|
|
12
|
+
- 修复版本更新提示逻辑,当前版本已是最新版本时不再显示更新提示
|
|
13
|
+
- 优化 `getUpdateReminder()` 函数,添加当前版本与最新版本的实时比较
|
|
14
|
+
|
|
15
|
+
## [1.4.5] - 2025-11-13
|
|
16
|
+
|
|
17
|
+
### 修复
|
|
18
|
+
- 修正 Node.js 版本要求为 `>=20.18.1`,与 cheerio 1.1.2 依赖要求保持一致
|
|
19
|
+
- cheerio 是最严格的依赖,要求 Node >= 20.18.1
|
|
20
|
+
|
|
9
21
|
## [1.4.4] - 2025-11-13
|
|
10
22
|
|
|
11
23
|
### 修复
|
|
@@ -138,11 +138,17 @@ async function checkUpdateInBackground() {
|
|
|
138
138
|
*/
|
|
139
139
|
function getUpdateReminder() {
|
|
140
140
|
const state = readState();
|
|
141
|
-
|
|
141
|
+
|
|
142
142
|
if (!state.hasUpdate || state.reminded) {
|
|
143
143
|
return null;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
|
|
146
|
+
// 再次检查当前版本是否已经是最新版本
|
|
147
|
+
const currentVersion = packageJson.version;
|
|
148
|
+
if (currentVersion === state.latestVersion || !hasUpdate(currentVersion, state.latestVersion)) {
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
|
|
146
152
|
return `🔄 发现新版本 ${state.latestVersion}!使用 "dao upgrade" 更新到最新版本。`;
|
|
147
153
|
}
|
|
148
154
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "daodou-command",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"description": "刀豆命令行工具 - 自动化构建和部署",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"ws": "^8.14.2"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=18.
|
|
39
|
+
"node": ">=20.18.1"
|
|
40
40
|
}
|
|
41
41
|
}
|