@tekyzinc/gsd-t 2.11.1 → 2.11.3

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 CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  All notable changes to GSD-T are documented here. Updated with each release.
4
4
 
5
+ ## [2.11.3] - 2026-02-12
6
+
7
+ ### Changed
8
+ - Reduced update check cache duration from 24 hours to 1 hour — new releases are detected faster
9
+
10
+ ## [2.11.2] - 2026-02-12
11
+
12
+ ### Fixed
13
+ - CLI update check used `!==` instead of semver comparison — would show incorrect downgrade notices when cache had an older version
14
+ - Added `isNewerVersion()` helper for proper semver comparison in update notifications
15
+
5
16
  ## [2.11.1] - 2026-02-12
6
17
 
7
18
  ### Changed
package/bin/gsd-t.js CHANGED
@@ -777,6 +777,16 @@ function doRegister() {
777
777
  log("");
778
778
  }
779
779
 
780
+ function isNewerVersion(latest, current) {
781
+ const l = latest.split(".").map(Number);
782
+ const c = current.split(".").map(Number);
783
+ for (let i = 0; i < 3; i++) {
784
+ if ((l[i] || 0) > (c[i] || 0)) return true;
785
+ if ((l[i] || 0) < (c[i] || 0)) return false;
786
+ }
787
+ return false;
788
+ }
789
+
780
790
  function checkForUpdates() {
781
791
  // Skip check for update/install/update-all (they handle it themselves)
782
792
  const skipCommands = ["install", "update", "update-all", "--version", "-v"];
@@ -790,13 +800,13 @@ function checkForUpdates() {
790
800
  }
791
801
  } catch { /* ignore corrupt cache */ }
792
802
 
793
- // Show notice from cache if newer version is known
794
- if (cached && cached.latest && cached.latest !== PKG_VERSION) {
803
+ // Show notice from cache if a newer version is available
804
+ if (cached && cached.latest && isNewerVersion(cached.latest, PKG_VERSION)) {
795
805
  showUpdateNotice(cached.latest);
796
806
  }
797
807
 
798
- // Refresh cache in background if stale (older than 24h) or missing
799
- const isStale = !cached || (Date.now() - cached.timestamp) > 86400000;
808
+ // Refresh cache in background if stale (older than 1h) or missing
809
+ const isStale = !cached || (Date.now() - cached.timestamp) > 3600000;
800
810
  if (isStale) {
801
811
  const script = `
802
812
  const https = require("https");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekyzinc/gsd-t",
3
- "version": "2.11.1",
3
+ "version": "2.11.3",
4
4
  "description": "GSD-T: Contract-Driven Development for Claude Code — 35 slash commands with backlog management, impact analysis, test sync, and milestone archival",
5
5
  "author": "Tekyz, Inc.",
6
6
  "license": "MIT",