@effect-app/infra 1.48.0 → 1.49.0
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 +13 -0
- package/_cjs/RequestContext.cjs +4 -4
- package/_cjs/RequestContext.cjs.map +1 -1
- package/_cjs/api/setupRequest.cjs +2 -2
- package/_cjs/api/setupRequest.cjs.map +1 -1
- package/_cjs/logger/shared.cjs +2 -2
- package/_cjs/logger/shared.cjs.map +1 -1
- package/_cjs/services/Operations.cjs +2 -2
- package/_cjs/services/Operations.cjs.map +1 -1
- package/_cjs/services/RepositoryBase.cjs +3 -3
- package/_cjs/services/RepositoryBase.cjs.map +1 -1
- package/_cjs/services/Store/Memory.cjs +2 -2
- package/_cjs/services/Store/Memory.cjs.map +1 -1
- package/dist/RequestContext.js +2 -2
- package/dist/api/setupRequest.d.ts +1 -1
- package/dist/api/setupRequest.d.ts.map +1 -1
- package/dist/api/setupRequest.js +2 -2
- package/dist/logger/shared.js +2 -2
- package/dist/services/Emailer/service.d.ts +1 -1
- package/dist/services/Emailer/service.d.ts.map +1 -1
- package/dist/services/Operations.d.ts +1 -1
- package/dist/services/Operations.d.ts.map +1 -1
- package/dist/services/Operations.js +2 -2
- package/dist/services/RepositoryBase.d.ts +2 -2
- package/dist/services/RepositoryBase.d.ts.map +1 -1
- package/dist/services/RepositoryBase.js +3 -3
- package/dist/services/Store/Memory.d.ts +1 -1
- package/dist/services/Store/Memory.d.ts.map +1 -1
- package/dist/services/Store/Memory.js +2 -2
- package/dist/services/query/dsl.d.ts +1 -1
- package/dist/services/query/dsl.d.ts.map +1 -1
- package/package.json +4 -5
- package/src/RequestContext.ts +1 -1
- package/src/api/setupRequest.ts +1 -1
- package/src/logger/shared.ts +1 -1
- package/src/services/Emailer/service.ts +1 -1
- package/src/services/Operations.ts +1 -1
- package/src/services/RepositoryBase.ts +3 -3
- package/src/services/Store/Memory.ts +1 -1
- package/src/services/query/dsl.ts +1 -1
- package/tsconfig.src.json +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -20,10 +20,9 @@
|
|
|
20
20
|
"proper-lockfile": "^4.1.2",
|
|
21
21
|
"pure-rand": "6.1.0",
|
|
22
22
|
"redlock": "^4.2.0",
|
|
23
|
-
"
|
|
24
|
-
"@effect-app/infra-adapters": "1.
|
|
25
|
-
"effect-app": "1.
|
|
26
|
-
"@effect-app/schema": "1.20.0"
|
|
23
|
+
"effect-app": "1.32.0",
|
|
24
|
+
"@effect-app/infra-adapters": "1.23.0",
|
|
25
|
+
"@effect-app/core": "1.19.0"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"@babel/cli": "^7.25.7",
|
package/src/RequestContext.ts
CHANGED
package/src/api/setupRequest.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NonEmptyString255 } from "@effect-app/
|
|
1
|
+
import { NonEmptyString255 } from "@effect-app/core/Schema"
|
|
2
2
|
import type { Tracer } from "effect-app"
|
|
3
3
|
import { Effect, FiberRef, Layer } from "effect-app"
|
|
4
4
|
import { LocaleRef, RequestContext, spanAttributes } from "../RequestContext.js"
|
package/src/logger/shared.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NonEmptyString255 } from "@effect-app/
|
|
1
|
+
import { NonEmptyString255 } from "@effect-app/core/Schema"
|
|
2
2
|
import { Context, FiberRef, Option, Tracer } from "effect-app"
|
|
3
3
|
import * as FiberRefs from "effect/FiberRefs"
|
|
4
4
|
import { LocaleRef, RequestContext } from "../RequestContext.js"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Email, NonEmptyString255 } from "@effect-app/
|
|
1
|
+
import type { Email, NonEmptyString255 } from "@effect-app/core/Schema"
|
|
2
2
|
import type { MailContent, MailData } from "@sendgrid/helpers/classes/mail.js"
|
|
3
3
|
import type { ResponseError } from "@sendgrid/mail"
|
|
4
4
|
import type sgMail from "@sendgrid/mail"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { annotateLogscoped } from "@effect-app/core/Effect"
|
|
2
2
|
import { dual, pipe } from "@effect-app/core/Function"
|
|
3
3
|
import { reportError } from "@effect-app/infra/errorReporter"
|
|
4
|
-
import { NonEmptyString2k } from "@effect-app/
|
|
4
|
+
import { NonEmptyString2k } from "@effect-app/core/Schema"
|
|
5
5
|
import { subHours } from "date-fns"
|
|
6
6
|
import type { Fiber } from "effect-app"
|
|
7
7
|
import { Cause, Context, copy, Duration, Effect, Exit, Layer, Option, S, Schedule } from "effect-app"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
6
|
|
|
7
|
-
// import type { ParserEnv } from "@effect-app/
|
|
7
|
+
// import type { ParserEnv } from "@effect-app/core/Schema/custom/Parser"
|
|
8
8
|
import {
|
|
9
9
|
AnyPureDSL,
|
|
10
10
|
byIdAndSaveWithPure,
|
|
@@ -21,8 +21,8 @@ import type {} from "effect/Equal"
|
|
|
21
21
|
import type {} from "effect/Hash"
|
|
22
22
|
import { toNonEmptyArray } from "@effect-app/core/Array"
|
|
23
23
|
import { flatMapOption } from "@effect-app/core/Effect"
|
|
24
|
-
import type { ParseResult, Schema } from "@effect-app/
|
|
25
|
-
import { NonNegativeInt } from "@effect-app/
|
|
24
|
+
import type { ParseResult, Schema } from "@effect-app/core/Schema"
|
|
25
|
+
import { NonNegativeInt } from "@effect-app/core/Schema"
|
|
26
26
|
import type { NonEmptyArray, NonEmptyReadonlyArray } from "effect-app"
|
|
27
27
|
import {
|
|
28
28
|
Array,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
|
|
3
|
-
import { NonEmptyString255 } from "@effect-app/
|
|
3
|
+
import { NonEmptyString255 } from "@effect-app/core/Schema"
|
|
4
4
|
import { Array, Effect, FiberRef, flow, Option, Order, pipe, Ref, Struct } from "effect-app"
|
|
5
5
|
import type { NonEmptyReadonlyArray } from "effect-app"
|
|
6
6
|
import { get } from "effect-app/utils"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import type { FieldValues } from "@effect-app/infra/filter/types"
|
|
5
5
|
import type { FieldPath, FieldPathValue } from "@effect-app/infra/filter/types/path/eager"
|
|
6
6
|
import type { Ops } from "@effect-app/infra/services/Store/filterApi/query"
|
|
7
|
-
import type { NonNegativeInt } from "@effect-app/
|
|
7
|
+
import type { NonNegativeInt } from "@effect-app/core/Schema"
|
|
8
8
|
import type { Option, Pipeable, S } from "effect-app"
|
|
9
9
|
import { Data, flow } from "effect-app"
|
|
10
10
|
import type { Covariant } from "effect/Types"
|