Skip to content

dependabit / monitor/src / ChangeDetection

Interface: ChangeDetection

Defined in: packages/monitor/src/types.ts:49

The result of comparing two DependencySnapshot objects.

Remarks

When hasChanged is true, changes lists the fields that differed (e.g. 'version', 'content'). The strings are checker-specific and should not be parsed programmatically.

Pitfalls

  • hasChanged: true does not guarantee a real change; ETag drift in dynamic HTTP responses can trigger false positives for URL-based checkers. See URLContentChecker pitfalls.

Properties

PropertyTypeDefined in
changesstring[]packages/monitor/src/types.ts:51
diff?unknownpackages/monitor/src/types.ts:54
hasChangedbooleanpackages/monitor/src/types.ts:50
newVersion?stringpackages/monitor/src/types.ts:53
oldVersion?stringpackages/monitor/src/types.ts:52
severity?"breaking" | "major" | "minor"packages/monitor/src/types.ts:55

Released under the MIT License.