@crvouga/mockingbird-service-postgres 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog — @crvouga/mockingbird-service-postgres
2
2
 
3
- ## 1.5.0 (2026-10-01)
3
+ ## 1.5.1 (2026-10-01)
4
+
5
+ ### Fixes and improvements
6
+
7
+ - freeze clock before setting time ([a054a1d](https://github.com/crvouga/mockingbird/commit/a054a1defad62539d719b1d31c15107afea623bd))
8
+
9
+ ## 1.5.0 (2026-09-30)
4
10
 
5
11
  ### Features
6
12
 
package/dist/admin.js CHANGED
@@ -1567,6 +1567,8 @@ var createControlPlane = (context) => {
1567
1567
  return adminError(400, "expected a JSON object");
1568
1568
  if (body.reset === true)
1569
1569
  context.clock.reset();
1570
+ if (body.freeze === true)
1571
+ context.clock.freeze();
1570
1572
  if (body.set !== void 0) {
1571
1573
  const instant = parseInstant(body.set);
1572
1574
  if (instant === void 0)
@@ -1579,8 +1581,6 @@ var createControlPlane = (context) => {
1579
1581
  return adminError(400, 'advance: expected ms or "15m"-style');
1580
1582
  context.clock.advance(delta);
1581
1583
  }
1582
- if (body.freeze === true)
1583
- context.clock.freeze();
1584
1584
  if (body.freeze === false)
1585
1585
  context.clock.unfreeze();
1586
1586
  return json(200, context.clock.state());