@crvouga/mockingbird-service-redis 2.14.1 → 2.16.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.
package/dist/index.js CHANGED
@@ -8,10 +8,10 @@ import {
8
8
  createRedis,
9
9
  manualClock,
10
10
  wallClock
11
- } from "./chunk-FDTSPQXG.js";
11
+ } from "./chunk-63SLX3Q5.js";
12
12
  import {
13
13
  encodeReply
14
- } from "./chunk-G64ZBC4S.js";
14
+ } from "./chunk-WXBI6ZKL.js";
15
15
  export {
16
16
  Redis,
17
17
  RedisClient,
package/dist/server.d.ts CHANGED
@@ -32,6 +32,11 @@ type Clock = {
32
32
  state(): ClockState;
33
33
  };
34
34
 
35
+ type UpstreamState = {
36
+ mode: "emulated" | "forward";
37
+ baseUrl: string;
38
+ };
39
+
35
40
  /**
36
41
  * A deliberate failure injected in front of an operation.
37
42
  *
@@ -189,6 +194,7 @@ declare const SNAPSHOT_FORMAT = "mockingbird.snapshot/v1";
189
194
  * `records` are required, so a hand-written seed file is a valid snapshot.
190
195
  */
191
196
  type SnapshotDocument = {
197
+ upstream?: UpstreamState;
192
198
  format: typeof SNAPSHOT_FORMAT;
193
199
  /** The service that wrote it. A snapshot is rejected by any other service. */
194
200
  service?: string;
package/dist/server.js CHANGED
@@ -2,12 +2,12 @@ import {
2
2
  DEFAULT_PORT,
3
3
  serve,
4
4
  serveTarget
5
- } from "./chunk-YXDZMAWF.js";
6
- import "./chunk-FDTSPQXG.js";
5
+ } from "./chunk-RX6VEQSN.js";
6
+ import "./chunk-63SLX3Q5.js";
7
7
  import {
8
8
  createRespServer
9
- } from "./chunk-PVKTPCGH.js";
10
- import "./chunk-G64ZBC4S.js";
9
+ } from "./chunk-UUFJK44W.js";
10
+ import "./chunk-WXBI6ZKL.js";
11
11
  export {
12
12
  DEFAULT_PORT,
13
13
  createRespServer,
package/dist/transport.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createRespServer
3
- } from "./chunk-PVKTPCGH.js";
4
- import "./chunk-G64ZBC4S.js";
3
+ } from "./chunk-UUFJK44W.js";
4
+ import "./chunk-WXBI6ZKL.js";
5
5
  export {
6
6
  createRespServer
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-redis",
3
- "version": "2.14.1",
3
+ "version": "2.16.0",
4
4
  "description": "In-process Redis RESP server for tests: strings, hashes, lists, sets, sorted sets, streams, transactions, pub/sub, and a Lua subset, with an injected clock. Not an HTTP emulator.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -91,6 +91,9 @@
91
91
  "pack:check": "bun ../../../scripts/pack-check.ts",
92
92
  "parity:bullmq": "bun scripts/bullmq-parity.ts"
93
93
  },
94
+ "dependencies": {
95
+ "@crvouga/mockingbird-runtime": "0.0.1"
96
+ },
94
97
  "devDependencies": {
95
98
  "@crvouga/mockingbird-adapter-node": "0.0.0-development",
96
99
  "@crvouga/mockingbird-service": "0.0.0-development",