@streamsy/core 0.12.0 → 0.13.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/http/index.d.ts +1 -1
- package/dist/{index-ooCOjS7N.d.ts → index-vnyfaf-e.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.js +2 -2
- package/dist/{layer-Bf40J6so.js → layer-D4RAoIfM.js} +2 -1
- package/dist/{marks-B-fXqEYG.js → marks-YTDGyaMN.js} +3 -1
- package/dist/{projection-marks-CzlDS-kj.d.ts → projection-marks-c7-wvpSn.d.ts} +8 -1
- package/dist/protocol/index.d.ts +2 -2
- package/dist/remote/index.d.ts +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +2 -2
- package/package.json +1 -1
package/dist/http/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as Access, S as read, T as routes, _ as ShutdownSignalService, a as LIVE_SOCKET_PROTOCOL, b as ReadOptions, c as LiveControlFrame, d as controlFrame, f as isLiveUpgrade, g as ShutdownSignal, h as upgradeRequired, i as LIVE_PONG, l as LiveOpenFrame, m as openFrame, n as HttpLiveMode, nt as HttpOptions, o as LiveBatch, p as nextCursor, r as LIVE_PING, rt as app, s as LiveCloseCode, tt as streamPath, u as closeCodeForStatus, v as layerShutdownSignal, w as RoutesOptions, x as checkReadOptions, y as securityHeaders } from "../index-
|
|
1
|
+
import { C as Access, S as read, T as routes, _ as ShutdownSignalService, a as LIVE_SOCKET_PROTOCOL, b as ReadOptions, c as LiveControlFrame, d as controlFrame, f as isLiveUpgrade, g as ShutdownSignal, h as upgradeRequired, i as LIVE_PONG, l as LiveOpenFrame, m as openFrame, n as HttpLiveMode, nt as HttpOptions, o as LiveBatch, p as nextCursor, r as LIVE_PING, rt as app, s as LiveCloseCode, tt as streamPath, u as closeCodeForStatus, v as layerShutdownSignal, w as RoutesOptions, x as checkReadOptions, y as securityHeaders } from "../index-vnyfaf-e.js";
|
|
2
2
|
export { type Access, type HttpLiveMode, type HttpOptions, LIVE_PING, LIVE_PONG, LIVE_SOCKET_PROTOCOL, type LiveBatch, LiveCloseCode, type LiveControlFrame, type LiveOpenFrame, type ReadOptions, type RoutesOptions, ShutdownSignal, type ShutdownSignalService, app, checkReadOptions, closeCodeForStatus, controlFrame, isLiveUpgrade, layerShutdownSignal, nextCursor, openFrame, read, routes, securityHeaders, streamPath, upgradeRequired };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as CreateResult, D as StreamsWriter, Dt as StorageFault, E as StreamsReader, Et as EncodeFault, I as AppendConflict, J as InvalidReadRequest, N as ReadNextResult, O as Writer, Ot as StreamsFault, R as AppendErrorFor, St as StreamId, T as Reader, Tt as DecodeFault, U as HeadError, V as CreateError, X as OffsetMismatch, Y as NotSupported, at as StreamGone, ct as AppendCallOptions, d as OwnerRecords, dt as ReadNextOptions, et as ReadNextError, ft as ReadOptions$1, i as ProjectionMarks, it as StreamClosed, j as HeadResult, k as AppendResult, kt as TransportFault, ot as StreamNotFound, p as Storage, pt as CreateOptions, rt as StreamBusy, s as CommitHooks, tt as RemoveError, ut as ProducerOptions } from "./projection-marks-c7-wvpSn.js";
|
|
2
2
|
import { Array, Context, Data, Duration, Effect, Function, Layer, Option, Schedule, Schema, Stream } from "effect";
|
|
3
3
|
import { HttpRouter, HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
4
4
|
import { SqlError } from "effect/sql";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { A as Batch, B as RemoveFailure, F as Decision, G as streams_d_exports, H as streamsy_d_exports, I as Folded, L as FollowFailure, M as CreateFailure, N as DecideSpec, P as Decided, Q as compare, R as HeadFailure, U as producer_d_exports, W as durable_state_d_exports, X as CommitBoundaryApi, Y as CommitBoundary, Z as ZERO_OFFSET, et as address_d_exports, j as Collected, k as AppendFailure, t as index_d_exports, z as ReadFailure } from "./index-
|
|
1
|
+
import { $ as ReadError, A as CreateResult, At as isRetryableFault, B as CreateConflictReason, C as ProducerPrecondition, Ct as StreamLifecycle, Dt as StorageFault, Et as EncodeFault, F as AppendBaseError, G as InvalidCreateRequest, H as ForkSourceNotFound, I as AppendConflict, J as InvalidReadRequest, K as InvalidEpochSeq, L as AppendError, M as ReadMessage, N as ReadNextResult, Ot as StreamsFault, P as ReadResult, Q as ProtocolError, R as AppendErrorFor, S as Operations, St as StreamId, Tt as DecodeFault, U as HeadError, V as CreateError, W as InvalidAppendRequest, X as OffsetMismatch, Y as NotSupported, Z as ProducerGap, _ as MutationRejected, _t as ProducerId, at as StreamGone, b as OperationResult, bt as StoredMessage, ct as AppendCallOptions, dt as ReadNextOptions, et as ReadNextError, ft as ReadOptions, g as MutationApplied, gt as Offset, h as Mutation, ht as MessageWindow, it as StreamClosed, j as HeadResult, jt as isStreamsFault, k as AppendResult, kt as TransportFault, lt as AppendOptions, m as StorageShape, mt as ChangeSnapshot, nt as StaleEpoch, ot as StreamNotFound, p as Storage, pt as CreateOptions, q as InvalidForkRequest, rt as StreamBusy, st as isProtocolError, tt as RemoveError, ut as ProducerOptions, v as Mutations, vt as ProducerState, w as StorageCapabilities, wt as StreamRecord, x as OperationResults, xt as StreamConfig, y as Operation, yt as RecordPatch, z as CreateConflict } from "./projection-marks-c7-wvpSn.js";
|
|
2
|
+
import { A as Batch, B as RemoveFailure, F as Decision, G as streams_d_exports, H as streamsy_d_exports, I as Folded, L as FollowFailure, M as CreateFailure, N as DecideSpec, P as Decided, Q as compare, R as HeadFailure, U as producer_d_exports, W as durable_state_d_exports, X as CommitBoundaryApi, Y as CommitBoundary, Z as ZERO_OFFSET, et as address_d_exports, j as Collected, k as AppendFailure, t as index_d_exports, z as ReadFailure } from "./index-vnyfaf-e.js";
|
|
3
3
|
export { AppendBaseError, type AppendCallOptions, AppendConflict, AppendError, AppendErrorFor, type AppendFailure, type AppendOptions, AppendResult, type Batch, ChangeSnapshot, type Collected, CommitBoundary, type CommitBoundaryApi, CreateConflict, CreateConflictReason, CreateError, type CreateFailure, type CreateOptions, CreateResult, type DecideSpec, type Decided, type Decision, DecodeFault, durable_state_d_exports as DurableState, EncodeFault, type Folded, type FollowFailure, ForkSourceNotFound, HeadError, type HeadFailure, type HeadResult, index_d_exports as Http, InvalidAppendRequest, InvalidCreateRequest, InvalidEpochSeq, InvalidForkRequest, InvalidReadRequest, streams_d_exports as MemoryStorage, MessageWindow, Mutation, MutationApplied, MutationRejected, Mutations, NotSupported, Offset, OffsetMismatch, Operation, OperationResult, OperationResults, Operations, producer_d_exports as Producer, ProducerGap, ProducerId, type ProducerOptions, ProducerPrecondition, ProducerState, ProtocolError, ReadError, type ReadFailure, type ReadMessage, ReadNextError, type ReadNextOptions, type ReadNextResult, type ReadOptions, type ReadResult, RecordPatch, RemoveError, type RemoveFailure, StaleEpoch, Storage, StorageCapabilities, StorageFault, type StorageShape, StoredMessage, address_d_exports as StreamAddress, StreamBusy, StreamClosed, StreamConfig, StreamGone, StreamId, StreamLifecycle, StreamNotFound, StreamRecord, StreamsFault, streamsy_d_exports as Streamsy, TransportFault, ZERO_OFFSET, compare, isProtocolError, isRetryableFault, isStreamsFault };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
|
|
2
2
|
import { $ as ProducerState, A as StreamBusy, C as InvalidEpochSeq, D as OffsetMismatch, E as NotSupported, G as StreamsFault, H as DecodeFault, J as isStreamsFault, K as TransportFault, L as Storage, M as StreamGone, N as StreamNotFound, O as ProducerGap, P as isProtocolError, Q as ProducerId, R as ZERO_OFFSET, S as InvalidCreateRequest, T as InvalidReadRequest, U as EncodeFault, W as StorageFault, X as MessageWindow, Y as ChangeSnapshot, Z as Offset, _ as CreateResult, a as custom, at as StreamRecord, b as ForkSourceNotFound, c as state, d as address_exports, et as RecordPatch, f as isControl, g as AppendResult, h as stateControl, it as StreamLifecycle, j as StreamClosed, k as StaleEpoch, m as stateChange, n as bind, nt as StreamConfig, o as group, p as isUpsert, q as isRetryableFault, r as bytes, rt as StreamId, s as json, t as Wildcard, tt as StoredMessage, v as AppendConflict, w as InvalidForkRequest, x as InvalidAppendRequest, y as CreateConflict, z as compare } from "./streamsy-HKC10a_V.js";
|
|
3
|
-
import { n as CommitBoundary, t as layer$1 } from "./layer-
|
|
3
|
+
import { n as CommitBoundary, t as layer$1 } from "./layer-D4RAoIfM.js";
|
|
4
4
|
import { a as MutationRejected, c as OperationResult, d as ProducerPrecondition, i as MutationApplied, l as OperationResults, o as Mutations, r as Mutation, s as Operation, t as layer$2, u as Operations } from "./layer-DjKTdIY5.js";
|
|
5
5
|
import { t as http_exports } from "./http-YoA8cUTN.js";
|
|
6
6
|
import { Array, Data, Effect, Layer, Option, Predicate, Record, Schema, Stream } from "effect";
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as ReadResult, a as ProjectionMarksApi, c as CommitHooksApi, d as OwnerRecords, f as OwnerRecordsApi, i as ProjectionMarks, l as commitHookRegistry, n as PendingMark, o as CommitHook, r as ProjectionMarkSummary, s as CommitHooks, t as MarkFailure, u as OWNER_RECORDS_LIST_UNSUPPORTED } from "../projection-marks-c7-wvpSn.js";
|
|
2
2
|
import { Context, Effect, Option } from "effect";
|
|
3
3
|
/** Private bridge: a stream guard dies with this sentinel; the atomic runner translates it. */
|
|
4
4
|
declare const ForeignOwnerType: unique symbol;
|
|
@@ -57,4 +57,4 @@ export declare function compileSegments<const Template extends string>(template:
|
|
|
57
57
|
export declare const memoryProjectionMarks: () => ProjectionMarksApi;
|
|
58
58
|
export declare const attachOffsets: <A extends object>(result: A, offsets: ReadonlyArray<string>) => A;
|
|
59
59
|
export declare const offsetsOf: (result: Pick<ReadResult, "messages">) => ReadonlyArray<string> | undefined;
|
|
60
|
-
export { type CommitHook, CommitHooks, type CommitHooksApi, type MarkFailure, OwnerRecords, type OwnerRecordsApi, type PendingMark, type ProjectionMarkSummary, ProjectionMarks, type ProjectionMarksApi, commitHookRegistry };
|
|
60
|
+
export { type CommitHook, CommitHooks, type CommitHooksApi, type MarkFailure, OWNER_RECORDS_LIST_UNSUPPORTED, OwnerRecords, type OwnerRecordsApi, type PendingMark, type ProjectionMarkSummary, ProjectionMarks, type ProjectionMarksApi, commitHookRegistry };
|
package/dist/internal/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as attachOwner, c as isForeignOwner, i as CurrentOwner, l as ownerOf, t as compileSegments } from "../route-internal-DNL0oGTN.js";
|
|
2
2
|
import { n as offsetsOf, t as attachOffsets } from "../read-offsets-CQ4VkAs8.js";
|
|
3
|
-
import { _ as commitHookRegistry, g as CommitHooks, h as ProjectionMarks, s as memoryProjectionMarks, v as OwnerRecords } from "../marks-
|
|
3
|
+
import { _ as commitHookRegistry, g as CommitHooks, h as ProjectionMarks, s as memoryProjectionMarks, v as OWNER_RECORDS_LIST_UNSUPPORTED, y as OwnerRecords } from "../marks-YTDGyaMN.js";
|
|
4
4
|
import { Array, Effect } from "effect";
|
|
5
5
|
// src/internal/limits.ts
|
|
6
6
|
/**
|
|
@@ -26,4 +26,4 @@ const fitKey = (key, limit, readable = key) => {
|
|
|
26
26
|
const prefix = Array.join(Array.take(codePoints(readable), limit - DIGEST_LENGTH), "");
|
|
27
27
|
return Effect.map(sha256Hex(key), (digest) => `${prefix}#${digest}`);
|
|
28
28
|
};
|
|
29
|
-
export { CommitHooks, CurrentOwner, MAX_PRODUCER_ID_LENGTH, OwnerRecords, ProjectionMarks, attachOffsets, attachOwner, commitHookRegistry, compileSegments, fitKey, isForeignOwner, memoryProjectionMarks, offsetsOf, ownerOf };
|
|
29
|
+
export { CommitHooks, CurrentOwner, MAX_PRODUCER_ID_LENGTH, OWNER_RECORDS_LIST_UNSUPPORTED, OwnerRecords, ProjectionMarks, attachOffsets, attachOwner, commitHookRegistry, compileSegments, fitKey, isForeignOwner, memoryProjectionMarks, offsetsOf, ownerOf };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { L as Storage, R as ZERO_OFFSET } from "./streamsy-HKC10a_V.js";
|
|
2
2
|
import { a as MutationRejected, l as OperationResults, o as Mutations, u as Operations } from "./layer-DjKTdIY5.js";
|
|
3
3
|
import { a as attachOwner, l as ownerOf } from "./route-internal-DNL0oGTN.js";
|
|
4
|
-
import { _ as commitHookRegistry, a as failed, c as nextDue, d as resume, f as retry, g as CommitHooks, h as ProjectionMarks, i as fail, l as read, m as summary, n as copyMarks, o as mark, p as sleep, r as due, t as clear, u as remove,
|
|
4
|
+
import { _ as commitHookRegistry, a as failed, c as nextDue, d as resume, f as retry, g as CommitHooks, h as ProjectionMarks, i as fail, l as read, m as summary, n as copyMarks, o as mark, p as sleep, r as due, t as clear, u as remove, y as OwnerRecords } from "./marks-YTDGyaMN.js";
|
|
5
5
|
import { Array, Context, Effect, Layer, Option, Order, Predicate, PubSub, Queue, Schedule, Semaphore, Stream } from "effect";
|
|
6
6
|
// src/storage/commit-boundary.ts
|
|
7
7
|
/** The transaction of the storage owner. Every Streamsy storage host provides it. */
|
|
@@ -186,6 +186,7 @@ const makeBoundary = (committed, publish) => Effect.gen(function* () {
|
|
|
186
186
|
const boundary = CommitBoundary.of({ withTransaction });
|
|
187
187
|
const records = OwnerRecords.of({
|
|
188
188
|
read: (key) => Effect.map(current, (draft) => Option.fromUndefinedOr((Option.isSome(draft) ? draft.value.records : committedRecords).get(key))),
|
|
189
|
+
list: (prefix) => Effect.map(current, (draft) => Array.filter(Array.fromIterable(Option.isSome(draft) ? draft.value.records : committedRecords), ([key]) => key.startsWith(prefix))),
|
|
189
190
|
remove: (key) => withTransaction(Effect.map(current, (draft) => {
|
|
190
191
|
if (Option.isNone(draft)) throw new Error("Memory record delete requires an owner");
|
|
191
192
|
draft.value.records.delete(key);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Array, Context, Effect, Option, Order } from "effect";
|
|
2
2
|
// src/internal/owner-records.ts
|
|
3
|
+
/** The `StorageFault.operation` of an owner store that cannot list its records. */
|
|
4
|
+
const OWNER_RECORDS_LIST_UNSUPPORTED = "records.list.unsupported";
|
|
3
5
|
var OwnerRecords = class extends Context.Service()("@streamsy/core/internal/OwnerRecords") {};
|
|
4
6
|
// src/internal/commit-hooks.ts
|
|
5
7
|
var CommitHooks = class extends Context.Service()("@streamsy/core/internal/CommitHooks") {};
|
|
@@ -192,4 +194,4 @@ const memoryProjectionMarks = () => {
|
|
|
192
194
|
failed: (projection, limit) => Effect.sync(() => failed(table, projection, limit))
|
|
193
195
|
};
|
|
194
196
|
};
|
|
195
|
-
export { commitHookRegistry as _, failed as a, nextDue as c, resume as d, retry as f, CommitHooks as g, ProjectionMarks as h, fail as i, read as l, summary as m, copyMarks as n, mark as o, sleep as p, due as r, memoryProjectionMarks as s, clear as t, remove as u,
|
|
197
|
+
export { commitHookRegistry as _, failed as a, nextDue as c, resume as d, retry as f, CommitHooks as g, ProjectionMarks as h, fail as i, read as l, summary as m, copyMarks as n, mark as o, sleep as p, due as r, memoryProjectionMarks as s, clear as t, remove as u, OWNER_RECORDS_LIST_UNSUPPORTED as v, OwnerRecords as y };
|
|
@@ -1108,9 +1108,16 @@ declare class Storage extends Storage_base {}
|
|
|
1108
1108
|
*/
|
|
1109
1109
|
interface OwnerRecordsApi {
|
|
1110
1110
|
readonly read: (key: string) => Effect.Effect<Option.Option<string>, StorageFault>;
|
|
1111
|
+
/**
|
|
1112
|
+
* A snapshot of the owner's encoded entries whose keys start with this exact prefix.
|
|
1113
|
+
* A store that cannot list fails with operation `OWNER_RECORDS_LIST_UNSUPPORTED`.
|
|
1114
|
+
*/
|
|
1115
|
+
readonly list: (prefix: string) => Effect.Effect<ReadonlyArray<readonly [key: string, encoded: string]>, StorageFault>;
|
|
1111
1116
|
readonly write: (key: string, encoded: string) => Effect.Effect<void, StorageFault>;
|
|
1112
1117
|
readonly remove: (key: string) => Effect.Effect<void, StorageFault>;
|
|
1113
1118
|
}
|
|
1119
|
+
/** The `StorageFault.operation` of an owner store that cannot list its records. */
|
|
1120
|
+
declare const OWNER_RECORDS_LIST_UNSUPPORTED = "records.list.unsupported";
|
|
1114
1121
|
declare const OwnerRecords_base: Context.ServiceClass<OwnerRecords, "@streamsy/core/internal/OwnerRecords", OwnerRecordsApi>;
|
|
1115
1122
|
declare class OwnerRecords extends OwnerRecords_base {}
|
|
1116
1123
|
/**
|
|
@@ -1218,4 +1225,4 @@ interface ProjectionMarksApi {
|
|
|
1218
1225
|
}
|
|
1219
1226
|
declare const ProjectionMarks_base: Context.ServiceClass<ProjectionMarks, "@streamsy/core/internal/ProjectionMarks", ProjectionMarksApi>;
|
|
1220
1227
|
declare class ProjectionMarks extends ProjectionMarks_base {}
|
|
1221
|
-
export {
|
|
1228
|
+
export { ReadError as $, CreateResult as A, isRetryableFault as At, CreateConflictReason as B, ProducerPrecondition as C, StreamLifecycle as Ct, StreamsWriter as D, StorageFault as Dt, StreamsReader as E, EncodeFault as Et, AppendBaseError as F, InvalidCreateRequest as G, ForkSourceNotFound as H, AppendConflict as I, InvalidReadRequest as J, InvalidEpochSeq as K, AppendError as L, ReadMessage as M, ReadNextResult as N, Writer as O, StreamsFault as Ot, ReadResult as P, ProtocolError as Q, AppendErrorFor as R, Operations as S, StreamId as St, Reader as T, DecodeFault as Tt, HeadError as U, CreateError as V, InvalidAppendRequest as W, OffsetMismatch as X, NotSupported as Y, ProducerGap as Z, MutationRejected as _, ProducerId as _t, ProjectionMarksApi as a, StreamGone as at, OperationResult as b, StoredMessage as bt, CommitHooksApi as c, AppendCallOptions as ct, OwnerRecords as d, ReadNextOptions as dt, ReadNextError as et, OwnerRecordsApi as f, ReadOptions as ft, MutationApplied as g, Offset as gt, Mutation as h, MessageWindow as ht, ProjectionMarks as i, StreamClosed as it, HeadResult as j, isStreamsFault as jt, AppendResult as k, TransportFault as kt, commitHookRegistry as l, AppendOptions as lt, StorageShape as m, ChangeSnapshot as mt, PendingMark as n, StaleEpoch as nt, CommitHook as o, StreamNotFound as ot, Storage as p, CreateOptions as pt, InvalidForkRequest as q, ProjectionMarkSummary as r, StreamBusy as rt, CommitHooks as s, isProtocolError as st, MarkFailure as t, RemoveError as tt, OWNER_RECORDS_LIST_UNSUPPORTED as u, ProducerOptions as ut, Mutations as v, ProducerState as vt, StorageCapabilities as w, StreamRecord as wt, OperationResults as x, StreamConfig as xt, Operation as y, RecordPatch as yt, CreateConflict as z };
|
package/dist/protocol/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import { $ as route_d_exports, J as layer_d_exports, V as streams_d_exports, w as RoutesOptions } from "../index-
|
|
1
|
+
import { D as StreamsWriter, E as StreamsReader, O as Writer, T as Reader } from "../projection-marks-c7-wvpSn.js";
|
|
2
|
+
import { $ as route_d_exports, J as layer_d_exports, V as streams_d_exports, w as RoutesOptions } from "../index-vnyfaf-e.js";
|
|
3
3
|
import { HttpRouter } from "effect/http";
|
|
4
4
|
/** Raw protocol route for adapters and wire conformance tests. */
|
|
5
5
|
export declare const routes: (options?: Omit<RoutesOptions, "access">) => import("effect/Layer").Layer<never, never, HttpRouter.HttpRouter | HttpRouter.Request<"Requires", StreamsReader> | HttpRouter.Request<"Requires", StreamsWriter>>;
|
package/dist/remote/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as Group, E as Any, O as Identifiers } from "../index-
|
|
1
|
+
import { D as StreamsWriter, E as StreamsReader, kt as TransportFault } from "../projection-marks-c7-wvpSn.js";
|
|
2
|
+
import { D as Group, E as Any, O as Identifiers } from "../index-vnyfaf-e.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
4
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
5
5
|
interface Options {
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { K as MemoryOptions, q as ProtocolOptions } from "../index-
|
|
1
|
+
import { D as StreamsWriter, E as StreamsReader, St as StreamId, mt as ChangeSnapshot, p as Storage, w as StorageCapabilities } from "../projection-marks-c7-wvpSn.js";
|
|
2
|
+
import { K as MemoryOptions, q as ProtocolOptions } from "../index-vnyfaf-e.js";
|
|
3
3
|
import { Context, Effect, Layer } from "effect";
|
|
4
4
|
interface StorageContractOptions {
|
|
5
5
|
readonly name: string;
|
package/dist/testing/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { L as Storage, Q as ProducerId, R as ZERO_OFFSET, V as next, W as StorageFault, rt as StreamId } from "../streamsy-HKC10a_V.js";
|
|
2
|
-
import { n as CommitBoundary, t as layer } from "../layer-
|
|
2
|
+
import { n as CommitBoundary, t as layer } from "../layer-D4RAoIfM.js";
|
|
3
3
|
import { a as MutationRejected, t as layer$1 } from "../layer-DjKTdIY5.js";
|
|
4
|
-
import { g as CommitHooks, h as ProjectionMarks,
|
|
4
|
+
import { g as CommitHooks, h as ProjectionMarks, y as OwnerRecords } from "../marks-YTDGyaMN.js";
|
|
5
5
|
import { Array, Cause, Context, Deferred, Effect, Exit, Fiber, Layer, Match, Option, Order, Predicate, PubSub, Queue, Record, Ref, Scope, Stream } from "effect";
|
|
6
6
|
import { SqlError } from "effect/sql";
|
|
7
7
|
import { describe, expect, it } from "vitest";
|