@codependix/boundaries 0.0.7 → 0.0.9

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,23 @@
1
+ ## 0.0.9 (2026-10-08)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated codependix-nestjs-modules to 0.0.9
6
+ - Updated codependix-configuration to 0.0.10
7
+ - Updated codependix-file-imports to 0.0.9
8
+ - Updated codependix-nx-projects to 0.0.9
9
+ - Updated codependix-core to 0.0.9
10
+
11
+ ## 0.0.8 (2026-10-08)
12
+
13
+ ### 🧱 Updated Dependencies
14
+
15
+ - Updated codependix-nestjs-modules to 0.0.8
16
+ - Updated codependix-configuration to 0.0.9
17
+ - Updated codependix-file-imports to 0.0.8
18
+ - Updated codependix-nx-projects to 0.0.8
19
+ - Updated codependix-core to 0.0.8
20
+
1
21
  ## 0.0.7 (2026-10-08)
2
22
 
3
23
  ### 🧱 Updated Dependencies
package/README.md CHANGED
@@ -306,13 +306,13 @@ graph LR
306
306
  ### Project
307
307
 
308
308
  ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-3499-22c55e?style=flat-square)
309
- ![Repository Size](https://img.shields.io/badge/Repository_Size-123.14_kB-6b7280?style=flat-square)
309
+ ![Repository Size](https://img.shields.io/badge/Repository_Size-123.67_kB-6b7280?style=flat-square)
310
310
  ![Folders](https://img.shields.io/badge/Folders-6-4a4a4a?style=flat-square)
311
311
  ![Source Files](https://img.shields.io/badge/Source_Files-35-3178c6?style=flat-square)
312
312
 
313
313
  ### Measured Targets
314
314
 
315
- ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-4.06_kB_gzip-6b7280?style=flat-square)
315
+ ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-4.11_kB_gzip-6b7280?style=flat-square)
316
316
 
317
317
  ### TypeScript
318
318
 
@@ -494,16 +494,16 @@ graph LR
494
494
  ### Markdown
495
495
 
496
496
  ![Markdown Files](https://img.shields.io/badge/Markdown_Files-2-083fa1?style=flat-square)
497
- ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-269-1f6feb?style=flat-square)
497
+ ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-289-1f6feb?style=flat-square)
498
498
  ![H1](https://img.shields.io/badge/H1-1-7c3aed?style=flat-square)
499
- ![H2](https://img.shields.io/badge/H2-11-8b5cf6?style=flat-square)
500
- ![H3](https://img.shields.io/badge/H3-18-a78bfa?style=flat-square)
499
+ ![H2](https://img.shields.io/badge/H2-13-8b5cf6?style=flat-square)
500
+ ![H3](https://img.shields.io/badge/H3-20-a78bfa?style=flat-square)
501
501
  ![H4](https://img.shields.io/badge/H4-0-c4b5fd?style=flat-square)
502
502
  ![H5](https://img.shields.io/badge/H5-0-ddd6fe?style=flat-square)
503
503
  ![H6](https://img.shields.io/badge/H6-0-ede9fe?style=flat-square)
504
- ![Paragraphs](https://img.shields.io/badge/Paragraphs-67-64748b?style=flat-square)
505
- ![Lists](https://img.shields.io/badge/Lists-12-16a34a?style=flat-square)
506
- ![List Items](https://img.shields.io/badge/List_Items-47-22c55e?style=flat-square)
504
+ ![Paragraphs](https://img.shields.io/badge/Paragraphs-77-64748b?style=flat-square)
505
+ ![Lists](https://img.shields.io/badge/Lists-14-16a34a?style=flat-square)
506
+ ![List Items](https://img.shields.io/badge/List_Items-57-22c55e?style=flat-square)
507
507
  ![Task List Items](https://img.shields.io/badge/Task_List_Items-0-4ade80?style=flat-square)
508
508
  ![Tables](https://img.shields.io/badge/Tables-2-0284c7?style=flat-square)
509
509
  ![Table Rows](https://img.shields.io/badge/Table_Rows-10-0ea5e9?style=flat-square)
package/dist/src/index.js CHANGED
@@ -4,16 +4,16 @@ import { PythonModule as r, PythonService as i, TypescriptModule as a, Typescrip
4
4
  import { ModuleGraphModule as s, ModuleGraphService as c, NestjsProjectModule as l, NestjsProjectService as u } from "@codependix/nestjs-modules";
5
5
  import { NeighborhoodModule as d, NeighborhoodService as f, WorkspaceGraphModule as p, WorkspaceGraphService as m } from "@codependix/nx-projects";
6
6
  import { CODEPENDIX_GRAPH_TYPES as h, ConfigurationModule as g, ConfigurationService as _ } from "@codependix/configuration";
7
- //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundaries/boundaries.constants.ts
8
- var v = " → ", y = (e) => `${e.rule}: ${e.cycle.join(v)} is a cycle.`, b = (e) => `${e.rule}: ${e.source} may not depend on ${e.target}, which the rule's allowed targets do not cover.`, x = (e) => `${e.rule}: ${e.source} must not depend on ${e.target}.`;
7
+ //#region \0rolldown/runtime.js
8
+ var v = " → ", describeCycle = (e) => `${e.rule}: ${e.cycle.join(v)} is a cycle.`, describeDisallowedEdge = (e) => `${e.rule}: ${e.source} may not depend on ${e.target}, which the rule's allowed targets do not cover.`, describeForbiddenEdge = (e) => `${e.rule}: ${e.source} must not depend on ${e.target}.`;
9
9
  //#endregion
10
10
  //#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorateMetadata.js
11
- function S(e, t) {
11
+ function __decorateMetadata(e, t) {
12
12
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
13
13
  }
14
14
  //#endregion
15
15
  //#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorate.js
16
- function C(e, t, n, r) {
16
+ function __decorate(e, t, n, r) {
17
17
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
18
18
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
19
19
  else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
@@ -21,7 +21,7 @@ function C(e, t, n, r) {
21
21
  }
22
22
  //#endregion
23
23
  //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundaries/boundary-cycles.service.ts
24
- var w = class {
24
+ var y = class BoundaryCyclesService {
25
25
  constructor() {}
26
26
  buildAdjacency(e) {
27
27
  let t = /* @__PURE__ */ new Map();
@@ -80,10 +80,10 @@ var w = class {
80
80
  return n.cycles;
81
81
  }
82
82
  };
83
- w = C([e(), S("design:paramtypes", [])], w);
83
+ y = __decorate([e(), __decorateMetadata("design:paramtypes", [])], y);
84
84
  //#endregion
85
85
  //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundaries/boundary-selector.service.ts
86
- var T = class {
86
+ var b = class BoundarySelectorService {
87
87
  constructor() {}
88
88
  matchesGlobs(e, t) {
89
89
  return t === void 0 || e !== void 0 && t.some((t) => n.matchesGlob(e, t));
@@ -98,17 +98,17 @@ var T = class {
98
98
  return t === void 0 ? new Set(e.map((e) => e.id)) : new Set(e.filter((e) => this.matches(e, t)).map((e) => e.id));
99
99
  }
100
100
  };
101
- T = C([e(), S("design:paramtypes", [])], T);
101
+ b = __decorate([e(), __decorateMetadata("design:paramtypes", [])], b);
102
102
  //#endregion
103
103
  //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundaries/boundaries.service.ts
104
- var E = class {
104
+ var x = class BoundariesService {
105
105
  cyclesService;
106
106
  selectorService;
107
107
  constructor(e, t) {
108
108
  this.cyclesService = e, this.selectorService = t;
109
109
  }
110
110
  buildAccessViolation(e) {
111
- let { edge: t, graph: n, rule: r } = e, i = r.kind === "forbid" ? x : b;
111
+ let { edge: t, graph: n, rule: r } = e, i = r.kind === "forbid" ? describeForbiddenEdge : describeDisallowedEdge;
112
112
  return {
113
113
  cycle: void 0,
114
114
  level: n.level,
@@ -156,7 +156,7 @@ var E = class {
156
156
  cycle: e.path,
157
157
  level: t.level,
158
158
  message: this.buildMessage({
159
- generated: y({
159
+ generated: describeCycle({
160
160
  cycle: e.path,
161
161
  rule: n.name
162
162
  }),
@@ -188,10 +188,10 @@ var E = class {
188
188
  }));
189
189
  }
190
190
  };
191
- E = C([e(), S("design:paramtypes", [w === void 0 ? Object : w, T === void 0 ? Object : T])], E);
191
+ x = __decorate([e(), __decorateMetadata("design:paramtypes", [y === void 0 ? Object : y, b === void 0 ? Object : b])], x);
192
192
  //#endregion
193
193
  //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundaries/boundary-report.service.ts
194
- var D = class {
194
+ var S = class BoundaryReportService {
195
195
  constructor() {}
196
196
  renderSummary(e) {
197
197
  if (e.length === 0) return "No boundary violations.";
@@ -202,34 +202,34 @@ var D = class {
202
202
  return e.map((e) => `${e.level} ${e.scope}: ${e.message}`);
203
203
  }
204
204
  };
205
- D = C([e(), S("design:paramtypes", [])], D);
205
+ S = __decorate([e(), __decorateMetadata("design:paramtypes", [])], S);
206
206
  //#endregion
207
207
  //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundaries/boundaries.module.ts
208
- var O = class {};
209
- O = C([t({
208
+ var C = class BoundariesModule {};
209
+ C = __decorate([t({
210
210
  controllers: [],
211
211
  exports: [
212
- E,
213
- w,
214
- D,
215
- T
212
+ x,
213
+ y,
214
+ S,
215
+ b
216
216
  ],
217
217
  imports: [],
218
218
  providers: [
219
- E,
220
- w,
221
- D,
222
- T
219
+ x,
220
+ y,
221
+ S,
222
+ b
223
223
  ]
224
- })], O);
224
+ })], C);
225
225
  //#endregion
226
226
  //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundary-check/boundary-check.constants.ts
227
- var k = "workspace", A = [
227
+ var w = "workspace", T = [
228
228
  "nxProjects",
229
229
  "nestjsModules",
230
230
  "typescript",
231
231
  "python"
232
- ], j = class {
232
+ ], E = class BoundaryGraphService {
233
233
  constructor() {}
234
234
  buildFileNodes(e) {
235
235
  return e.fileNames.map((t) => ({
@@ -290,10 +290,10 @@ var k = "workspace", A = [
290
290
  };
291
291
  }
292
292
  };
293
- j = C([e(), S("design:paramtypes", [])], j);
293
+ E = __decorate([e(), __decorateMetadata("design:paramtypes", [])], E);
294
294
  //#endregion
295
295
  //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundary-check/boundary-check.service.ts
296
- var M = class {
296
+ var D = class BoundaryCheckService {
297
297
  boundariesService;
298
298
  boundaryGraphService;
299
299
  moduleGraphService;
@@ -346,7 +346,7 @@ var M = class {
346
346
  try {
347
347
  let e = this.boundaryGraphService.buildNxGraph({
348
348
  projects: t.selectedProjects,
349
- scope: k,
349
+ scope: w,
350
350
  workingDirectory: t.workingDirectory,
351
351
  workspaceGraph: this.workspaceGraphService.buildWorkspaceGraph(t.graph, t.selectedProjects)
352
352
  });
@@ -359,7 +359,7 @@ var M = class {
359
359
  };
360
360
  } catch (e) {
361
361
  return {
362
- failures: [this.collectProjectFailure(k, e)],
362
+ failures: [this.collectProjectFailure(w, e)],
363
363
  violations: []
364
364
  };
365
365
  }
@@ -396,7 +396,7 @@ var M = class {
396
396
  }
397
397
  async run(e) {
398
398
  let { boundaries: t } = e.configuration, n = [];
399
- for (let r of A) {
399
+ for (let r of T) {
400
400
  if (!e.enabledGraphTypes.has(this.graphTypeForLevel(r))) continue;
401
401
  let i = this.rulesForLevel(t, r);
402
402
  i.length > 0 && n.push(await this.runLevel({
@@ -411,38 +411,38 @@ var M = class {
411
411
  };
412
412
  }
413
413
  };
414
- M = C([e(), S("design:paramtypes", [
414
+ D = __decorate([e(), __decorateMetadata("design:paramtypes", [
415
+ x === void 0 ? Object : x,
415
416
  E === void 0 ? Object : E,
416
- j === void 0 ? Object : j,
417
417
  c === void 0 ? Object : c,
418
418
  u === void 0 ? Object : u,
419
419
  i === void 0 ? Object : i,
420
420
  o === void 0 ? Object : o,
421
421
  m === void 0 ? Object : m
422
- ])], M);
422
+ ])], D);
423
423
  //#endregion
424
424
  //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundary-check/boundary-check.module.ts
425
- var N = class {};
426
- N = C([t({
425
+ var O = class BoundaryCheckModule {};
426
+ O = __decorate([t({
427
427
  controllers: [],
428
428
  exports: [
429
- O,
430
- M,
431
- j
429
+ C,
430
+ D,
431
+ E
432
432
  ],
433
433
  imports: [
434
- O,
434
+ C,
435
435
  s,
436
436
  l,
437
437
  r,
438
438
  a,
439
439
  p
440
440
  ],
441
- providers: [M, j]
442
- })], N);
441
+ providers: [D, E]
442
+ })], O);
443
443
  //#endregion
444
444
  //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/run-context/run-context.service.ts
445
- var P = class {
445
+ var k = class RunContextService {
446
446
  configurationService;
447
447
  neighborhoodService;
448
448
  constructor(e, t) {
@@ -495,15 +495,15 @@ var P = class {
495
495
  };
496
496
  }
497
497
  };
498
- P = C([e(), S("design:paramtypes", [_ === void 0 ? Object : _, f === void 0 ? Object : f])], P);
498
+ k = __decorate([e(), __decorateMetadata("design:paramtypes", [_ === void 0 ? Object : _, f === void 0 ? Object : f])], k);
499
499
  //#endregion
500
500
  //#region packages/ic-suite/codependix/codependix-boundaries/src/modules/run-context/run-context.module.ts
501
- var F = class {};
502
- F = C([t({
501
+ var A = class RunContextModule {};
502
+ A = __decorate([t({
503
503
  controllers: [],
504
- exports: [P],
504
+ exports: [k],
505
505
  imports: [g, d],
506
- providers: [P]
507
- })], F);
506
+ providers: [k]
507
+ })], A);
508
508
  //#endregion
509
- export { A as BOUNDARY_LEVEL_ORDER, O as BoundariesModule, E as BoundariesService, N as BoundaryCheckModule, M as BoundaryCheckService, w as BoundaryCyclesService, j as BoundaryGraphService, D as BoundaryReportService, T as BoundarySelectorService, v as CYCLE_SEPARATOR, F as RunContextModule, P as RunContextService, k as WORKSPACE_SCOPE, y as describeCycle, b as describeDisallowedEdge, x as describeForbiddenEdge };
509
+ export { T as BOUNDARY_LEVEL_ORDER, C as BoundariesModule, x as BoundariesService, O as BoundaryCheckModule, D as BoundaryCheckService, y as BoundaryCyclesService, E as BoundaryGraphService, S as BoundaryReportService, b as BoundarySelectorService, v as CYCLE_SEPARATOR, A as RunContextModule, k as RunContextService, w as WORKSPACE_SCOPE, describeCycle, describeDisallowedEdge, describeForbiddenEdge };
package/package.json CHANGED
@@ -4,11 +4,11 @@
4
4
  "url": "https://github.com/organizzolini/codebase/issues"
5
5
  },
6
6
  "dependencies": {
7
- "@codependix/configuration": "0.0.8",
8
- "@codependix/core": "0.0.7",
9
- "@codependix/file-imports": "0.0.7",
10
- "@codependix/nestjs-modules": "0.0.7",
11
- "@codependix/nx-projects": "0.0.7",
7
+ "@codependix/configuration": "0.0.10",
8
+ "@codependix/core": "0.0.9",
9
+ "@codependix/file-imports": "0.0.9",
10
+ "@codependix/nestjs-modules": "0.0.9",
11
+ "@codependix/nx-projects": "0.0.9",
12
12
  "@nestjs/common": "^11.1.21 || ^12.0.1",
13
13
  "reflect-metadata": "^0.2.2"
14
14
  },
@@ -62,5 +62,5 @@
62
62
  "strict": true
63
63
  },
64
64
  "types": "./dist/src/index.d.ts",
65
- "version": "0.0.7"
65
+ "version": "0.0.9"
66
66
  }