From 7942586dc6d01daa75417260e89e996e3f3ffab6 Mon Sep 17 00:00:00 2001 From: Mark Hazleton Date: Sat, 21 Nov 2026 19:30:22 -0600 Subject: [PATCH 1/2] chore(deps): upgrade markdown-it to 15.0.3 markdown-it is a dev dependency used only by scripts/generate-changelog-page.js. v15's breaking change (linkify-it 6) does not apply because the generator runs with linkify disabled. Regenerating docs/changelog.html produces byte-identical output. 15.x also carries the quadratic-complexity parser fixes from 15.0.1-15.0.3. Co-Authored-By: Claude Opus 5.5 --- package-lock.json | 131 ++++++++++++++++++++++++++++++++++++++-------- package.json | 2 +- 2 files changed, 109 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index 60ea14a..d3e3156 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "eslint": "^10.15.0", "husky": "^9.1.7", "jest": "^30.5.2", - "markdown-it": "^14.3.3", + "markdown-it": "^15.0.3", "npm-check-updates": "^23.1.1", "prettier": "^3.10.1", "publint": "^0.3.25", @@ -4084,13 +4084,13 @@ "license": "MIT" }, "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz", + "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==", "dev": true, "license": "BSD-2-Clause", "engines": { - "node": ">=0.12" + "node": ">=20.19.0" }, "funding": { "url": "https://github.com/fb55/entities?sponsor=1" @@ -6179,9 +6179,9 @@ "license": "MIT" }, "node_modules/linkify-it": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz", - "integrity": "sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-6.1.0.tgz", + "integrity": "sha512-wJ/TwpSDTLepCrQoYWYIExIKg5Zchex2Nn5yk2mFnB+6PtdkHtyLx742md9csRjjOnGkKIS/RrbY7l8D6gT9Vw==", "dev": true, "funding": [ { @@ -6195,7 +6195,7 @@ ], "license": "MIT", "dependencies": { - "uc.micro": "^2.0.0" + "uc.micro": "^3.0.0" } }, "node_modules/locate-path": { @@ -6285,9 +6285,9 @@ "license": "MIT" }, "node_modules/markdown-it": { - "version": "14.3.3", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.3.tgz", - "integrity": "sha512-L//tDAkjTjJCU6pBUSBTgs3Kg4InVaZuUZog/b6V12UKhcDQ7S78877ibbCanRExwPuYP1CZD7Gd2dxSy1GXRg==", + "version": "15.0.3", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-15.0.3.tgz", + "integrity": "sha512-+Az7Ojz3iRGu8KYMvJ6xVhvrxP3eE+vEtJX75Ow88XBpcQNV/0lGX5ZynIIBftREo4DC2jsveAMDaeltmm8QvQ==", "dev": true, "funding": [ { @@ -6301,21 +6301,38 @@ ], "license": "MIT", "dependencies": { - "argparse": "^2.0.1", - "entities": "^4.5.0", - "linkify-it": "^5.0.2", - "mdurl": "^2.0.0", + "argparse": "^3.0.3", + "entities": "^8.1.0", + "linkify-it": "^6.1.0", + "mdurl": "^2.1.0", "punycode.js": "^2.3.1", - "uc.micro": "^2.1.0" + "uc.micro": "^3.0.0" }, "bin": { "markdown-it": "bin/markdown-it.mjs" } }, + "node_modules/markdown-it/node_modules/argparse": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-3.0.4.tgz", + "integrity": "sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "PSF-2.0" + }, "node_modules/mdurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.1.0.tgz", + "integrity": "sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==", "dev": true, "license": "MIT" }, @@ -7723,6 +7740,74 @@ "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x || 5.9.x || 6.0.x" } }, + "node_modules/typedoc/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/typedoc/node_modules/linkify-it": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz", + "integrity": "sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/markdown-it" + } + ], + "license": "MIT", + "dependencies": { + "uc.micro": "^2.0.0" + } + }, + "node_modules/typedoc/node_modules/markdown-it": { + "version": "14.3.3", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.3.tgz", + "integrity": "sha512-L//tDAkjTjJCU6pBUSBTgs3Kg4InVaZuUZog/b6V12UKhcDQ7S78877ibbCanRExwPuYP1CZD7Gd2dxSy1GXRg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/markdown-it" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1", + "entities": "^4.5.0", + "linkify-it": "^5.0.2", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" + } + }, + "node_modules/typedoc/node_modules/uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "dev": true, + "license": "MIT" + }, "node_modules/typescript": { "name": "@typescript/typescript6", "version": "6.0.2", @@ -7774,9 +7859,9 @@ } }, "node_modules/uc.micro": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", - "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-3.0.0.tgz", + "integrity": "sha512-U3PppEkleoTnIfi8BozMx3yju3qc/L6SwqWo2Sw+54PX+PX0q9I+r1Um5HCmqD7n9VDX5/v3vQH/AjA6deDdtw==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index aca06b5..e7c2a89 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ "eslint": "^10.15.0", "husky": "^9.1.7", "jest": "^30.5.2", - "markdown-it": "^14.3.3", + "markdown-it": "^15.0.3", "npm-check-updates": "^23.1.1", "prettier": "^3.10.1", "publint": "^0.3.25", From e5241e62f792e8e5fedc59c3311d0cb4fb10fe23 Mon Sep 17 00:00:00 2001 From: Mark Hazleton Date: Sat, 21 Nov 2026 19:31:08 -0600 Subject: [PATCH 2/2] docs(readme): document only the options and config keys that take effect --heavy, --no-cache and --redact-emails are accepted but have no effect, and the sample .git-spark.json listed excludePaths, excludeAuthors, thresholds, weights and performance keys that are never applied. Mark them as accepted-but-not-applied, show a config sample of live keys, point email redaction at output.redactEmails (verified to redact), add the missing --open and --teamwork options, and note that --serve binds to 127.0.0.1. Co-Authored-By: Claude Opus 5.5 --- README.md | 76 +++++++++++++++++++------------------------------------ 1 file changed, 26 insertions(+), 50 deletions(-) diff --git a/README.md b/README.md index f7e8646..3f4a641 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ Enterprise-focused, accessible, and secure analytics dashboard: - **Open Graph Preview Image** – Auto‑generated SVG summary for social sharing & link unfurling - **Accessibility Enhancements** – ARIA live region announcements for sorting; keyboard focus management; reduced‑motion compliance - **Security‑First Delivery** – Strict CSP with SHA‑256 hashed inline script & style blocks (no `unsafe-inline`), native SVG charts (no external chart library), fully self-contained reports -- **Email Redaction Option** – Controlled via CLI flag (`--redact-emails`) for privacy sensitive audits +- **Email Redaction Option** – Controlled via `output.redactEmails` in `.git-spark.json` for privacy sensitive audits (see [Configuration](#configuration)) - **Transparent Metrics Documentation** – Every team metric includes comprehensive limitations and data source explanations > **Analytical Integrity**: All analytics data are embedded (no external calls) ensuring the report is a self-contained artifact suitable for air‑gapped review workflows. Every metric includes honest explanations of what Git data can and cannot reveal. @@ -160,16 +160,19 @@ Options: -c, --config configuration file -b, --branch analyze specific branch -a, --author filter by author - -p, --path filter by file path pattern - --heavy enable expensive analyses + -p, --path filter by file path pattern (directory or Git glob, e.g. "src/**") + --open open HTML report in browser after generation --log-level logging verbosity (error|warn|info|debug|verbose) - --no-cache disable caching --timezone IANA timezone for daily trends (e.g., America/Chicago) - --redact-emails redact email addresses in reports --exclude-extensions comma-separated list of file extensions to exclude (e.g., .md,.txt) + --teamwork focus on team success - removes individual contributor sections -h, --help display help for command ``` +> **Accepted but not yet applied:** `--heavy`, `--no-cache`, and `--redact-emails` are accepted +> for compatibility but currently have no effect. To redact emails, set `output.redactEmails` in +> `.git-spark.json` instead. + #### `git-spark analyze` Detailed analysis with additional options: @@ -242,9 +245,10 @@ Options: --open open HTML report in browser after generation --serve start HTTP server to serve the report --port port for HTTP server (default: 3000) - --heavy enable expensive analyses for detailed insights ``` +`--serve` listens on `127.0.0.1` only, so the report is not reachable from other machines. + Examples: ```bash @@ -257,8 +261,8 @@ git-spark html --days=30 --open # Generate and serve on local web server git-spark html --days=60 --serve --port=8080 -# Heavy analysis with detailed insights -git-spark html --days=90 --heavy --output=./detailed-reports +# Write a 90-day report to a custom directory +git-spark html --days=90 --output=./detailed-reports ``` #### `git-spark validate` @@ -316,8 +320,8 @@ git-spark --days=60 --format=html --output=./reports # Generate JSON with complete daily trends data for external processing git-spark --days=30 --format=json --output=./data -# Heavy analysis with all features including detailed daily patterns -git-spark --days=30 --heavy --format=html +# Daily trends bucketed in a specific timezone +git-spark --days=30 --timezone=America/Chicago --format=html ``` #### File Exclusion Examples @@ -346,58 +350,29 @@ git-spark init Alternatively, create the file manually. If `--config` is not provided, git-spark will look for `.git-spark.json` in the repository root. -> **Note**: Configuration file support is available for basic analysis options. The configuration system supports custom thresholds, weights, and exclusion patterns for fine-tuned analysis. +These are the keys git-spark currently applies. A command-line option always wins over the file. ```json { "version": "1.0", "analysis": { - "excludePaths": [ - "node_modules/**", - "dist/**", - "build/**", - ".git/**" - ], - "excludeExtensions": [ - ".md", - ".txt" - ], - "timezone": "America/Chicago", - "excludeAuthors": [ - "dependabot[bot]", - "github-actions[bot]" - ], - "thresholds": { - "largeCommitLines": 500, - "smallCommitLines": 50, - "staleBranchDays": 30, - "largeFileKB": 300, - "hotspotAuthorThreshold": 3 - }, - "weights": { - "risk": { - "churn": 0.35, - "recency": 0.25, - "ownership": 0.20, - "entropy": 0.10, - "coupling": 0.10 - } - } + "excludeExtensions": [".md", ".txt"], + "timezone": "America/Chicago" }, "output": { "defaultFormat": "html", "outputDir": "./reports", "redactEmails": false - }, - "performance": { - "maxBuffer": 200, - "enableCaching": true, - "cacheDir": ".git-spark-cache", - "chunkSize": 1000 } } ``` +> **Accepted but not yet applied:** files written by `git-spark init` may also contain +> `analysis.excludePaths`, `analysis.excludeAuthors`, `analysis.includeAuthors`, +> `analysis.thresholds`, `analysis.weights`, and a `performance` block. They are read without +> error but do not change the report yet. To narrow the files analyzed today, use `--path` or +> `excludeExtensions`. + ### API Reference #### `GitSpark` Class @@ -428,9 +403,10 @@ interface GitSparkOptions { output?: string; // Output directory config?: string; // Config file path timezone?: string; // IANA timezone for daily trends - heavy?: boolean; // Enable expensive analyses + heavy?: boolean; // Accepted; currently no effect logLevel?: LogLevel; // Log level - noCache?: boolean; // Disable caching + noCache?: boolean; // Accepted; currently no effect + redactEmails?: boolean; // Redact author emails in reports } ```