@effect-app/infra 1.14.3 → 1.15.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/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 1.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b3d9a3e: update packages
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b3d9a3e]
12
+ - @effect-app/infra-adapters@1.10.0
13
+ - effect-app@1.14.0
14
+ - @effect-app/schema@1.11.0
15
+ - @effect-app/core@1.9.0
16
+
17
+ ## 1.14.4
18
+
19
+ ### Patch Changes
20
+
21
+ - d08286c: update packages
22
+ - Updated dependencies [d08286c]
23
+ - @effect-app/infra-adapters@1.9.4
24
+ - effect-app@1.13.4
25
+ - @effect-app/schema@1.10.1
26
+ - @effect-app/core@1.8.1
27
+
3
28
  ## 1.14.3
4
29
 
5
30
  ### Patch Changes
@@ -61,13 +61,13 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, {
61
61
  locale: S.Literal<["en", "de"]>;
62
62
  }, RequestContext.From, never, {
63
63
  readonly id?: string & S.NonEmptyString255Brand;
64
- readonly rootId: NonEmptyString255;
65
64
  readonly name: string & S.NonEmptyString255Brand;
66
65
  readonly createdAt?: Date;
67
66
  readonly userProfile?: {
68
67
  readonly sub: string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
69
68
  } | undefined;
70
69
  readonly locale: "en" | "de";
70
+ readonly rootId: NonEmptyString255;
71
71
  readonly sourceId?: (string & S.NonEmptyString255Brand) | undefined;
72
72
  readonly parent?: RequestContextParent | undefined;
73
73
  readonly namespace?: (string & S.NonEmptyString255Brand) | undefined;
@@ -8,5 +8,5 @@ import type { HttpServerRequest, HttpServerResponse } from "effect-app/http";
8
8
  import type { RequestHandler } from "./base.js";
9
9
  import type { Middleware } from "./makeRequestHandler.js";
10
10
  export declare const RouteDescriptors: Context.Tag<Ref<RouteDescriptorAny[]>, Ref<RouteDescriptorAny[]>>;
11
- export declare function match<R, M, PathA extends Struct.Fields, CookieA extends Struct.Fields, QueryA extends Struct.Fields, BodyA extends Struct.Fields, HeaderA extends Struct.Fields, ReqA extends PathA & QueryA & BodyA, ResA extends Struct.Fields, ResE, MiddlewareE, PPath extends `/${string}`, R2, PR, RErr, CTX, Context, Config>(requestHandler: RequestHandler<R, M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA, ResA, ResE, PPath, CTX, Context, Config>, errorHandler: <R>(req: HttpServerRequest.HttpServerRequest, res: HttpServerResponse.HttpServerResponse, r2: Effect<HttpServerResponse.HttpServerResponse, ValidationError | MiddlewareE | ResE, R>) => Effect<HttpServerResponse.HttpServerResponse, never, Exclude<RErr | R, HttpServerRequest.HttpServerRequest | HttpRouter.RouteContext | Scope>>, middleware?: Middleware<R, M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA, ResA, ResE, MiddlewareE, PPath, R2, PR, CTX, Context, Config>): Effect.Effect<HttpRouter.Route<import("@effect/platform/HttpServerError").RequestError, import("../../services/RequestContextContainer.js").RequestContextContainer | import("../../services/Store/ContextMapContainer.js").ContextMapContainer | import("@effect-app/infra-adapters/RequestFiberSet").RequestFiberSet | Exclude<R2, HttpRouter.HttpRouter.Provided> | Exclude<RErr, HttpRouter.HttpRouter.Provided> | Exclude<Exclude<Exclude<R, import("effect-app/utils").EnforceNonEmptyRecord<M>>, PR>, HttpRouter.HttpRouter.Provided>>, never, never>;
11
+ export declare function match<R, M, PathA extends Struct.Fields, CookieA extends Struct.Fields, QueryA extends Struct.Fields, BodyA extends Struct.Fields, HeaderA extends Struct.Fields, ReqA extends PathA & QueryA & BodyA, ResA extends Struct.Fields, ResE, MiddlewareE, PPath extends `/${string}`, R2, PR, RErr, CTX, Context, Config>(requestHandler: RequestHandler<R, M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA, ResA, ResE, PPath, CTX, Context, Config>, errorHandler: <R>(req: HttpServerRequest.HttpServerRequest, res: HttpServerResponse.HttpServerResponse, r2: Effect<HttpServerResponse.HttpServerResponse, ValidationError | MiddlewareE | ResE, R>) => Effect<HttpServerResponse.HttpServerResponse, never, Exclude<RErr | R, HttpServerRequest.HttpServerRequest | HttpRouter.RouteContext | Scope>>, middleware?: Middleware<R, M, PathA, CookieA, QueryA, BodyA, HeaderA, ReqA, ResA, ResE, MiddlewareE, PPath, R2, PR, CTX, Context, Config>): Effect.Effect<HttpRouter.Route<import("@effect/platform/HttpServerError").RequestError, import("../../services/RequestContextContainer.js").RequestContextContainer | import("@effect-app/infra-adapters/RequestFiberSet").RequestFiberSet | import("../../services/Store/ContextMapContainer.js").ContextMapContainer | Exclude<R2, HttpRouter.HttpRouter.Provided> | Exclude<RErr, HttpRouter.HttpRouter.Provided> | Exclude<Exclude<Exclude<R, import("effect-app/utils").EnforceNonEmptyRecord<M>>, PR>, HttpRouter.HttpRouter.Provided>>, never, never>;
12
12
  //# sourceMappingURL=match.d.ts.map
@@ -26,7 +26,7 @@ export declare function byIdAndSaveWithPure<T extends {
26
26
  id: unknown;
27
27
  }, Encoded extends {
28
28
  id: string;
29
- }, Evt, ItemType extends string>(self: RepositoryBaseC<T, Encoded, Evt, ItemType>, id: T["id"]): <R, A, E, S2 extends T>(pure: Effect<A, E, FixEnv<R, Evt, T, S2>>) => Effect.Effect<A, import("effect-app/client/errors").OptimisticConcurrencyException | import("effect-app/client/errors").InvalidStateError | NotFoundError<ItemType> | E, Exclude<R, {
29
+ }, Evt, ItemType extends string>(self: RepositoryBaseC<T, Encoded, Evt, ItemType>, id: T["id"]): <R, A, E, S2 extends T>(pure: Effect<A, E, FixEnv<R, Evt, T, S2>>) => Effect.Effect<A, import("effect-app/client/errors").OptimisticConcurrencyException | import("effect-app/client/errors").InvalidStateError | E | NotFoundError<ItemType>, Exclude<R, {
30
30
  env: import("effect-app/Pure").PureEnv<Evt, T, S2>;
31
31
  }>>;
32
32
  /**
@@ -14,8 +14,8 @@ export declare const toFilter: <TFieldValues extends FieldValues, A, R>(q: QAll<
14
14
  key: import("../../filter/types/path/eager.js").Path<TFieldValues>;
15
15
  direction: "ASC" | "DESC";
16
16
  }[]];
17
- ttype: "one" | "many" | "count";
18
- mode: "collect" | "project" | "transform";
17
+ ttype: "many" | "count" | "one";
18
+ mode: "project" | "collect" | "transform";
19
19
  filter: FilterResult[];
20
20
  };
21
21
  //# sourceMappingURL=new-kid-interpreter.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "1.14.3",
3
+ "version": "1.15.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -18,10 +18,10 @@
18
18
  "proper-lockfile": "^4.1.2",
19
19
  "pure-rand": "6.1.0",
20
20
  "redlock": "^4.2.0",
21
- "@effect-app/core": "1.8.0",
22
- "@effect-app/infra-adapters": "1.9.3",
23
- "effect-app": "1.13.3",
24
- "@effect-app/schema": "1.10.0"
21
+ "@effect-app/core": "1.9.0",
22
+ "@effect-app/infra-adapters": "1.10.0",
23
+ "effect-app": "1.14.0",
24
+ "@effect-app/schema": "1.11.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@babel/cli": "^7.25.6",
@@ -42,9 +42,9 @@
42
42
  },
43
43
  "peerDependencies": {
44
44
  "express": "^4.21.0",
45
- "@effect/platform": "^0.65.1",
46
- "@effect/schema": "^0.73.0",
47
- "effect": "^3.8.0"
45
+ "@effect/platform": "^0.65.5",
46
+ "@effect/schema": "^0.73.4",
47
+ "effect": "^3.8.3"
48
48
  },
49
49
  "typesVersions": {
50
50
  "*": {