@effect-app/infra 3.4.0 → 3.4.2

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
+ ## 3.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [fe49192]
8
+ - effect-app@3.10.1
9
+
10
+ ## 3.4.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [51ded8d]
15
+ - effect-app@3.10.0
16
+
3
17
  ## 3.4.0
4
18
 
5
19
  ### Minor Changes
@@ -1,5 +1,12 @@
1
1
  import { Context, S } from "effect-app";
2
- export declare const Locale: S.Literal<["en", "de"]>;
2
+ export declare const Locale: import("effect/Schema").Literal<["en", "de"]> & {
3
+ changeDefault: <A extends "en" | "de">(a: A) => import("effect/Schema").Literal<["en", "de"]> & {
4
+ Default: A;
5
+ withDefault: S.PropertySignature<":", "en" | "de", never, ":", "en" | "de", true, never>;
6
+ };
7
+ Default: "en";
8
+ withDefault: S.PropertySignature<":", "en" | "de", never, ":", "en" | "de", true, never>;
9
+ };
3
10
  export type Locale = typeof Locale.Type;
4
11
  declare const LocaleRef_base: Context.ReferenceClass<LocaleRef, "Locale", "en" | "de">;
5
12
  export declare class LocaleRef extends LocaleRef_base {
@@ -13,7 +20,14 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, {
13
20
  };
14
21
  }>;
15
22
  name: S.WithDefaults<S.Schema<string & S.NonEmptyString255Brand, string, never>> & S.Schema<string & S.NonEmptyString255Brand, string, never>;
16
- locale: S.Literal<["en", "de"]>;
23
+ locale: import("effect/Schema").Literal<["en", "de"]> & {
24
+ changeDefault: <A extends "en" | "de">(a: A) => import("effect/Schema").Literal<["en", "de"]> & {
25
+ Default: A;
26
+ withDefault: S.PropertySignature<":", "en" | "de", never, ":", "en" | "de", true, never>;
27
+ };
28
+ Default: "en";
29
+ withDefault: S.PropertySignature<":", "en" | "de", never, ":", "en" | "de", true, never>;
30
+ };
17
31
  sourceId: S.optional<S.WithDefaults<S.Schema<string & S.NonEmptyString255Brand, string, never>> & S.Schema<string & S.NonEmptyString255Brand, string, never>>;
18
32
  namespace: S.WithDefaults<S.Schema<string & S.NonEmptyString255Brand, string, never>> & S.Schema<string & S.NonEmptyString255Brand, string, never>;
19
33
  /** @deprecated */
@@ -1 +1 @@
1
- {"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../src/RequestContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAIvC,eAAO,MAAM,MAAM,yBAAwB,CAAA;AAC3C,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;;AAEvC,qBAAa,SAAU,SAAQ,cAA8E;CAAG;;;;;;;;;;;;;IAe9G,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;AAbpB,qBAAa,cAAe,SAAQ,mBAelC;IAGA,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc;;;;CAMrD;AAED,eAAO,MAAM,cAAc,GAAI,KAAK,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;;;;;;;CAgBxG,CAAA;AAKF,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,OAAQ,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC;KAAG;CACtF"}
1
+ {"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../src/RequestContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAIvC,eAAO,MAAM,MAAM;;;;;;;CAAwB,CAAA;AAC3C,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;;AAEvC,qBAAa,SAAU,SAAQ,cAA8E;CAAG;;;;;;;;;;;;;;;;;;;;IAe9G,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;AAbpB,qBAAa,cAAe,SAAQ,mBAelC;IAGA,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc;;;;CAMrD;AAED,eAAO,MAAM,cAAc,GAAI,KAAK,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;;;;;;;CAgBxG,CAAA;AAKF,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,OAAQ,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC;KAAG;CACtF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
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": "3.9.0"
16
+ "effect-app": "3.10.1"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@azure/cosmos": "^4.5.1",
@@ -34,7 +34,7 @@
34
34
  "strip-ansi": "^7.1.2",
35
35
  "typescript": "~5.9.2",
36
36
  "vitest": "^3.2.4",
37
- "@effect-app/eslint-shared-config": "0.3.0"
37
+ "@effect-app/eslint-shared-config": "0.3.2"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@azure/cosmos": "^4.5.1",