@effect-app/infra 0.133.0-next.13 → 0.133.0-next.15
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 +20 -0
- package/_cjs/_global.ext.cjs +0 -20
- package/_cjs/_global.ext.cjs.map +1 -1
- package/_src/_global.ext.ts +0 -16
- package/dist/RequestContext.d.ts +2 -2
- package/dist/_global.ext.d.ts +0 -16
- package/dist/_global.ext.d.ts.map +1 -1
- package/dist/_global.ext.js +1 -14
- package/dist/services/RequestContextContainer.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @effect-app/infra
|
|
2
2
|
|
|
3
|
+
## 0.133.0-next.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 20076e0: update
|
|
8
|
+
- Updated dependencies [20076e0]
|
|
9
|
+
- @effect-app/infra-adapters@0.85.0-next.13
|
|
10
|
+
- @effect-app/prelude@0.107.0-next.13
|
|
11
|
+
- @effect-app/schema@0.150.0-next.10
|
|
12
|
+
|
|
13
|
+
## 0.133.0-next.14
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @effect-app/core@0.97.0-next.4
|
|
19
|
+
- @effect-app/infra-adapters@0.85.0-next.12
|
|
20
|
+
- @effect-app/prelude@0.107.0-next.12
|
|
21
|
+
- @effect-app/schema@0.150.0-next.9
|
|
22
|
+
|
|
3
23
|
## 0.133.0-next.13
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/_cjs/_global.ext.cjs
CHANGED
|
@@ -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
|
package/_cjs/_global.ext.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_global.ext.cjs","names":["require"
|
|
1
|
+
{"version":3,"file":"_global.ext.cjs","names":["require"],"sources":["../_src/_global.ext.ts"],"sourcesContent":[null],"mappings":";;AAiBAA,OAAA"}
|
package/_src/_global.ext.ts
CHANGED
|
@@ -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, () => [])
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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>;
|
package/dist/_global.ext.d.ts
CHANGED
|
@@ -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,MAAM,6CAA6C,CAAA;AACjE;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,4CAA4C,CAAA;AAChE;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,8CAA8C,CAAA;AAGlE;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAClD;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,6BAA6B,CAAA;AAEjD;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,oCAAoC,CAAA;AAExD;;GAEG;AACH,OAAO,EAAE,MAAM,mCAAmC,CAAA;AAlBlD,OAAO,6BAA6B,CAAA
|
|
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,MAAM,6CAA6C,CAAA;AACjE;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,4CAA4C,CAAA;AAChE;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,8CAA8C,CAAA;AAGlE;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAClD;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,6BAA6B,CAAA;AAEjD;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,oCAAoC,CAAA;AAExD;;GAEG;AACH,OAAO,EAAE,MAAM,mCAAmC,CAAA;AAlBlD,OAAO,6BAA6B,CAAA"}
|
package/dist/_global.ext.js
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
import "@effect-app/infra/test.arbs";
|
|
2
|
-
|
|
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").
|
|
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.
|
|
3
|
+
"version": "0.133.0-next.15",
|
|
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-
|
|
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",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"proper-lockfile": "^4.1.2",
|
|
20
20
|
"pure-rand": "6.0.4",
|
|
21
21
|
"redlock": "^4.2.0",
|
|
22
|
-
"@effect-app/
|
|
23
|
-
"@effect-app/
|
|
24
|
-
"@effect-app/
|
|
25
|
-
"@effect-app/
|
|
22
|
+
"@effect-app/infra-adapters": "0.85.0-next.13",
|
|
23
|
+
"@effect-app/prelude": "0.107.0-next.13",
|
|
24
|
+
"@effect-app/schema": "0.150.0-next.10",
|
|
25
|
+
"@effect-app/core": "0.97.0-next.4"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/cli": "^7.23.4",
|