@effect-app/infra 4.0.0-beta.330 → 4.0.0-beta.332
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 +14 -0
- package/dist/ClusterCosmos.d.ts +32 -29
- package/dist/ClusterCosmos.d.ts.map +1 -1
- package/dist/ClusterCosmos.js +22 -10
- package/dist/ClusterServiceBus.d.ts +7 -7
- package/dist/ClusterServiceBus.d.ts.map +1 -1
- package/dist/ClusterServiceBus.js +6 -6
- package/dist/SQL/Model.d.ts +3 -3
- package/dist/SQL/Model.d.ts.map +1 -1
- package/dist/SQL/Model.js +7 -7
- package/dist/Store/Memory.js +2 -2
- package/dist/Store/SQL/Pg.d.ts +1 -1
- package/dist/Store/SQL/Pg.d.ts.map +1 -1
- package/dist/Store/SQL/Pg.js +2 -2
- package/dist/Store/SQL.d.ts +1 -1
- package/dist/Store/SQL.d.ts.map +1 -1
- package/dist/Store/SQL.js +2 -2
- package/dist/Store/index.d.ts +1 -1
- package/dist/Store/index.d.ts.map +1 -1
- package/dist/WorkflowEngineCosmos.d.ts +1 -1
- package/dist/WorkflowEngineCosmos.d.ts.map +1 -1
- package/dist/WorkflowEngineCosmos.js +3 -3
- package/dist/WorkflowEngineSqlite.d.ts +2 -2
- package/dist/WorkflowEngineSqlite.d.ts.map +1 -1
- package/dist/WorkflowEngineSqlite.js +4 -4
- package/dist/arbs.js +2 -2
- package/dist/cosmos-client.d.ts.map +1 -1
- package/dist/cosmos-client.js +20 -3
- package/dist/internal/auth.d.ts +1 -1
- package/dist/internal/auth.d.ts.map +1 -1
- package/dist/internal/health.d.ts +1 -1
- package/dist/internal/health.d.ts.map +1 -1
- package/dist/logger.d.ts +4 -4
- package/dist/routing/middleware/middleware.d.ts +1 -1
- package/dist/routing/middleware/middleware.d.ts.map +1 -1
- package/dist/routing/middleware/middleware.js +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/routing.d.ts.map +1 -1
- package/dist/routing.js +2 -2
- package/docs/workflow-engine.md +1 -1
- package/package.json +5 -5
- package/src/ClusterCosmos.ts +34 -14
- package/src/ClusterServiceBus.ts +11 -11
- package/src/SQL/Model.ts +6 -6
- package/src/Store/Memory.ts +1 -1
- package/src/Store/SQL/Pg.ts +1 -1
- package/src/Store/SQL.ts +1 -1
- package/src/Store/index.ts +1 -1
- package/src/WorkflowEngineCosmos.ts +2 -2
- package/src/WorkflowEngineSqlite.ts +3 -3
- package/src/arbs.ts +1 -1
- package/src/cosmos-client.ts +18 -2
- package/src/routing/middleware/middleware.ts +1 -1
- package/src/routing.ts +1 -1
- package/test/cluster-cosmos.test.ts +26 -4
- package/test/cluster-servicebus.test.ts +3 -3
- package/test/cluster-sqlite.test.ts +2 -2
- package/test/controller.test.ts +2 -2
- package/test/cosmos-container-throughput.test.ts +20 -1
- package/test/dist/controller.test.d.ts.map +1 -1
- package/test/dist/fixtures.d.ts +1 -1
- package/test/dist/rpc-multi-middleware.test.d.ts.map +1 -1
- package/test/requires.test.ts +2 -2
- package/test/router-generator.test.ts +1 -1
- package/test/routing-interruptibility.test.ts +1 -1
- package/test/rpc-context-map-streaming.test.ts +3 -3
- package/test/rpc-e2e-invalidation.test.ts +3 -3
- package/test/rpc-multi-middleware.test.ts +2 -2
- package/test/rpc-stream-fullstack.test.ts +3 -3
- package/test/workflow-engine-cosmos.test.ts +1 -1
- package/test/workflow-engine-sqlite.test.ts +2 -2
package/test/dist/fixtures.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ declare const RequestContextMap_base: (new () => {
|
|
|
66
66
|
readonly requireRoles: RpcContextMap.RpcContextMap.Custom<never, typeof UnauthorizedError, string[]>;
|
|
67
67
|
readonly test: RpcContextMap.RpcContextMap<never, S.Never>;
|
|
68
68
|
};
|
|
69
|
-
getConfig: (rpc: import("effect/
|
|
69
|
+
getConfig: (rpc: import("effect/rpc/Rpc").AnyWithProps) => RpcContextMap.GetContextConfig<{
|
|
70
70
|
readonly allowAnonymous: RpcContextMap.RpcContextMap.Inverted<UserProfile, typeof NotLoggedInError>;
|
|
71
71
|
readonly requireRoles: RpcContextMap.RpcContextMap.Custom<never, typeof UnauthorizedError, string[]>;
|
|
72
72
|
readonly test: RpcContextMap.RpcContextMap<never, S.Never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-multi-middleware.test.d.ts","sourceRoot":"","sources":["../rpc-multi-middleware.test.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAIpD,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAA;AACtC,OAAO,KAAK,CAAC,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"rpc-multi-middleware.test.d.ts","sourceRoot":"","sources":["../rpc-multi-middleware.test.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAIpD,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAA;AACtC,OAAO,KAAK,CAAC,MAAM,mBAAmB,CAAA;AAItC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAGrC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAkD,MAAM,YAAY,CAAA;AAG3F,OAAO,EAAE,cAAc,EAAyC,YAAY,EAA0B,kBAAkB,EAA0B,cAAc,EAAmC,IAAI,EAAY,WAAW,EAAE,MAAM,eAAe,CAAA;AAErP,QAAA,MAAM,UAAU;;;;;;;;;;oCAImB,CAAA;AAGnC,qBAAa,oBAAqB,SAAQ,UAAU;CAAG;;;;;;;;;;;;AAEvD,cAAM,UAAW,SAAQ,eAMkB;CACzC;AAsCF,eAAO,MAAM,OAAO,iEAMhB,CAAA;AAgBJ,eAAO,MAAM,YAAY,2HAItB,CAAA;AAEH,eAAO,MAAM,YAAY,gIAgB2B,CAAA"}
|
package/test/requires.test.ts
CHANGED
|
@@ -9,8 +9,8 @@ import { MiddlewareMaker } from "effect-app/rpc"
|
|
|
9
9
|
import * as S from "effect-app/Schema"
|
|
10
10
|
import type { unhandled } from "effect-app/Types"
|
|
11
11
|
import * as Result from "effect/Result"
|
|
12
|
-
import { Rpc } from "effect/
|
|
13
|
-
import { type SuccessValue } from "effect/
|
|
12
|
+
import { Rpc } from "effect/rpc"
|
|
13
|
+
import { type SuccessValue } from "effect/rpc/RpcMiddleware"
|
|
14
14
|
import { AllowAnonymous, AllowAnonymousLive, RequestContextMap, RequireRoles, RequireRolesLive, Some, SomeElseMiddleware, SomeElseMiddlewareLive, SomeMiddleware, SomeMiddlewareLive, SomeService, Test, TestLive } from "./fixtures.js"
|
|
15
15
|
|
|
16
16
|
export class RequiresSomeMiddleware
|
|
@@ -12,7 +12,7 @@ import { MiddlewareMaker } from "effect-app/rpc"
|
|
|
12
12
|
import * as S from "effect-app/Schema"
|
|
13
13
|
import { type TypeTestId } from "effect-app/TypeTest"
|
|
14
14
|
import { type ConfigError } from "effect/Config"
|
|
15
|
-
import { type RpcSerialization } from "effect/
|
|
15
|
+
import { type RpcSerialization } from "effect/rpc/RpcSerialization"
|
|
16
16
|
import { DefaultGenericMiddlewaresLive, DevModeMiddlewareLive } from "../src/routing/middleware.js"
|
|
17
17
|
import { AllowAnonymous, AllowAnonymousLive, RequestContextMap, RequireRoles, RequireRolesLive, Some, SomeElse, SomeService, Test, TestLive } from "./fixtures.js"
|
|
18
18
|
|
|
@@ -5,7 +5,7 @@ import * as Effect from "effect/Effect"
|
|
|
5
5
|
import * as Fiber from "effect/Fiber"
|
|
6
6
|
import * as Layer from "effect/Layer"
|
|
7
7
|
import * as Ref from "effect/Ref"
|
|
8
|
-
import { Rpc, RpcGroup, RpcTest } from "effect/
|
|
8
|
+
import { Rpc, RpcGroup, RpcTest } from "effect/rpc"
|
|
9
9
|
import { applyRequestTypeInterruptibility } from "../src/routing.js"
|
|
10
10
|
import { ConfigureInterruptibilityMiddlewareLive, RequestType } from "../src/routing/middleware.js"
|
|
11
11
|
|
|
@@ -44,12 +44,12 @@ import { MiddlewareMaker } from "effect-app/rpc"
|
|
|
44
44
|
import * as S from "effect-app/Schema"
|
|
45
45
|
import { getContextMap } from "effect-app/Store"
|
|
46
46
|
import * as Effect from "effect/Effect"
|
|
47
|
+
import { FetchHttpClient } from "effect/http"
|
|
47
48
|
import * as Layer from "effect/Layer"
|
|
49
|
+
import * as NetAddress from "effect/net/NetAddress"
|
|
48
50
|
import * as Option from "effect/Option"
|
|
51
|
+
import { RpcSerialization } from "effect/rpc"
|
|
49
52
|
import * as Stream from "effect/Stream"
|
|
50
|
-
import { FetchHttpClient } from "effect/unstable/http"
|
|
51
|
-
import * as NetAddress from "effect/unstable/net/NetAddress"
|
|
52
|
-
import { RpcSerialization } from "effect/unstable/rpc"
|
|
53
53
|
import { createServer } from "http"
|
|
54
54
|
import { RequestContextMiddleware } from "../src/internal/RequestContextMiddleware.js"
|
|
55
55
|
import { makeRouter } from "../src/routing.js"
|
|
@@ -25,13 +25,13 @@ import { TaggedErrorClass } from "effect-app/Schema"
|
|
|
25
25
|
import * as Cause from "effect/Cause"
|
|
26
26
|
import * as Effect from "effect/Effect"
|
|
27
27
|
import * as Exit from "effect/Exit"
|
|
28
|
+
import { FetchHttpClient } from "effect/http"
|
|
28
29
|
import * as Layer from "effect/Layer"
|
|
30
|
+
import * as NetAddress from "effect/net/NetAddress"
|
|
29
31
|
import * as Option from "effect/Option"
|
|
30
32
|
import * as Ref from "effect/Ref"
|
|
33
|
+
import { RpcSerialization } from "effect/rpc"
|
|
31
34
|
import * as Stream from "effect/Stream"
|
|
32
|
-
import { FetchHttpClient } from "effect/unstable/http"
|
|
33
|
-
import * as NetAddress from "effect/unstable/net/NetAddress"
|
|
34
|
-
import { RpcSerialization } from "effect/unstable/rpc"
|
|
35
35
|
import { createServer } from "http"
|
|
36
36
|
import { RequestContextMiddleware } from "../src/internal/RequestContextMiddleware.js"
|
|
37
37
|
import { makeRouter } from "../src/routing.js"
|
|
@@ -8,11 +8,11 @@ import * as RpcX from "effect-app/rpc"
|
|
|
8
8
|
import * as S from "effect-app/Schema"
|
|
9
9
|
import * as Console from "effect/Console"
|
|
10
10
|
import * as Effect from "effect/Effect"
|
|
11
|
+
import { FetchHttpClient } from "effect/http"
|
|
11
12
|
import * as Layer from "effect/Layer"
|
|
12
13
|
import * as Ref from "effect/Ref"
|
|
13
14
|
import * as Result from "effect/Result"
|
|
14
|
-
import {
|
|
15
|
-
import { Rpc, RpcClient, RpcGroup, RpcSerialization, RpcServer, RpcTest } from "effect/unstable/rpc"
|
|
15
|
+
import { Rpc, RpcClient, RpcGroup, RpcSerialization, RpcServer, RpcTest } from "effect/rpc"
|
|
16
16
|
import { createServer } from "http"
|
|
17
17
|
import { DefaultGenericMiddlewaresLive } from "../src/routing.js"
|
|
18
18
|
import { AllowAnonymous, AllowAnonymousLive, RequestContextMap, RequireRoles, RequireRolesLive, Some, SomeElseMiddleware, SomeElseMiddlewareLive, SomeMiddleware, SomeMiddlewareLive, SomeService, Test, TestLive, UserProfile } from "./fixtures.js"
|
|
@@ -19,12 +19,12 @@ import * as S from "effect-app/Schema"
|
|
|
19
19
|
import { TaggedErrorClass } from "effect-app/Schema"
|
|
20
20
|
import * as Effect from "effect/Effect"
|
|
21
21
|
import * as Exit from "effect/Exit"
|
|
22
|
+
import { FetchHttpClient } from "effect/http"
|
|
22
23
|
import * as Layer from "effect/Layer"
|
|
24
|
+
import * as NetAddress from "effect/net/NetAddress"
|
|
23
25
|
import * as Option from "effect/Option"
|
|
26
|
+
import { RpcSerialization } from "effect/rpc"
|
|
24
27
|
import * as Stream from "effect/Stream"
|
|
25
|
-
import { FetchHttpClient } from "effect/unstable/http"
|
|
26
|
-
import * as NetAddress from "effect/unstable/net/NetAddress"
|
|
27
|
-
import { RpcSerialization } from "effect/unstable/rpc"
|
|
28
28
|
import { createServer } from "http"
|
|
29
29
|
import { makeRouter } from "../src/routing.js"
|
|
30
30
|
import { DefaultGenericMiddlewaresLive } from "../src/routing/middleware.js"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { assert, describe, it } from "@effect/vitest"
|
|
19
19
|
import { Context, Duration, Effect, Exit, Layer, Option, Redacted, Schema } from "effect"
|
|
20
|
-
import { Activity, DurableDeferred, Workflow, WorkflowEngine } from "effect/
|
|
20
|
+
import { Activity, DurableDeferred, Workflow, WorkflowEngine } from "effect/workflow"
|
|
21
21
|
import { CosmosClient, CosmosClientLayer } from "../src/cosmos-client.js"
|
|
22
22
|
import { layerCosmos } from "../src/WorkflowEngineCosmos.js"
|
|
23
23
|
|
|
@@ -9,8 +9,8 @@ import * as S from "effect-app/Schema"
|
|
|
9
9
|
import * as Duration from "effect/Duration"
|
|
10
10
|
import * as Exit from "effect/Exit"
|
|
11
11
|
import * as Schema from "effect/Schema"
|
|
12
|
-
import { SqlClient } from "effect/
|
|
13
|
-
import { Activity, DurableDeferred, Workflow } from "effect/
|
|
12
|
+
import { SqlClient } from "effect/sql"
|
|
13
|
+
import { Activity, DurableDeferred, Workflow } from "effect/workflow"
|
|
14
14
|
import { layerSqlite } from "../src/WorkflowEngineSqlite.js"
|
|
15
15
|
|
|
16
16
|
// --- Shared mutable counter service -----------------------------------
|