@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 +20 -0
- package/README.md +8 -8
- package/dist/src/index.js +51 -51
- package/package.json +6 -6
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
|

|
|
309
|
-

|
|
310
310
|

|
|
311
311
|

|
|
312
312
|
|
|
313
313
|
### Measured Targets
|
|
314
314
|
|
|
315
|
-

|
|
316
316
|
|
|
317
317
|
### TypeScript
|
|
318
318
|
|
|
@@ -494,16 +494,16 @@ graph LR
|
|
|
494
494
|
### Markdown
|
|
495
495
|
|
|
496
496
|

|
|
497
|
-

|
|
498
498
|

|
|
499
|
-

|
|
500
|
+

|
|
501
501
|

|
|
502
502
|

|
|
503
503
|

|
|
504
|
-

|
|
505
|
+

|
|
506
|
+

|
|
507
507
|

|
|
508
508
|

|
|
509
509
|

|
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
|
|
8
|
-
var v = " → ",
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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" ?
|
|
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:
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
209
|
-
|
|
208
|
+
var C = class BoundariesModule {};
|
|
209
|
+
C = __decorate([t({
|
|
210
210
|
controllers: [],
|
|
211
211
|
exports: [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
x,
|
|
213
|
+
y,
|
|
214
|
+
S,
|
|
215
|
+
b
|
|
216
216
|
],
|
|
217
217
|
imports: [],
|
|
218
218
|
providers: [
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
219
|
+
x,
|
|
220
|
+
y,
|
|
221
|
+
S,
|
|
222
|
+
b
|
|
223
223
|
]
|
|
224
|
-
})],
|
|
224
|
+
})], C);
|
|
225
225
|
//#endregion
|
|
226
226
|
//#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundary-check/boundary-check.constants.ts
|
|
227
|
-
var
|
|
227
|
+
var w = "workspace", T = [
|
|
228
228
|
"nxProjects",
|
|
229
229
|
"nestjsModules",
|
|
230
230
|
"typescript",
|
|
231
231
|
"python"
|
|
232
|
-
],
|
|
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
|
-
|
|
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
|
|
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:
|
|
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(
|
|
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
|
|
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
|
-
|
|
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
|
-
])],
|
|
422
|
+
])], D);
|
|
423
423
|
//#endregion
|
|
424
424
|
//#region packages/ic-suite/codependix/codependix-boundaries/src/modules/boundary-check/boundary-check.module.ts
|
|
425
|
-
var
|
|
426
|
-
|
|
425
|
+
var O = class BoundaryCheckModule {};
|
|
426
|
+
O = __decorate([t({
|
|
427
427
|
controllers: [],
|
|
428
428
|
exports: [
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
429
|
+
C,
|
|
430
|
+
D,
|
|
431
|
+
E
|
|
432
432
|
],
|
|
433
433
|
imports: [
|
|
434
|
-
|
|
434
|
+
C,
|
|
435
435
|
s,
|
|
436
436
|
l,
|
|
437
437
|
r,
|
|
438
438
|
a,
|
|
439
439
|
p
|
|
440
440
|
],
|
|
441
|
-
providers: [
|
|
442
|
-
})],
|
|
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
|
|
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
|
-
|
|
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
|
|
502
|
-
|
|
501
|
+
var A = class RunContextModule {};
|
|
502
|
+
A = __decorate([t({
|
|
503
503
|
controllers: [],
|
|
504
|
-
exports: [
|
|
504
|
+
exports: [k],
|
|
505
505
|
imports: [g, d],
|
|
506
|
-
providers: [
|
|
507
|
-
})],
|
|
506
|
+
providers: [k]
|
|
507
|
+
})], A);
|
|
508
508
|
//#endregion
|
|
509
|
-
export {
|
|
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
|
-
"@codependix/core": "0.0.
|
|
9
|
-
"@codependix/file-imports": "0.0.
|
|
10
|
-
"@codependix/nestjs-modules": "0.0.
|
|
11
|
-
"@codependix/nx-projects": "0.0.
|
|
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.
|
|
65
|
+
"version": "0.0.9"
|
|
66
66
|
}
|