diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c4bcab..53a6660 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ ## Version History +### v6.5.0 + +- :rocket: Add ability to ignore `dest` section in diff + ### v6.4.0 - :rocket: Add ability to ignore `flow` section in diff diff --git a/lib/cot.ts b/lib/cot.ts index b419af2..db637b4 100644 --- a/lib/cot.ts +++ b/lib/cot.ts @@ -68,6 +68,7 @@ export default class CoT { opts = { diffMetadata: false, diffStaleStartTime: false, + diffDest: false, diffFlow: false } ): boolean { @@ -77,6 +78,11 @@ export default class CoT { if (!a.properties) a.properties = {}; if (!b.properties) b.properties = {}; + if (!opts.diffDest) { + delete a.properties.dest; + delete b.properties.dest; + } + if (!opts.diffMetadata) { delete a.properties.metadata; delete b.properties.metadata;