@effect-app/infra 0.133.0-next.14 → 0.133.0-next.16

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,24 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 0.133.0-next.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [660d57a]
8
+ - @effect-app/schema@0.150.0-next.11
9
+ - @effect-app/infra-adapters@0.85.0-next.14
10
+ - @effect-app/prelude@0.107.0-next.14
11
+
12
+ ## 0.133.0-next.15
13
+
14
+ ### Patch Changes
15
+
16
+ - 20076e0: update
17
+ - Updated dependencies [20076e0]
18
+ - @effect-app/infra-adapters@0.85.0-next.13
19
+ - @effect-app/prelude@0.107.0-next.13
20
+ - @effect-app/schema@0.150.0-next.10
21
+
3
22
  ## 0.133.0-next.14
4
23
 
5
24
  ### Patch Changes
@@ -1,24 +1,4 @@
1
1
  "use strict";
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.defaultNullable = exports.defaultDate = exports.defaultArray = void 0;
7
3
  require("@effect-app/infra/test.arbs");
8
- var _schema = require("@effect-app/schema/schema");
9
- /**
10
- * @tsplus fluent effect/schema/Schema withDefault
11
- */
12
- const defaultDate = s => _schema.S.withDefaultConstructor(s, () => new Date());
13
- /**
14
- * @tsplus fluent effect/schema/Schema withDefault
15
- */
16
- exports.defaultDate = defaultDate;
17
- const defaultNullable = s => _schema.S.withDefaultConstructor(s, () => null);
18
- /**
19
- * @tsplus fluent effect/schema/Schema withDefault
20
- */
21
- exports.defaultNullable = defaultNullable;
22
- const defaultArray = s => _schema.S.withDefaultConstructor(s, () => []);
23
- exports.defaultArray = defaultArray;
24
4
  //# sourceMappingURL=_global.ext.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"_global.ext.cjs","names":["require","_schema","defaultDate","s","S","withDefaultConstructor","Date","exports","defaultNullable","defaultArray"],"sources":["../_src/_global.ext.ts"],"sourcesContent":[null],"mappings":";;;;;;AAiBAA,OAAA;AAmBA,IAAAC,OAAA,GAAAD,OAAA;AAEA;;;AAGO,MAAME,WAAW,GAAUC,CAAuB,IAAKC,SAAC,CAACC,sBAAsB,CAACF,CAAC,EAAE,MAAM,IAAIG,IAAI,EAAE,CAAC;AAE3G;;;AAAAC,OAAA,CAAAL,WAAA,GAAAA,WAAA;AAGO,MAAMM,eAAe,GAAcL,CAA4B,IAAKC,SAAC,CAACC,sBAAsB,CAACF,CAAC,EAAE,MAAM,IAAI,CAAC;AAElH;;;AAAAI,OAAA,CAAAC,eAAA,GAAAA,eAAA;AAGO,MAAMC,YAAY,GAAaN,CAAmC,IAAKC,SAAC,CAACC,sBAAsB,CAACF,CAAC,EAAE,MAAM,EAAE,CAAC;AAAAI,OAAA,CAAAE,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"file":"_global.ext.cjs","names":["require"],"sources":["../_src/_global.ext.ts"],"sourcesContent":[null],"mappings":";;AAiBAA,OAAA"}
@@ -34,19 +34,3 @@ import type {} from "@effect-app/infra/api/setupRequest"
34
34
  * @tsplus global
35
35
  */
36
36
  import {} from "@effect-app/infra/api/reportError"
37
- import { S } from "@effect-app/schema/schema"
38
-
39
- /**
40
- * @tsplus fluent effect/schema/Schema withDefault
41
- */
42
- export const defaultDate = <From>(s: S.Schema<From, Date>) => S.withDefaultConstructor(s, () => new Date())
43
-
44
- /**
45
- * @tsplus fluent effect/schema/Schema withDefault
46
- */
47
- export const defaultNullable = <From, To>(s: S.Schema<From, To | null>) => S.withDefaultConstructor(s, () => null)
48
-
49
- /**
50
- * @tsplus fluent effect/schema/Schema withDefault
51
- */
52
- export const defaultArray = <From, T>(s: S.Schema<From, ReadonlyArray<T>>) => S.withDefaultConstructor(s, () => [])
@@ -52,7 +52,7 @@ declare const RequestContext_base: Schema2.Class<{
52
52
  readonly namespace?: string | undefined;
53
53
  }, {
54
54
  readonly _tag: "RequestContext";
55
- readonly id: Schema2.StringId;
55
+ readonly id: string & Schema2.StringIdBrand;
56
56
  readonly rootId: string & Schema2.StringIdBrand;
57
57
  readonly name: string & Schema2.NonEmptyString255Brand;
58
58
  readonly locale: "en" | "de";
@@ -70,7 +70,7 @@ declare const RequestContext_base: Schema2.Class<{
70
70
  } | undefined;
71
71
  readonly parent?: RequestContextParent | undefined;
72
72
  readonly namespace?: (string & Schema2.NonEmptyString255Brand) | undefined;
73
- readonly id?: Schema2.StringId;
73
+ readonly id?: string & Schema2.StringIdBrand;
74
74
  readonly rootId?: string & Schema2.StringIdBrand;
75
75
  readonly createdAt?: Date;
76
76
  }, RequestContext, import("effect/Data").Case>;
@@ -31,20 +31,4 @@ import type {} from "@effect-app/infra/api/setupRequest";
31
31
  */
