cobolx 1.0.2-canary.29 → 1.0.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/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rdo"
3
- version = "1.0.2-canary.29"
3
+ version = "1.0.3"
4
4
  edition = "2024"
5
5
 
6
6
  [dependencies]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cobolx",
3
- "version": "1.0.2-canary.29",
3
+ "version": "1.0.3",
4
4
  "description": "CobolX CLI",
5
5
  "main": "bin/cobolx.js",
6
6
  "bin": {
@@ -19,8 +19,14 @@ let npmTag = 'latest';
19
19
  if (githubRef.startsWith('refs/tags/v')) {
20
20
  version = githubRef.replace('refs/tags/v', '');
21
21
  } else {
22
- const attemptSuffix = runAttempt !== '1' ? `.${runAttempt}` : '';
23
- version = `${baseVersion}-canary.${runNumber}${attemptSuffix}`;
22
+ // Use UTC YYYYMMDDHHMM timestamp to ensure uniqueness and prevent registry publish collisions
23
+ const now = new Date();
24
+ const timestamp = now.getUTCFullYear().toString() +
25
+ String(now.getUTCMonth() + 1).padStart(2, '0') +
26
+ String(now.getUTCDate()).padStart(2, '0') +
27
+ String(now.getUTCHours()).padStart(2, '0') +
28
+ String(now.getUTCMinutes()).padStart(2, '0');
29
+ version = `${baseVersion}-canary.${runNumber}.${timestamp}`;
24
30
  isCanary = 'true';
25
31
  npmTag = 'canary';
26
32
  }