@effect-app/infra 3.0.8 → 3.0.9

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,13 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 3.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - d42afe6: cleanup
8
+ - Updated dependencies [d42afe6]
9
+ - effect-app@3.0.7
10
+
3
11
  ## 3.0.8
4
12
 
5
13
  ### Patch Changes
@@ -1,6 +1,5 @@
1
1
  import { type RpcMiddleware } from "@effect/rpc";
2
2
  import { type Context, type Layer } from "effect-app";
3
- import { type MiddlewareMakerId } from "effect-app/rpc/MiddlewareMaker";
4
3
  import { type GetContextConfig, type RpcContextMap } from "effect-app/rpc/RpcContextMap";
5
4
  export type RouterMiddleware<Self, Id extends string, RequestContextMap extends Record<string, RpcContextMap.Any>, // what services will the middlware provide dynamically to the next, or raise errors.
6
5
  MakeMiddlewareE, // what the middleware construction can fail with
@@ -12,7 +11,7 @@ _ContextProviderR> = RpcMiddleware.TagClass<Self, Id, {
12
11
  provides: Context.Tag<ContextProviderA, ContextProviderA>;
13
12
  failure: ContextProviderE;
14
13
  }> & {
15
- readonly Default: Layer.Layer<MiddlewareMakerId, MakeMiddlewareE, MakeMiddlewareR>;
14
+ readonly Default: Layer.Layer<Self, MakeMiddlewareE, MakeMiddlewareR>;
16
15
  readonly requestContext: Context.Tag<"RequestContextConfig", GetContextConfig<RequestContextMap>>;
17
16
  readonly requestContextMap: RequestContextMap;
18
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RouterMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/api/routing/middleware/RouterMiddleware.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,K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AS,MAAM,EACjB,iBAAiB,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,qFAAqF;AAClJ,eAAe,EAAE,iDAAiD;AAClE,eAAe,EAAE,gDAAgD;AACjE,gBAAgB,EAAE,qCAAqC;AACvD,gBAAgB,EAAE,0CAA0C;AAC5D,iBAAiB,IAEf,aAAa,CAAC,QAAQ,CACtB,IAAI,EACJ,EAAE,EACF;IACE,IAAI,EAAE,IAAI,CAAA;IAEV,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAA;IAEzD,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CACF,GACC;IACA,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,CAAC,CAAA;IACrE,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjG,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAA;CAC9C,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -13,7 +13,7 @@
13
13
  "proper-lockfile": "^4.1.2",
14
14
  "pure-rand": "7.0.1",
15
15
  "query-string": "^9.2.2",
16
- "effect-app": "3.0.6"
16
+ "effect-app": "3.0.7"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@azure/cosmos": "^4.5.0",
@@ -3,7 +3,6 @@
3
3
  /* eslint-disable @typescript-eslint/no-explicit-any */
4
4
  import { type RpcMiddleware } from "@effect/rpc"
5
5
  import { type Context, type Layer } from "effect-app"
6
- import { type MiddlewareMakerId } from "effect-app/rpc/MiddlewareMaker"
7
6
  import { type GetContextConfig, type RpcContextMap } from "effect-app/rpc/RpcContextMap"
8
7
  // module:
9
8
  //
@@ -30,7 +29,7 @@ export type RouterMiddleware<
30
29
  }
31
30
  >
32
31
  & {
33
- readonly Default: Layer.Layer<MiddlewareMakerId, MakeMiddlewareE, MakeMiddlewareR>
32
+ readonly Default: Layer.Layer<Self, MakeMiddlewareE, MakeMiddlewareR>
34
33
  readonly requestContext: Context.Tag<"RequestContextConfig", GetContextConfig<RequestContextMap>>
35
34
  readonly requestContextMap: RequestContextMap
36
35
  }