@effect-app/infra 4.0.0-beta.202 → 4.0.0-beta.204

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,19 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 4.0.0-beta.204
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0a0030f]
8
+ - effect-app@4.0.0-beta.204
9
+
10
+ ## 4.0.0-beta.203
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [992d9fa]
15
+ - effect-app@4.0.0-beta.203
16
+
3
17
  ## 4.0.0-beta.202
4
18
 
5
19
  ### Patch Changes
@@ -1,4 +1,5 @@
1
1
  import { Context, S } from "effect-app";
2
+ import { UserProfileId } from "effect-app/ids";
2
3
  import { NonEmptyString255 } from "effect-app/Schema";
3
4
  export declare const Locale: import("effect/Schema").Literals<readonly ["en", "de"]> & {
4
5
  changeDefault: <A extends "de" | "en">(a: A) => import("effect/Schema").Literals<readonly ["en", "de"]> & {
@@ -38,13 +39,11 @@ declare const RequestContext_base: S.Opaque<RequestContext, RequestContext.Encod
38
39
  readonly namespace: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>;
39
40
  /** @deprecated */
40
41
  readonly userProfile: S.optional<S.Struct<{
41
- readonly sub: S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
42
- make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
43
- withDefault: S.withConstructorDefault<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & S.WithoutConstructorDefault>;
44
- } & S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never>>> & S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
45
- make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
46
- withDefault: S.withConstructorDefault<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & S.WithoutConstructorDefault>;
47
- } & S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never>>;
42
+ readonly sub: S.WithDefaults<S.Codec<UserProfileId, string, never, never> & {
43
+ withDefault: S.withConstructorDefault<S.Codec<UserProfileId, string, never, never> & S.WithoutConstructorDefault>;
44
+ } & S.WithDefaults<S.Codec<UserProfileId, string, never, never>>> & S.Codec<UserProfileId, string, never, never> & {
45
+ withDefault: S.withConstructorDefault<S.Codec<UserProfileId, string, never, never> & S.WithoutConstructorDefault>;
46
+ } & S.WithDefaults<S.Codec<UserProfileId, string, never, never>>;
48
47
  }>>;
49
48
  }>, {}> & Omit<S.Struct<{
50
49
  readonly span: S.Struct<{
@@ -70,13 +69,11 @@ declare const RequestContext_base: S.Opaque<RequestContext, RequestContext.Encod
70
69
  readonly namespace: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>;
71
70
  /** @deprecated */
72
71
  readonly userProfile: S.optional<S.Struct<{
73
- readonly sub: S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
74
- make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
75
- withDefault: S.withConstructorDefault<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & S.WithoutConstructorDefault>;
76
- } & S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never>>> & S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
77
- make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
78
- withDefault: S.withConstructorDefault<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & S.WithoutConstructorDefault>;
79
- } & S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never>>;
72
+ readonly sub: S.WithDefaults<S.Codec<UserProfileId, string, never, never> & {
73
+ withDefault: S.withConstructorDefault<S.Codec<UserProfileId, string, never, never> & S.WithoutConstructorDefault>;
74
+ } & S.WithDefaults<S.Codec<UserProfileId, string, never, never>>> & S.Codec<UserProfileId, string, never, never> & {
75
+ withDefault: S.withConstructorDefault<S.Codec<UserProfileId, string, never, never> & S.WithoutConstructorDefault>;
76
+ } & S.WithDefaults<S.Codec<UserProfileId, string, never, never>>;
80
77
  }>>;
81
78
  }>, keyof S.Top>;
82
79
  export declare class RequestContext extends RequestContext_base {
@@ -90,7 +87,7 @@ export declare const spanAttributes: (ctx: Pick<RequestContext, "locale" | "name
90
87
  "request.locale": "de" | "en";
91
88
  "request.namespace": string & S.NonEmptyString255Brand;
92
89
  "request.source.id"?: NonEmptyString255;
93
- "request.user.sub"?: string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
90
+ "request.user.sub"?: UserProfileId;
94
91
  "request.user.roles"?: unknown;
95
92
  };
96
93
  export declare namespace RequestContext {
@@ -98,4 +95,4 @@ export declare namespace RequestContext {
98
95
  }
99
96
  }
100
97
  export {};
101
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVxdWVzdENvbnRleHQuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9SZXF1ZXN0Q29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLFlBQVksQ0FBQTtBQ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AE,IAAI,EAAE,cAAc;QAEhD,aAAa;QACb,MAAM;MAET;CACF;AAED,eAAO,MAAM,cAAc,QAAS,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;;;;;;;CAgBxG,CAAA;AAIF,yBAAiB,cAAc,CAAC,CAAC;IAC/B,UAAiB,OAAQ,SAAQ,CAAC,CAAC,mBAAmB,CAAC,OAAO,cAAc,CAAC;KAAG;CACjF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "4.0.0-beta.202",
3
+ "version": "4.0.0-beta.204",
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": "8.4.0",
15
15
  "query-string": "^9.3.1",
16
- "effect-app": "4.0.0-beta.202"
16
+ "effect-app": "4.0.0-beta.204"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@azure/cosmos": "^4.9.3",