32
32
  import {} from "@effect-app/infra/api/reportError";
33
33
  import "@effect-app/infra/test.arbs";
34
- import { S } from "@effect-app/schema/schema";
35
- /**
36
- * @tsplus fluent effect/schema/Schema withDefault
37
- * @tsplus location "@effect-app/infra/_global.ext"
38
- */
39
- export declare const defaultDate: <From>(s: S.Schema<From, Date>) => S.ConstructorPropertyDescriptor<From, Date>;
40
- /**
41
- * @tsplus fluent effect/schema/Schema withDefault
42
- * @tsplus location "@effect-app/infra/_global.ext"
43
- */
44
- export declare const defaultNullable: <From, To>(s: S.Schema<From, To | null>) => S.ConstructorPropertyDescriptor<From, To | null>;
45
- /**
46
- * @tsplus fluent effect/schema/Schema withDefault
47
- * @tsplus location "@effect-app/infra/_global.ext"
48
- */
49
- export declare const defaultArray: <From, T>(s: S.Schema<From, ReadonlyArray<T>>) => S.ConstructorPropertyDescriptor<From, readonly T[]>;
50
34
  //# sourceMappingURL=_global.ext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"_global.ext.d.ts","sourceRoot":"","sources":["../_src/_global.ext.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,yCAAyC,CAAA;AAC7D;;GAEG;AACH,OAAO,KAAK,EAAE,MA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E,MAAM,mCAAmC,CAAA;AAlBlD,OAAO,6BAA6B,CAAA"}
@@ -1,15 +1,2 @@
1
1
  import "@effect-app/infra/test.arbs";
2
- import { S } from "@effect-app/schema/schema";
3
- /**
4
- * @tsplus fluent effect/schema/Schema withDefault
5
- */
6
- export const defaultDate = (s) => S.withDefaultConstructor(s, () => new Date());
7
- /**
8
- * @tsplus fluent effect/schema/Schema withDefault
9
- */
10
- export const defaultNullable = (s) => S.withDefaultConstructor(s, () => null);
11
- /**
12
- * @tsplus fluent effect/schema/Schema withDefault
13
- */
14
- export const defaultArray = (s) => S.withDefaultConstructor(s, () => []);
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2dsb2JhbC5leHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9fc3JjL19nbG9iYWwuZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlCQSxPQUFPLDZCQUE2QixDQUFBO0FBbUJwQyxPQUFPLEVBQUUsQ0FBQyxFQUFFLE1BQU0sMkJBQTJCLENBQUE7QUFFN0M7O0dBRUc7QUFDSCxNQUFNLENBQUMsTUFBTSxXQUFXLEdBQUcsQ0FBTyxDQUF1QixFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsc0JBQXNCLENBQUMsQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDLElBQUksSUFBSSxFQUFFLENBQUMsQ0FBQTtBQUUzRzs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLGVBQWUsR0FBRyxDQUFXLENBQTRCLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQyxzQkFBc0IsQ0FBQyxDQUFDLEVBQUUsR0FBRyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUE7QUFFbEg7O0dBRUc7QUFDSCxNQUFNLENBQUMsTUFBTSxZQUFZLEdBQUcsQ0FBVSxDQUFtQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsc0JBQXNCLENBQUMsQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFBIn0=
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2dsb2JhbC5leHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9fc3JjL19nbG9iYWwuZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlCQSxPQUFPLDZCQUE2QixDQUFBIn0=
@@ -37,7 +37,7 @@ export declare const RCTag: import("effect/Context").Tag<RequestContext, Request
37
37
  export declare const spanAttributes: (ctx: RequestContext) => {
38
38
  "request.user.sub"?: string & import("@effect-app/prelude/ids").UserProfileIdBrand;
39
39
  "request.user.roles"?: unknown;
40
- "request.id": import("@effect-app/schema").StringId;
40
+ "request.id": string & import("@effect-app/schema").StringIdBrand;
41
41
  "request.name": string & import("@effect-app/schema").NonEmptyString255Brand;
42
42
  "request.locale": "en" | "de";
43
43
  "request.namespace": (string & import("@effect-app/schema").NonEmptyString255Brand) | undefined;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "0.133.0-next.14",
3
+ "version": "0.133.0-next.16",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@azure/cosmos": "^4.0.0",
8
8
  "@azure/service-bus": "^7.9.3",
9
- "@effect/schema": "npm:@effect-app/schema-fork@0.0.0-20231227102807",
9
+ "@effect/schema": "npm:@effect-app/schema-fork@0.0.0-20231227111019",
10
10
  "effect": "^2.0.0-next.62",
11
11
  "@faker-js/faker": "^8.3.1",
12
12
  "@sendgrid/helpers": "^8.0.0",
@@ -20,9 +20,9 @@
20
20
  "pure-rand": "6.0.4",
21
21
  "redlock": "^4.2.0",
22
22
  "@effect-app/core": "0.97.0-next.4",
23
- "@effect-app/infra-adapters": "0.85.0-next.12",
24
- "@effect-app/prelude": "0.107.0-next.12",
25
- "@effect-app/schema": "0.150.0-next.9"
23
+ "@effect-app/infra-adapters": "0.85.0-next.14",
24
+ "@effect-app/prelude": "0.107.0-next.14",
25
+ "@effect-app/schema": "0.150.0-next.11"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/cli": "^7.23.4",