Skip to content

dependabit / monitor/src / DependencySnapshot

Interface: DependencySnapshot

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

A point-in-time snapshot of a dependency's state.

Remarks

stateHash is a hex-encoded SHA-256 (or equivalent) of the dependency's content at the time of the fetch. It is used for equality comparison between snapshots — a hash change signals a potential update.

Pitfalls

  • Different checker implementations may compute stateHash differently (e.g., hashing the full HTTP body vs. only the version string). Snapshots produced by different checkers for the same URL are not interchangeable and should not be compared directly.

Properties

PropertyTypeDefined in
fetchedAtDatepackages/monitor/src/types.ts:30
metadata?Record<string, unknown>packages/monitor/src/types.ts:31
stateHashstringpackages/monitor/src/types.ts:29
version?stringpackages/monitor/src/types.ts:28

Released under the MIT License.