edsger 0.27.2 → 0.27.4

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.
@@ -10,8 +10,8 @@
10
10
  import { execSync } from 'child_process';
11
11
  import { getVersion, resetVersionCache } from '../constants.js';
12
12
  import { logInfo, logSuccess, logWarning, logError } from '../utils/logger.js';
13
- /** How often to check for updates (in milliseconds) - every 30 minutes */
14
- const UPDATE_CHECK_INTERVAL = 30 * 60 * 1000;
13
+ /** How often to check for updates (in milliseconds) - every 5 minutes */
14
+ const UPDATE_CHECK_INTERVAL = 5 * 60 * 1000;
15
15
  let updateCheckTimer;
16
16
  /**
17
17
  * Get the latest published version from npm registry
@@ -25,7 +25,8 @@ export function getLatestVersion() {
25
25
  }).trim();
26
26
  return result || null;
27
27
  }
28
- catch {
28
+ catch (error) {
29
+ logWarning(`Failed to check latest version: ${error instanceof Error ? error.message : String(error)}`);
29
30
  return null;
30
31
  }
31
32
  }
@@ -100,9 +101,12 @@ export function checkAndUpdate() {
100
101
  logSuccess('Update applied. New feature workers will use the updated version automatically.');
101
102
  }
102
103
  }
104
+ else {
105
+ logInfo(`Version check: v${currentVersion} is up to date${latestVersion ? ` (latest: v${latestVersion})` : ' (registry check failed)'}`);
106
+ }
103
107
  }
104
- catch {
105
- // Silently ignore update check errors
108
+ catch (error) {
109
+ logWarning(`Update check failed: ${error instanceof Error ? error.message : String(error)}`);
106
110
  }
107
111
  }
108
112
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edsger",
3
- "version": "0.27.2",
3
+ "version": "0.27.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "edsger": "dist/index.js"