Skip to content

v0.7.0

Choose a tag to compare

@monneyboi monneyboi released this 20 Oct 12:15
· 11 commits to main since this release
d46ca3c

Breaking changes:

  • Timeout model reworked. Capture budgets moved to Timeouts on PravdaConfig, expressed in bare float seconds. They bound only the target-facing capture: expiry is recorded evidence — a persisted failed attempt, or a dropped artifact. Browser machinery deadlines moved to Liveness; their expiry raises InfrastructureError and persists nothing.
  • Pravda owns the browser connection lifecycle. Connection setup and recording-context close are Pravda's own infrastructure: their failures raise InfrastructureError and persist nothing, like storage and database failures. A plain async_sessionmaker is now accepted — expire_on_commit=False is no longer required.
  • New standalone_html artifact. Each snapshot derives a self-contained HTML file from its HAR with unmhtml (new dependency). This adds a standalone_html column to pravda.db.Base and the field on the public Snapshot. Regenerate your migrations from the metadata to add the column.
  • Pravda.snapshots() removed. Query history with your own selects against SnapshotRecord on pravda.db.Base.

Also new: rendered HTML capture waits for the DOM to settle (mutation-quiet) before reading, so hydration scripts land in the captured HTML.