foldkit-remote 0.9.0 → 0.10.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.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -4,8 +4,8 @@ import { AnyEntity, AnyQuery, Dependencies, InputExpr, Query as Query$1 } from "
|
|
|
4
4
|
import { Command } from "foldkit/command";
|
|
5
5
|
import { EntryWithoutKeepAlive } from "foldkit/subscription";
|
|
6
6
|
import { ActiveSurface, Contract, Invalid, Metadata, ModelRef, Projection, Surface, Wiring } from "foldkit-surface";
|
|
7
|
-
import { Rpc, RpcGroup } from "effect/
|
|
8
|
-
import { KeyValueStore } from "effect/
|
|
7
|
+
import { Rpc, RpcGroup } from "effect/rpc";
|
|
8
|
+
import { KeyValueStore } from "effect/persistence";
|
|
9
9
|
import * as Update from "foldkit/update";
|
|
10
10
|
//#region ../metadata/src/index.d.ts
|
|
11
11
|
/** Marks a `Metadata` value. Its entries are private to this module. */
|
|
@@ -1086,7 +1086,7 @@ export declare const Live: Rpc.Rpc<"FoldkitRemoteLive", Schema.Struct<{
|
|
|
1086
1086
|
readonly requirements: Schema.$Array<Schema.Codec<Requirement, Requirement, never, never>>;
|
|
1087
1087
|
/** Resume cursor; events at or before it are duplicates. */
|
|
1088
1088
|
readonly after: Schema.Number;
|
|
1089
|
-
}>, import("effect/
|
|
1089
|
+
}>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.Struct<{
|
|
1090
1090
|
readonly _tag: Schema.Literal<"EntityPatched">;
|
|
1091
1091
|
readonly cursor: Schema.Number;
|
|
1092
1092
|
readonly entity: Schema.String;
|
|
@@ -1301,7 +1301,7 @@ export declare const RemoteRpc: RpcGroup.RpcGroup<Rpc.Rpc<"FoldkitRemoteRead", S
|
|
|
1301
1301
|
readonly requirements: Schema.$Array<Schema.Codec<Requirement, Requirement, never, never>>;
|
|
1302
1302
|
/** Resume cursor; events at or before it are duplicates. */
|
|
1303
1303
|
readonly after: Schema.Number;
|
|
1304
|
-
}>, import("effect/
|
|
1304
|
+
}>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.Struct<{
|
|
1305
1305
|
readonly _tag: Schema.Literal<"EntityPatched">;
|
|
1306
1306
|
readonly cursor: Schema.Number;
|
|
1307
1307
|
readonly entity: Schema.String;
|
package/dist/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import { mapMessage } from "foldkit/command";
|
|
|
5
5
|
import { defineMessageUnion } from "foldkit/message";
|
|
6
6
|
import * as Subscription from "foldkit/subscription";
|
|
7
7
|
import { Metadata } from "foldkit-surface";
|
|
8
|
-
import { Rpc, RpcGroup } from "effect/
|
|
9
|
-
import { KeyValueStore } from "effect/
|
|
8
|
+
import { Rpc, RpcGroup } from "effect/rpc";
|
|
9
|
+
import { KeyValueStore } from "effect/persistence";
|
|
10
10
|
//#region src/requirement.ts
|
|
11
11
|
/**
|
|
12
12
|
* What a Remote Projection needs from the server: entity slices and query
|
|
@@ -643,7 +643,7 @@ const Query = {
|
|
|
643
643
|
//#endregion
|
|
644
644
|
//#region src/wire.ts
|
|
645
645
|
/**
|
|
646
|
-
* The Remote wire: Effect RPC semantics over `effect/
|
|
646
|
+
* The Remote wire: Effect RPC semantics over `effect/rpc`. Remote owns
|
|
647
647
|
* the message shapes; Effect owns the transport. `Make`ing reads batch, mutations
|
|
648
648
|
* preserve order, and live data is a stream.
|
|
649
649
|
*/
|