@crvouga/mockingbird-runtime 0.1.0 → 0.2.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/dist/adapter-node.d.ts +8 -0
- package/dist/adapter-node.js +6 -3
- package/dist/adapter-node.js.map +2 -2
- package/dist/{chunk-J4M2I37S.js → chunk-4BRVNPWR.js} +97 -16
- package/dist/{chunk-J4M2I37S.js.map → chunk-4BRVNPWR.js.map} +4 -4
- package/dist/{chunk-XNS34BPF.js → chunk-LL6NKAJO.js} +8 -3
- package/dist/chunk-LL6NKAJO.js.map +7 -0
- package/dist/{chunk-SNMV36AZ.js → chunk-RO7FHXO3.js} +3 -3
- package/dist/http-provider.d.ts +2 -0
- package/dist/http-provider.js +2 -2
- package/dist/mqtt-broker/node.d.ts +2 -0
- package/dist/mqtt-broker/node.js +3 -3
- package/dist/mqtt-broker.d.ts +2 -0
- package/dist/mqtt-broker.js +3 -3
- package/dist/service/admin.js +1 -1
- package/dist/service.d.ts +16 -4
- package/dist/service.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-XNS34BPF.js.map +0 -7
- /package/dist/{chunk-SNMV36AZ.js.map → chunk-RO7FHXO3.js.map} +0 -0
package/dist/adapter-node.d.ts
CHANGED
|
@@ -463,6 +463,11 @@ type MockControls = NamespaceControls & {
|
|
|
463
463
|
credentials?: Record<string, string>;
|
|
464
464
|
/** Overrides for named namespaces. A key given here replaces the shared value. */
|
|
465
465
|
namespaces?: Record<string, NamespaceControls>;
|
|
466
|
+
/**
|
|
467
|
+
* Record a time-travel checkpoint after every accepted write. Default true. The runtime's own
|
|
468
|
+
* `checkpointMutations` option wins over this.
|
|
469
|
+
*/
|
|
470
|
+
checkpointMutations?: boolean;
|
|
466
471
|
};
|
|
467
472
|
/** A latency rule in milliseconds. */
|
|
468
473
|
type LatencyRule = {
|
|
@@ -2122,6 +2127,9 @@ declare const fleetConfigSchema: {
|
|
|
2122
2127
|
credentials: {
|
|
2123
2128
|
type: string;
|
|
2124
2129
|
};
|
|
2130
|
+
checkpointMutations: {
|
|
2131
|
+
type: string;
|
|
2132
|
+
};
|
|
2125
2133
|
namespaces: {
|
|
2126
2134
|
type: string;
|
|
2127
2135
|
};
|
package/dist/adapter-node.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
normalizeIdBase,
|
|
3
3
|
ownedTransport,
|
|
4
4
|
signV4
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4BRVNPWR.js";
|
|
6
6
|
import "./chunk-2KDYLZXC.js";
|
|
7
7
|
import {
|
|
8
8
|
createClock,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
parseFaultHeader,
|
|
13
13
|
resolveAdminPrefix,
|
|
14
14
|
restoreClock
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LL6NKAJO.js";
|
|
16
16
|
import "./chunk-2Y25NPCV.js";
|
|
17
17
|
import "./chunk-EQLY2YOA.js";
|
|
18
18
|
import "./chunk-HU6IOAFC.js";
|
|
@@ -3542,6 +3542,9 @@ var fleet_config_schema_default = {
|
|
|
3542
3542
|
credentials: {
|
|
3543
3543
|
type: "object"
|
|
3544
3544
|
},
|
|
3545
|
+
checkpointMutations: {
|
|
3546
|
+
type: "boolean"
|
|
3547
|
+
},
|
|
3545
3548
|
namespaces: {
|
|
3546
3549
|
type: "object"
|
|
3547
3550
|
}
|
|
@@ -3747,7 +3750,7 @@ async function preflightFleet(config, options) {
|
|
|
3747
3750
|
break;
|
|
3748
3751
|
}
|
|
3749
3752
|
}
|
|
3750
|
-
targets.set(name, { ...target, packageVersion: packageVersion ?? "0.1
|
|
3753
|
+
targets.set(name, { ...target, packageVersion: packageVersion ?? "0.2.1" });
|
|
3751
3754
|
} catch (error) {
|
|
3752
3755
|
throw new Error(`service ${name}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
3753
3756
|
}
|