@effect-app/infra 4.0.0-beta.117 → 4.0.0-beta.118
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,15 @@
|
|
|
1
1
|
# @effect-app/infra
|
|
2
2
|
|
|
3
|
+
## 4.0.0-beta.118
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update effect packages to 4.0.0-beta.52
|
|
8
|
+
- Updated dependencies [bd26832]
|
|
9
|
+
- Updated dependencies [08d2e70]
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- effect-app@4.0.0-beta.118
|
|
12
|
+
|
|
3
13
|
## 4.0.0-beta.117
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S } from "effect-app";
|
|
2
|
-
declare const ValidationError_base: S.EnhancedClass<ValidationError,
|
|
2
|
+
declare const ValidationError_base: S.EnhancedClass<ValidationError, import("effect/Schema").Struct<{
|
|
3
3
|
/** the id of the item that failed validation */
|
|
4
4
|
id: S.Unknown;
|
|
5
5
|
/** the raw data from the database before jitM */
|
|
@@ -15,7 +15,7 @@ declare const ValidationError_base: S.EnhancedClass<ValidationError, S.Struct<{
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class ValidationError extends ValidationError_base {
|
|
17
17
|
}
|
|
18
|
-
declare const ValidationResult_base: S.EnhancedClass<ValidationResult,
|
|
18
|
+
declare const ValidationResult_base: S.EnhancedClass<ValidationResult, import("effect/Schema").Struct<{
|
|
19
19
|
/** total number of items in the repository */
|
|
20
20
|
total: S.WithDefaults<S.brand<import("effect/Schema").Int, "NonNegativeInt" | "Int" | "NonNegativeNumber">> & S.brand<import("effect/Schema").Int, "NonNegativeInt" | "Int" | "NonNegativeNumber"> & {
|
|
21
21
|
withDefault: S.withConstructorDefault<S.WithDefaults<S.brand<import("effect/Schema").Int, "NonNegativeInt" | "Int" | "NonNegativeNumber">> & S.brand<import("effect/Schema").Int, "NonNegativeInt" | "Int" | "NonNegativeNumber">>;
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export type Locale = typeof Locale.Type;
|
|
|
13
13
|
declare const LocaleRef_base: Context.Reference<"en" | "de">;
|
|
14
14
|
export declare class LocaleRef extends LocaleRef_base {
|
|
15
15
|
}
|
|
16
|
-
declare const RequestContext_base: S.EnhancedClass<RequestContext,
|
|
17
|
-
span:
|
|
16
|
+
declare const RequestContext_base: S.EnhancedClass<RequestContext, import("effect/Schema").Struct<{
|
|
17
|
+
span: import("effect/Schema").Struct<{
|
|
18
18
|
readonly traceId: S.String;
|
|
19
19
|
readonly spanId: S.String;
|
|
20
20
|
readonly sampled: import("effect/Schema").Boolean & {
|
|
@@ -36,7 +36,7 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, S.Struct<{
|
|
|
36
36
|
sourceId: S.optional<S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">> & S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">>;
|
|
37
37
|
namespace: S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">> & S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">;
|
|
38
38
|
/** @deprecated */
|
|
39
|
-
userProfile: S.optional<
|
|
39
|
+
userProfile: S.optional<import("effect/Schema").Struct<{
|
|
40
40
|
readonly sub: S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
|
|
41
41
|
make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
|
|
42
42
|
withDefault: S.withConstructorDefault<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & S.WithoutConstructorDefault>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context, Effect, Layer, RequestResolver } from "effect-app";
|
|
2
2
|
import type * as Request from "effect/Request";
|
|
3
3
|
import { ContextMap } from "./service.js";
|
|
4
|
-
declare const ContextMapContainer_base: Context.Reference<
|
|
4
|
+
declare const ContextMapContainer_base: Context.Reference<"root" | ContextMap>;
|
|
5
5
|
export declare class ContextMapContainer extends ContextMapContainer_base {
|
|
6
6
|
static readonly layer: Layer.Layer<never, never, never>;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect } from "effect-app";
|
|
2
2
|
import { HttpServerRequest, HttpServerResponse } from "effect-app/http";
|
|
3
3
|
import { Locale } from "../../RequestContext.js";
|
|
4
|
-
export declare const RequestContextMiddleware: (defaultLocale?: Locale) => <E, R>(app: Effect.Effect<HttpServerResponse.HttpServerResponse, E,
|
|
4
|
+
export declare const RequestContextMiddleware: (defaultLocale?: Locale) => <E, R>(app: Effect.Effect<HttpServerResponse.HttpServerResponse, E, HttpServerRequest.HttpServerRequest | R>) => Effect.Effect<HttpServerResponse.HttpServerResponse, E, HttpServerRequest.HttpServerRequest | Exclude<Exclude<R, import("effect/Tracer").ParentSpan>, never>>;
|
|
5
5
|
//# sourceMappingURL=RequestContextMiddleware.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.118",
|
|
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.3.1",
|
|
16
|
-
"effect-app": "4.0.0-beta.
|
|
16
|
+
"effect-app": "4.0.0-beta.118"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@azure/cosmos": "^4.9.2",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@azure/cosmos": "^4.9.2",
|
|
43
43
|
"@azure/service-bus": "^7.9.5",
|
|
44
|
-
"@effect/vitest": "^4.0.0-beta.
|
|
44
|
+
"@effect/vitest": "^4.0.0-beta.52",
|
|
45
45
|
"@sendgrid/helpers": "^8.0.0",
|
|
46
46
|
"@sendgrid/mail": "^8.1.6",
|
|
47
47
|
"@sentry/node": "10.47.0",
|
|
48
48
|
"@sentry/opentelemetry": "10.47.0",
|
|
49
|
-
"effect": "^4.0.0-beta.
|
|
49
|
+
"effect": "^4.0.0-beta.52",
|
|
50
50
|
"express": "^5.2.1",
|
|
51
51
|
"jwt-decode": "^4.0.0",
|
|
52
52
|
"redis": "^3.1.2",
|
package/test/dist/fixtures.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context, Effect, Layer, S } from "effect-app";
|
|
2
2
|
import { NotLoggedInError, UnauthorizedError } from "effect-app/client";
|
|
3
3
|
import { RpcContextMap, RpcX } from "effect-app/rpc";
|
|
4
|
-
declare const UserProfile_base: S.EnhancedClass<UserProfile,
|
|
4
|
+
declare const UserProfile_base: S.EnhancedClass<UserProfile, import("effect/Schema").Struct<{
|
|
5
5
|
id: S.String;
|
|
6
6
|
roles: S.$Array<S.String> & {
|
|
7
7
|
withDefault: S.withConstructorDefault<S.$Array<S.String>>;
|
|
@@ -111,10 +111,10 @@ declare const Counter_base: Context.OpaqueClass<Counter, "Counter", {
|
|
|
111
111
|
};
|
|
112
112
|
export declare class Counter extends Counter_base {
|
|
113
113
|
}
|
|
114
|
-
declare const CustomError1_base: import("effect/Schema").Class<CustomError1,
|
|
114
|
+
declare const CustomError1_base: import("effect/Schema").Class<CustomError1, import("effect/Schema").TaggedStruct<"CustomError1", {}>, import("effect/Cause").YieldableError>;
|
|
115
115
|
export declare class CustomError1 extends CustomError1_base {
|
|
116
116
|
}
|
|
117
|
-
declare const CustomError2_base: import("effect/Schema").Class<CustomError2,
|
|
117
|
+
declare const CustomError2_base: import("effect/Schema").Class<CustomError2, import("effect/Schema").TaggedStruct<"CustomError2", {}>, import("effect/Cause").YieldableError>;
|
|
118
118
|
export declare class CustomError2 extends CustomError2_base {
|
|
119
119
|
}
|
|
120
120
|
export {};
|