@effect-app/infra 4.0.0-beta.211 → 4.0.0-beta.212

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,12 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 4.0.0-beta.212
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8792221]
8
+ - effect-app@4.0.0-beta.212
9
+
3
10
  ## 4.0.0-beta.211
4
11
 
5
12
  ### Patch Changes
package/examples/query.ts CHANGED
@@ -9,14 +9,14 @@ const num = S.Struct({ _tag: S.Literal("number"), value: S.Finite })
9
9
  const someUnion = S.Union(str, num)
10
10
 
11
11
  export class Something extends S.Opaque<Something>()(S.TaggedStruct("Something", {
12
- id: S.StringId.withDefault,
12
+ id: S.StringId.withConstructorDefault,
13
13
  displayName: S.NonEmptyString255,
14
- n: S.Date.withDefault,
14
+ n: S.Date.withConstructorDefault,
15
15
  union: someUnion.pipe(S.withConstructorDefault(Effect.succeed({ _tag: "string" as const, value: "hi" })))
16
16
  })) {}
17
17
 
18
18
  export class SomethingElse extends S.Opaque<SomethingElse>()(S.TaggedStruct("SomethingElse", {
19
- id: S.StringId.withDefault,
19
+ id: S.StringId.withConstructorDefault,
20
20
  banana: S.NonEmptyString255
21
21
  })) {}
22
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "4.0.0-beta.211",
3
+ "version": "4.0.0-beta.212",
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.211"
16
+ "effect-app": "4.0.0-beta.212"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@azure/cosmos": "^4.9.3",
@@ -4,7 +4,7 @@ import { RpcContextMap } from "effect-app/rpc";
4
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
- withDefault: S.withConstructorDefault<S.$Array<S.String>>;
7
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.String>>;
8
8
  withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.String>>;
9
9
  };
10
10
  }>, {}> & Context.Opaque<UserProfile, UserProfile>;
@@ -19,10 +19,10 @@ const num = S.Struct({ _tag: S.Literal("number"), value: S.Finite })
19
19
  const someUnion = S.Union([str, num])
20
20
 
21
21
  export class Something extends S.Class<Something>("Something")({
22
- id: S.StringId.withDefault,
22
+ id: S.StringId.withConstructorDefault,
23
23
  displayName: S.NonEmptyString255,
24
- name: S.NullOr(S.NonEmptyString255).withDefault,
25
- n: S.Date.withDefault,
24
+ name: S.NullOr(S.NonEmptyString255).withConstructorDefault,
25
+ n: S.Date.withConstructorDefault,
26
26
  union: someUnion.pipe(S.withConstructorDefault(Effect.succeed({ _tag: "string" as const, value: "hi" })))
27
27
  }) {}
28
28
  export declare namespace Something {