More work by @alecgibson on the under-development fetchSnapshot
feature:
- #237 - [feature] Expose
snapshotType
(current
orbyVersion
) inreadSnapshots
middleware, based on whetherfetch
orfetchSnapshot
is being called. - #242 - [bugfix] Close milestone database when calling
Backend.close
. - #244 - [refactor] Add a
NoOpMilestoneDB
implementation, used as default MilestoneDB- This introduces a technically backwards-incompatible change for the arguments passed when invoking the callback to
MilestoneDB::saveMilestoneSnapshot
. The callback was invoked withcb(error, wasSaved)
, and it's now invoked withcb(error)
. - This shouldn't affect any existing code, as the previous default implementation did not save milestone snapshots, and there are no actual implementations published.
- This introduces a technically backwards-incompatible change for the arguments passed when invoking the callback to