@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.
@@ -1,5 +1,5 @@
1
- import { C as StreamsReader, S as Reader, T as Writer, w as StreamsWriter } from "../projection-marks-OtKtjFLH.js";
2
- import { D as streams_d_exports, P as layer_d_exports, u as RoutesOptions, z as route_d_exports } from "../index-DzptR3sL.js";
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>>;
@@ -1,6 +1,6 @@
1
- import { F as StreamsReader, I as StreamsWriter, l as streams_exports, u as route_exports } from "../streamsy-BWX6z980.js";
2
- import { n as layer_exports } from "../layer-B1JEYOZb.js";
3
- import { t as app } from "../program-DPq8FYrT.js";
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. */
@@ -1,5 +1,5 @@
1
- import { C as StreamsReader, Et as TransportFault, w as StreamsWriter } from "../projection-marks-OtKtjFLH.js";
2
- import { f as Any, m as Identifiers, p as Group } from "../index-DzptR3sL.js";
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 {
@@ -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-BWX6z980.js";
3
- import { n as validateCreateOptions } from "../create-validation-Dwx1OQAN.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-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,
@@ -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-OtKtjFLH.js";
2
- import { M as MemoryOptions, N as ProtocolOptions } from "../index-DzptR3sL.js";
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;
@@ -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-BWX6z980.js";
2
- import { n as CommitBoundary, t as layer } from "../layer-VOzdazlb.js";
3
- import { a as MutationRejected, t as layer$1 } from "../layer-B1JEYOZb.js";
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.8.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.0.5",
59
+ "@effect/vitest": "4.1.2",
60
60
  "@types/bun": "^1.4.3",
61
- "effect": "4.0.5",
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.0.5",
66
+ "effect": "^4.1.2",
67
67
  "vitest": "^5.0.0"
68
68
  },
69
69
  "peerDependenciesMeta": {