@crvouga/mockingbird-runtime 0.0.1 → 0.1.0

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_NAMESPACE
3
- } from "./chunk-G62YDIIJ.js";
3
+ } from "./chunk-J4M2I37S.js";
4
4
  import {
5
5
  fromBase64,
6
6
  matchNamespacePath
@@ -775,4 +775,4 @@ export {
775
775
  connectNamespace,
776
776
  brokerAdminRoutes
777
777
  };
778
- //# sourceMappingURL=chunk-ANCCZFF2.js.map
778
+ //# sourceMappingURL=chunk-SNMV36AZ.js.map
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  Collection,
20
20
  bootSqlite
21
- } from "./chunk-G62YDIIJ.js";
21
+ } from "./chunk-J4M2I37S.js";
22
22
  import {
23
23
  clearNamespace
24
24
  } from "./chunk-2KDYLZXC.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  MAX_VARIABLE_BYTE_INTEGER,
3
3
  MQTT_WEBSOCKET_PATH
4
- } from "../chunk-ANCCZFF2.js";
5
- import "../chunk-G62YDIIJ.js";
4
+ } from "../chunk-SNMV36AZ.js";
5
+ import "../chunk-J4M2I37S.js";
6
6
  import "../chunk-2KDYLZXC.js";
7
7
  import "../chunk-XNS34BPF.js";
8
8
  import "../chunk-2Y25NPCV.js";
@@ -14,11 +14,11 @@ import {
14
14
  observeClock,
15
15
  takeConnackFault,
16
16
  webSocketNamespace
17
- } from "./chunk-ANCCZFF2.js";
17
+ } from "./chunk-SNMV36AZ.js";
18
18
  import {
19
19
  Collection,
20
20
  IdSequence
21
- } from "./chunk-G62YDIIJ.js";
21
+ } from "./chunk-J4M2I37S.js";
22
22
  import "./chunk-2KDYLZXC.js";
23
23
  import {
24
24
  fromBase64,
package/dist/service.d.ts CHANGED
@@ -2395,6 +2395,13 @@ type RuntimeOptions<T extends ServiceInstance> = {
2395
2395
  webhooks?: WebhookHub;
2396
2396
  /** Retained time-travel checkpoints per namespace. Default 1,000. */
2397
2397
  maxCheckpoints?: number;
2398
+ /**
2399
+ * Record a time-travel checkpoint after every accepted mutation and stamp its id in
2400
+ * `x-mockingbird-checkpoint`. Default true. Each checkpoint reads the whole namespace, so a
2401
+ * long-running mock that never travels back can turn this off to keep a write's cost its own;
2402
+ * `checkpoint`, `snapshot`, `branch` and `checkout` still capture when called.
2403
+ */
2404
+ checkpointMutations?: boolean;
2398
2405
  /** Injectable process IO used for observability and delays; logical service time uses `clock`. */
2399
2406
  io?: Partial<RuntimeIO>;
2400
2407
  /**
package/dist/service.js CHANGED
@@ -65,7 +65,7 @@ import {
65
65
  verifyOperations,
66
66
  webhookAdminRoutes,
67
67
  withNamespaceRollback
68
- } from "./chunk-G62YDIIJ.js";
68
+ } from "./chunk-J4M2I37S.js";
69
69
  import "./chunk-2KDYLZXC.js";
70
70
  import {
71
71
  ADMIN_CONTROL_PAGES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-runtime",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "description": "The shared Mockingbird runtime every emulator service depends on: router, admin API and page, snapshots, faults and clock, installed once however many emulators an application uses.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -114,7 +114,7 @@
114
114
  "pack:check": "bun ../../scripts/pack-check.ts"
115
115
  },
116
116
  "dependencies": {
117
- "@crvouga/mockingbird-service-sqlite": "3.5.0",
117
+ "@crvouga/mockingbird-service-sqlite": "3.5.1",
118
118
  "@noble/hashes": "2.4.0",
119
119
  "buffer": "6.0.3",
120
120
  "graphql": "17.0.0",