@streamsy/core 0.8.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/README.md +1 -1
- package/dist/{create-validation-Dwx1OQAN.js → create-validation-DzLxKiux.js} +1 -1
- package/dist/http/index.d.ts +1 -1
- package/dist/http/index.js +2 -2
- package/dist/{http-CwDadGy6.js → http-wFQusDU7.js} +2 -2
- package/dist/{index-DzptR3sL.d.ts → index-B_o4-vX4.d.ts} +21 -109
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/internal/index.d.ts +1 -1
- package/dist/{layer-VOzdazlb.js → layer-CwD1bD5X.js} +2 -2
- package/dist/{layer-B1JEYOZb.js → layer-DZOWeK0B.js} +2 -2
- package/dist/{program-DPq8FYrT.js → program-B6L8HGca.js} +1 -1
- package/dist/projection-marks-Ca0Q-L9H.d.ts +1184 -0
- package/dist/protocol/index.d.ts +2 -2
- package/dist/protocol/index.js +3 -3
- package/dist/remote/index.d.ts +2 -2
- package/dist/remote/index.js +2 -2
- package/dist/{streamsy-BWX6z980.js → streamsy-HKC10a_V.js} +1 -0
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +3 -3
- package/package.json +4 -4
- package/dist/projection-marks-OtKtjFLH.d.ts +0 -3024
package/dist/protocol/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as StreamsReader, S as Reader, T as Writer, w as StreamsWriter } from "../projection-marks-
|
|
2
|
-
import { D as streams_d_exports, P as layer_d_exports, u as RoutesOptions, z as route_d_exports } from "../index-
|
|
1
|
+
import { C as StreamsReader, S as Reader, T as Writer, w as StreamsWriter } from "../projection-marks-Ca0Q-L9H.js";
|
|
2
|
+
import { D as streams_d_exports, P as layer_d_exports, u as RoutesOptions, z as route_d_exports } from "../index-B_o4-vX4.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/protocol/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as StreamsReader, I as StreamsWriter, l as streams_exports, u as route_exports } from "../streamsy-
|
|
2
|
-
import { n as layer_exports } from "../layer-
|
|
3
|
-
import { t as app } from "../program-
|
|
1
|
+
import { F as StreamsReader, I as StreamsWriter, l as streams_exports, u as route_exports } from "../streamsy-HKC10a_V.js";
|
|
2
|
+
import { n as layer_exports } from "../layer-DZOWeK0B.js";
|
|
3
|
+
import { t as app } from "../program-B6L8HGca.js";
|
|
4
4
|
import { HttpRouter } from "effect/http";
|
|
5
5
|
// src/protocol/routes.ts
|
|
6
6
|
/** Raw protocol route for adapters and wire conformance tests. */
|
package/dist/remote/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as StreamsReader, Et as TransportFault, w as StreamsWriter } from "../projection-marks-
|
|
2
|
-
import { f as Any, m as Identifiers, p as Group } from "../index-
|
|
1
|
+
import { C as StreamsReader, Et as TransportFault, w as StreamsWriter } from "../projection-marks-Ca0Q-L9H.js";
|
|
2
|
+
import { f as Any, m as Identifiers, p as Group } from "../index-B_o4-vX4.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
4
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
5
5
|
interface Options {
|
package/dist/remote/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D8jQpDG7.js";
|
|
2
|
-
import { A as StreamBusy, D as OffsetMismatch, E as NotSupported, F as StreamsReader, I as StreamsWriter, K as TransportFault, M as StreamGone, N as StreamNotFound, O as ProducerGap, S as InvalidCreateRequest, T as InvalidReadRequest, _ as CreateResult, b as ForkSourceNotFound, g as AppendResult, j as StreamClosed, k as StaleEpoch, n as bind, rt as StreamId, v as AppendConflict, w as InvalidForkRequest, x as InvalidAppendRequest, y as CreateConflict } from "../streamsy-
|
|
3
|
-
import { n as validateCreateOptions } from "../create-validation-
|
|
2
|
+
import { A as StreamBusy, D as OffsetMismatch, E as NotSupported, F as StreamsReader, I as StreamsWriter, K as TransportFault, M as StreamGone, N as StreamNotFound, O as ProducerGap, S as InvalidCreateRequest, T as InvalidReadRequest, _ as CreateResult, b as ForkSourceNotFound, g as AppendResult, j as StreamClosed, k as StaleEpoch, n as bind, rt as StreamId, v as AppendConflict, w as InvalidForkRequest, x as InvalidAppendRequest, y as CreateConflict } from "../streamsy-HKC10a_V.js";
|
|
3
|
+
import { n as validateCreateOptions } from "../create-validation-DzLxKiux.js";
|
|
4
4
|
import { Array, Context, DateTime, Effect, Fiber, Layer, Option, Schema, Scope, Stream } from "effect";
|
|
5
5
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
6
6
|
// src/remote/request.ts
|
|
@@ -439,6 +439,7 @@ function state$1(template, options) {
|
|
|
439
439
|
return new Route({
|
|
440
440
|
template,
|
|
441
441
|
paramSchema: pathSchema(codecs),
|
|
442
|
+
paramCodecs: codecs,
|
|
442
443
|
match: (id) => Option.isSome(matchTemplate(segments, codecs, id)),
|
|
443
444
|
parse: (id) => matchTemplate(segments, codecs, id),
|
|
444
445
|
collections: options.collections,
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as StreamsReader, dt as ChangeSnapshot, u as Storage, w as StreamsWriter, x as StorageCapabilities, yt as StreamId } from "../projection-marks-
|
|
2
|
-
import { M as MemoryOptions, N as ProtocolOptions } from "../index-
|
|
1
|
+
import { C as StreamsReader, dt as ChangeSnapshot, u as Storage, w as StreamsWriter, x as StorageCapabilities, yt as StreamId } from "../projection-marks-Ca0Q-L9H.js";
|
|
2
|
+
import { M as MemoryOptions, N as ProtocolOptions } from "../index-B_o4-vX4.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,6 +1,6 @@
|
|
|
1
|
-
import { L as Storage, Q as ProducerId, R as ZERO_OFFSET, V as next, W as StorageFault, rt as StreamId } from "../streamsy-
|
|
2
|
-
import { n as CommitBoundary, t as layer } from "../layer-
|
|
3
|
-
import { a as MutationRejected, t as layer$1 } from "../layer-
|
|
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-CwD1bD5X.js";
|
|
3
|
+
import { a as MutationRejected, t as layer$1 } from "../layer-DZOWeK0B.js";
|
|
4
4
|
import { i as OwnerRecords, n as CommitHooks, t as ProjectionMarks } from "../projection-marks-RqurLPLA.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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamsy/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Effect-first Durable Streams protocol, storage contract, memory layer and toolkit.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"test:unit": "bun --bun vitest run --dir test"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@effect/vitest": "4.
|
|
59
|
+
"@effect/vitest": "4.1.2",
|
|
60
60
|
"@types/bun": "^1.4.3",
|
|
61
|
-
"effect": "4.
|
|
61
|
+
"effect": "4.1.2",
|
|
62
62
|
"typescript": "^7.0.2",
|
|
63
63
|
"vitest": "5.0.5"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"effect": "^4.
|
|
66
|
+
"effect": "^4.1.2",
|
|
67
67
|
"vitest": "^5.0.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|