separate tag-upgrade warnings from NSI suggestions (#10801)

This commit is contained in:
Kyℓe Hensel
2025-03-05 22:42:40 +11:00
committed by GitHub
parent 7beace6698
commit a41e8c48d2
4 changed files with 207 additions and 77 deletions
+6 -1
View File
@@ -28,8 +28,13 @@ export function utilTotalExtent(array, graph) {
return extent;
}
/**
* @typedef {{ type: '-' | '+'; key: string; oldVal: string; newVal: string; display: string; }} TagDiff
* @param {Tags} oldTags
* @param {Tags} newTags
*/
export function utilTagDiff(oldTags, newTags) {
/** @type {TagDiff[]} */
var tagDiff = [];
var keys = utilArrayUnion(Object.keys(oldTags), Object.keys(newTags)).sort();
keys.forEach(function(k) {