Skip to content

Commit

Permalink
16.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed Dec 1, 2024
1 parent 2d2b0e5 commit da9b8d5
Show file tree
Hide file tree
Showing 13 changed files with 4,628 additions and 4,289 deletions.
2 changes: 1 addition & 1 deletion doc/assets/d2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions doc/real-world-samples/dependency-cruiser-archi-graph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
986 changes: 498 additions & 488 deletions doc/real-world-samples/dependency-cruiser-dir-graph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,796 changes: 1,409 additions & 1,387 deletions doc/real-world-samples/dependency-cruiser-without-node_modules.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions docs/dependency-cruiser-archi-graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,12 @@
<!-- src/cli&#45;&gt;src/extract -->
<g id="edge8" class="edge">
<title>src/cli&#45;&gt;src/extract</title>
<path fill="none" stroke="#007700" stroke-width="2" stroke-opacity="0.466667" d="M165,-200.04C165,-186.56 165,-163.25 165,-163.25 165,-163.25 242,-163.25 242,-163.25 242,-163.25 242,-104.52 242,-104.52"/>
<polygon fill="#007700" fill-opacity="0.466667" stroke="#007700" stroke-width="2" stroke-opacity="0.466667" points="244.1,-104.52 242,-98.52 239.9,-104.52 244.1,-104.52"/>
<g id="a_edge8"><a xlink:title="cli&#45;to&#45;main&#45;only">
<path fill="none" stroke="red" stroke-width="2" d="M165,-200.04C165,-186.56 165,-163.25 165,-163.25 165,-163.25 242,-163.25 242,-163.25 242,-163.25 242,-104.52 242,-104.52"/>
<polygon fill="red" stroke="red" stroke-width="2" points="244.1,-104.52 242,-98.52 239.9,-104.52 244.1,-104.52"/>
</a>
</g>
<text text-anchor="middle" x="182.97" y="-164.45" font-family="Helvetica,sans-Serif" font-size="9.00" fill="red">cli&#45;to&#45;main&#45;only</text>
</g>
<!-- src/utl -->
<g id="node5" class="node">
Expand Down
2,796 changes: 1,409 additions & 1,387 deletions docs/dependency-cruiser-dependency-graph.html

Large diffs are not rendered by default.

986 changes: 498 additions & 488 deletions docs/dependency-cruiser-dir-graph.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dependency-cruiser",
"version": "16.6.0",
"version": "16.7.0",
"description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
"keywords": [
"static analysis",
Expand Down
2 changes: 1 addition & 1 deletion src/meta.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions tools/walk.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/* eslint-disable no-magic-numbers */
/* eslint-disable no-console */

/* eslint-disable max-depth */
/* eslint-disable security/detect-object-injection */

import { createSourceFile, SyntaxKind } from "typescript";

function keyIsBoring(pKey) {
return [
"parent",
"pos",
"end",
"flags",
"emitNode",
"modifierFlagsCache",
"transformFlags",
"id",
"flowNode",
"symbol",
"original",
"__proto__",
"constructor",
].includes(pKey);
}

export function walkForPrinting(pObject) {
if (Array.isArray(pObject)) {
return pObject.map((pValue) => walkForPrinting(pValue));
}
if (typeof pObject === "object") {
const lNewObject = {};
for (const lKey in pObject) {
if (!keyIsBoring(lKey) && pObject[lKey]) {
if (lKey === "kind") {
lNewObject.kind = SyntaxKind[pObject.kind];
} else {
lNewObject[lKey] = walkForPrinting(pObject[lKey]);
}
}
}
return lNewObject;
}
return pObject;
}

const lAST = createSourceFile(
"xx",
"/** @type {import('./hello.mjs')|import('./goodbye.mjs')} */",
false,
);

console.log(JSON.stringify(walkForPrinting(lAST), null, 2));
637 changes: 372 additions & 265 deletions types/overview.html

Large diffs are not rendered by default.

637 changes: 372 additions & 265 deletions types/overview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit da9b8d5

Please sign in to comment.