@tamyla/clodo-framework 4.0.0 → 4.0.1

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,10 @@
1
+ ## [4.0.1](https://github.com/tamylaa/clodo-framework/compare/v4.0.0...v4.0.1) (2025-12-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Export COMMON_FEATURES and autoConfigureFramework, update docs ([6cf9a7e](https://github.com/tamylaa/clodo-framework/commit/6cf9a7e13c5b0b6dc10b69624e5633429890f894))
7
+
1
8
  # [4.0.0](https://github.com/tamylaa/clodo-framework/compare/v3.2.5...v4.0.0) (2025-12-07)
2
9
 
3
10
 
package/README.md CHANGED
@@ -135,14 +135,14 @@ await orchestrator.createService({
135
135
 
136
136
  #### Service Enhancement
137
137
  ```javascript
138
- import { ServiceEnhancer } from '@tamyla/clodo-framework';
139
-
140
- // Add custom handler to existing service
141
- const enhancer = new ServiceEnhancer('./path/to/service');
142
- await enhancer.addHandler('customHandler', {
143
- method: 'POST',
144
- path: '/custom',
145
- handler: customLogic
138
+ import { ServiceCreator } from '@tamyla/clodo-framework';
139
+
140
+ // Create and configure a new service
141
+ const creator = new ServiceCreator();
142
+ await creator.createService({
143
+ serviceName: 'my-api-service',
144
+ serviceType: 'data-service',
145
+ domain: 'mycompany.com'
146
146
  });
147
147
  ```
148
148
 
package/dist/index.js CHANGED
@@ -13,6 +13,7 @@ export { default as Clodo, createService, deploy, validate, initialize, getInfo
13
13
  export { FeatureFlagManager } from './config/features.js';
14
14
  export { createDomainConfigSchema, validateDomainConfig, createDefaultDomainConfig } from './utils/domain-config.js';
15
15
  export { initializeService } from './worker/integration.js';
16
+ export { autoConfigureFramework } from './version/VersionDetector.js';
16
17
 
17
18
  // Core data and schema components
18
19
  export * from './services/GenericDataService.js';
@@ -3,6 +3,9 @@ import { getDomainFromEnv, createEnvironmentConfig } from '../config/domains.js'
3
3
  // Import COMMON_FEATURES from worker-safe constants (no Node.js dependencies)
4
4
  import { COMMON_FEATURES } from './features.js';
5
5
 
6
+ // Re-export COMMON_FEATURES for use in worker templates
7
+ export { COMMON_FEATURES };
8
+
6
9
  // Simple feature manager interface (replaces ConfigurationManager dependency)
7
10
  export const configManager = {
8
11
  setDomain: () => {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamyla/clodo-framework",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Reusable framework for Clodo-style software architecture on Cloudflare Workers + D1",
5
5
  "type": "module",
6
6
  "sideEffects": [