agent-sin 0.1.9 → 0.1.10
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/CHANGELOG.md +8 -0
- package/dist/core/update-notifier.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,14 @@ See the [compatibility policy](https://agent.shingoirie.com/versioning) for deta
|
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
+
## [0.1.10] — 2026-05-14
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Update notifications now compare full semver versions correctly. Previously `0.1.6` and `0.1.9` were treated as equal because only the major segment was compared, so `agent-sin start` could miss an available update even when `update-check.json` already had the newer version.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
18
26
|
## [0.1.9] — 2026-05-14
|
|
19
27
|
|
|
20
28
|
### Fixed
|
|
@@ -82,8 +82,8 @@ function fetchLatestVersion() {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
function compareSemver(a, b) {
|
|
85
|
-
const pa = a.split(/[
|
|
86
|
-
const pb = b.split(/[
|
|
85
|
+
const pa = a.split(/[+-]/)[0].split(".").map((s) => parseInt(s, 10) || 0);
|
|
86
|
+
const pb = b.split(/[+-]/)[0].split(".").map((s) => parseInt(s, 10) || 0);
|
|
87
87
|
const len = Math.max(pa.length, pb.length);
|
|
88
88
|
for (let i = 0; i < len; i += 1) {
|
|
89
89
|
const av = pa[i] ?? 0;
|