@umituz/web-cloudflare 1.1.0 → 1.2.0

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/README.md CHANGED
@@ -175,6 +175,8 @@ const versions = await wrangler.versionsList();
175
175
  await wrangler.versionsRollback(versions[0].id);
176
176
  ```
177
177
 
178
+ **Note:** Wrangler CLI service now follows Domain-Driven Design (DDD) architecture with its own domain structure at `src/domains/wrangler/`.
179
+
178
180
  ## 📚 Subpath Exports
179
181
 
180
182
  ### Services
@@ -646,7 +648,12 @@ Contributions are welcome!
646
648
  @umituz/web-cloudflare/
647
649
  ├── src/
648
650
  │ ├── config/ # Config patterns and types
649
- │ ├── domain/ # Domain entities
651
+ │ ├── domains/ # Domain-driven design structure
652
+ │ │ └── wrangler/ # Wrangler CLI domain
653
+ │ │ ├── entities/ # Domain entities
654
+ │ │ ├── services/ # Domain services
655
+ │ │ ├── types/ # Domain types
656
+ │ │ └── index.ts # Domain exports
650
657
  │ ├── infrastructure/
651
658
  │ │ ├── services/ # Services (workers, kv, r2, d1, etc.)
652
659
  │ │ ├── router/ # Express-like router
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-cloudflare",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Comprehensive Cloudflare Workers integration with config-based patterns, middleware, router, workflows, and AI",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -16,7 +16,7 @@
16
16
  "./workflows": "./src/infrastructure/services/workflows/index.ts",
17
17
  "./ai-gateway": "./src/infrastructure/services/ai-gateway/index.ts",
18
18
  "./workers-ai": "./src/infrastructure/services/ai-gateway/index.ts",
19
- "./wrangler": "./src/infrastructure/services/wrangler/index.ts",
19
+ "./wrangler": "./src/domains/wrangler/index.ts",
20
20
  "./router": "./src/infrastructure/router/index.ts",
21
21
  "./middleware": "./src/infrastructure/middleware/index.ts",
22
22
  "./utils": "./src/infrastructure/utils/helpers.ts",
@@ -24,7 +24,6 @@
24
24
  "./config": "./src/config/patterns.ts",
25
25
  "./patterns": "./src/config/patterns.ts",
26
26
  "./types": "./src/config/types.ts",
27
- "./domain": "./src/domain/index.ts",
28
27
  "./package.json": "./package.json"
29
28
  },
30
29
  "scripts": {
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Wrangler Domain
3
+ * Complete Wrangler CLI integration with TypeScript
4
+ */
5
+
6
+ // Entities
7
+ export * from './entities';
8
+
9
+ // Types
10
+ export * from './types/service.interface';
11
+
12
+ // Services
13
+ export * from './services';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Wrangler Service Exports
3
+ */
4
+
5
+ export { WranglerService } from './wrangler.service';
6
+ export type { IWranglerService } from '../types/service.interface';
@@ -14,8 +14,8 @@ import type {
14
14
  D1DatabaseInfo,
15
15
  SecretInfo,
16
16
  WorkerVersionInfo,
17
- } from '../../../domain/entities/wrangler.entity';
18
- import type { IWranglerService } from '../../../domain/interfaces/wrangler.interface';
17
+ } from '../entities';
18
+ import type { IWranglerService } from '../types/service.interface';
19
19
 
20
20
  const execAsync = promisify(exec);
21
21
 
package/src/index.ts CHANGED
@@ -15,6 +15,7 @@
15
15
  * - ./workflows - Workflows orchestration service
16
16
  * - ./ai-gateway - AI Gateway service
17
17
  * - ./workers-ai - Workers AI service
18
+ * - ./wrangler - Wrangler CLI service
18
19
  * - ./router - Express-like router
19
20
  * - ./middleware - Middleware collection
20
21
  * - ./utils - Utility helpers
@@ -22,12 +23,10 @@
22
23
  * - ./config - Configuration patterns
23
24
  * - ./patterns - Configuration patterns (alias for ./config)
24
25
  * - ./types - TypeScript types
25
- * - ./domain - Domain entities
26
26
  */
27
27
 
28
- // Domain entities
29
- export * from "./domain/entities";
30
- export * from "./domain/interfaces";
28
+ // Domains
29
+ export * from "./domains/wrangler";
31
30
 
32
31
  // Infrastructure services
33
32
  export * from "./infrastructure/services/workers";
@@ -38,7 +37,6 @@ export * from "./infrastructure/services/images";
38
37
  export * from "./infrastructure/services/analytics";
39
38
  export * from "./infrastructure/services/workflows";
40
39
  export * from "./infrastructure/services/ai-gateway";
41
- export * from "./infrastructure/services/wrangler";
42
40
 
43
41
  // Infrastructure - Router, Middleware, Utils
44
42
  export * from "./infrastructure/router";
@@ -1,17 +0,0 @@
1
- /**
2
- * Wrangler Service Exports
3
- */
4
-
5
- export { WranglerService } from './wrangler.service';
6
- export type {
7
- WranglerResult,
8
- WranglerCommandOptions,
9
- AuthInfo,
10
- KVNamespaceInfo,
11
- R2BucketInfo,
12
- D1DatabaseInfo,
13
- SecretInfo,
14
- WorkerVersionInfo,
15
- AnalyticsData,
16
- } from '../../domain/entities/wrangler.entity';
17
- export type { IWranglerService } from '../../domain/interfaces/wrangler.interface';