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
stateHashdifferently (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
| Property | Type | Defined in |
|---|---|---|
fetchedAt | Date | packages/monitor/src/types.ts:30 |
metadata? | Record<string, unknown> | packages/monitor/src/types.ts:31 |
stateHash | string | packages/monitor/src/types.ts:29 |
version? | string | packages/monitor/src/types.ts:28 |