docs(severity): 8.4 — @deprecated annotation on riskScoreV1

This commit is contained in:
Kjell Tore Guttormsen 2026-04-30 16:54:37 +02:00
commit 2b7329151c

View file

@ -60,6 +60,7 @@ export function riskScore(counts) {
* Legacy v1 risk score formula kept for diff/comparison only.
* Not exported in production paths; reference for CI re-calibration.
*
* @deprecated Since v7.0.0. Use riskScore() instead. Kept for diff/comparison only not used in production paths.
* @param {{ critical: number, high: number, medium: number, low: number, info: number }} counts
* @returns {number} 0-100 capped score (sum-and-cap model)
*/