@tamyla/clodo-framework 4.0.5 → 4.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [4.0.6](https://github.com/tamylaa/clodo-framework/compare/v4.0.5...v4.0.6) (2025-12-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add null checks for enterprise deployment methods ([97c3237](https://github.com/tamylaa/clodo-framework/commit/97c32371e97f259f62a82e9f7cc393dab0def7ed))
7
+ * correct URL construction and export missing testing workflow ([19691e1](https://github.com/tamylaa/clodo-framework/commit/19691e1651b3f37762e0564ccbb939c7c22965ad))
8
+ * correct worker URL construction and prevent undefined errors ([5d94f4f](https://github.com/tamylaa/clodo-framework/commit/5d94f4f064d5264f18929a6d2bd0564b0bb5494a))
9
+ * remove duplicate export in InteractiveTestingWorkflow ([db710c2](https://github.com/tamylaa/clodo-framework/commit/db710c2342ac3fd41b73ffd01fdd83ce0e0256f1))
10
+
1
11
  ## [4.0.5](https://github.com/tamylaa/clodo-framework/compare/v4.0.4...v4.0.5) (2025-12-09)
2
12
 
3
13
 
@@ -78,7 +78,7 @@ export class InteractiveConfirmation {
78
78
  console.log('2. Run database migrations');
79
79
  console.log('3. Deploy Cloudflare Worker');
80
80
  console.log('4. Verify deployment health');
81
- if (config.deployment.runTests) {
81
+ if (config.deployment?.runTests) {
82
82
  console.log('5. Run integration tests');
83
83
  }
84
84
  }
@@ -147,11 +147,11 @@ export class InteractiveConfirmation {
147
147
  console.log(`šŸ“± Mode: ${config.deploymentMode}`);
148
148
  console.log(`⚔ Worker: ${config.worker.name}`);
149
149
  console.log(`šŸ”— URL: ${config.worker.url}`);
150
- console.log(`šŸ—„ļø Database: ${config.database.name} (${config.database.id})`);
151
- console.log(`šŸ”‘ Secrets: ${Object.keys(config.secrets.keys).length} configured`);
150
+ console.log(`šŸ—„ļø Database: ${config.database?.name || 'None'} (${config.database?.id || 'No ID'})`);
151
+ console.log(`šŸ”‘ Secrets: ${config.secrets?.keys ? Object.keys(config.secrets.keys).length : 0} configured`);
152
152
  console.log(`šŸ†” Deployment ID: ${deploymentState.deploymentId}`);
153
- console.log(`šŸ” Validation: ${config.deployment.validationLevel}`);
154
- console.log(`šŸ“‹ Audit: ${config.deployment.auditLevel}`);
153
+ console.log(`šŸ” Validation: ${config.deployment?.validationLevel || 'standard'}`);
154
+ console.log(`šŸ“‹ Audit: ${config.deployment?.auditLevel || 'basic'}`);
155
155
  }
156
156
 
157
157
  /**
@@ -168,7 +168,7 @@ export class InteractiveConfirmation {
168
168
  console.log('4. Configuration management');
169
169
  console.log('5. Cloudflare Worker deployment with D1 recovery');
170
170
  console.log('6. Deployment verification');
171
- if (config.deployment.runTests) {
171
+ if (config.deployment?.runTests) {
172
172
  console.log('7. Comprehensive integration tests');
173
173
  }
174
174
  console.log(`8. Audit logging and reporting`);
@@ -93,9 +93,9 @@ export class InteractiveDomainInfoGatherer {
93
93
  config.worker = config.worker || {};
94
94
  config.worker.name = `${config.domain}-data-service`;
95
95
 
96
- // Use account name from credentials for workers.dev subdomain
97
- const accountName = config.credentials?.accountName || 'tamylatrading';
98
- config.worker.url = `https://${config.worker.name}.${accountName}.workers.dev`;
96
+ // Use zone name from credentials for workers.dev subdomain
97
+ const zoneName = config.credentials?.zoneName || `${config.domain}.workers.dev`;
98
+ config.worker.url = `https://${config.worker.name}.${zoneName}`;
99
99
  console.log(`\nšŸ”§ Generated Configuration:`);
100
100
  console.log(` Worker Name: ${config.worker.name}`);
101
101
  console.log(` Worker URL: ${config.worker.url}`);
@@ -114,8 +114,8 @@ export class InteractiveDomainInfoGatherer {
114
114
  console.log(` šŸ”§ Using extracted name: ${customWorkerName}`);
115
115
  }
116
116
  config.worker.name = customWorkerName;
117
- const accountName = config.credentials?.accountName || 'tamylatrading';
118
- config.worker.url = `https://${config.worker.name}.${accountName}.workers.dev`;
117
+ const zoneName = config.credentials?.zoneName || `${config.domain}.workers.dev`;
118
+ config.worker.url = `https://${config.worker.name}.${zoneName}`;
119
119
  console.log(`\nāœ… Updated worker configuration`);
120
120
  }
121
121
  }
@@ -140,7 +140,7 @@ export class InteractiveValidationWorkflow {
140
140
  // Rename
141
141
  const newName = await this.promptForNewWorkerName(config.worker.name);
142
142
  config.worker.name = newName;
143
- config.worker.url = `https://${newName}.${config.credentials?.zoneName || config.credentials?.accountName || 'tamylatrading.workers.dev'}`;
143
+ config.worker.url = `https://${newName}.${config.credentials?.zoneName || `${config.domain || 'clododev'}.workers.dev`}`;
144
144
  console.log(` āœ… Will deploy as new worker: ${newName}`);
145
145
  return true;
146
146
  case 2:
@@ -207,7 +207,7 @@ export class InteractiveValidationWorkflow {
207
207
  // This is a simplified comparison - in a real implementation,
208
208
  // you might fetch the existing worker's configuration
209
209
  console.log(` šŸ“‹ Existing Worker: ${config.worker.name}`);
210
- console.log(` 🌐 URL: https://${config.worker.name}.${config.credentials?.zoneName || config.credentials?.accountName || 'tamylatrading.workers.dev'}`);
210
+ console.log(` 🌐 URL: https://${config.worker.name}.${config.credentials?.zoneName || `${config.domain || 'clododev'}.workers.dev`}`);
211
211
  console.log(` šŸ“… Last deployed: Unknown (would need API call to check)`);
212
212
  console.log(` šŸ”§ Environment: ${config.environment || 'production'}`);
213
213
  console.log('\n šŸ“‹ New Deployment:');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamyla/clodo-framework",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "Reusable framework for Clodo-style software architecture on Cloudflare Workers + D1",
5
5
  "type": "module",
6
6
  "sideEffects": [