@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.
Files changed (41) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/_cjs/RequestContext.cjs +4 -4
  3. package/_cjs/RequestContext.cjs.map +1 -1
  4. package/_cjs/api/setupRequest.cjs +2 -2
  5. package/_cjs/api/setupRequest.cjs.map +1 -1
  6. package/_cjs/logger/shared.cjs +2 -2
  7. package/_cjs/logger/shared.cjs.map +1 -1
  8. package/_cjs/services/Operations.cjs +2 -2
  9. package/_cjs/services/Operations.cjs.map +1 -1
  10. package/_cjs/services/RepositoryBase.cjs +3 -3
  11. package/_cjs/services/RepositoryBase.cjs.map +1 -1
  12. package/_cjs/services/Store/Memory.cjs +2 -2
  13. package/_cjs/services/Store/Memory.cjs.map +1 -1
  14. package/dist/RequestContext.js +2 -2
  15. package/dist/api/setupRequest.d.ts +1 -1
  16. package/dist/api/setupRequest.d.ts.map +1 -1
  17. package/dist/api/setupRequest.js +2 -2
  18. package/dist/logger/shared.js +2 -2
  19. package/dist/services/Emailer/service.d.ts +1 -1
  20. package/dist/services/Emailer/service.d.ts.map +1 -1
  21. package/dist/services/Operations.d.ts +1 -1
  22. package/dist/services/Operations.d.ts.map +1 -1
  23. package/dist/services/Operations.js +2 -2
  24. package/dist/services/RepositoryBase.d.ts +2 -2
  25. package/dist/services/RepositoryBase.d.ts.map +1 -1
  26. package/dist/services/RepositoryBase.js +3 -3
  27. package/dist/services/Store/Memory.d.ts +1 -1
  28. package/dist/services/Store/Memory.d.ts.map +1 -1
  29. package/dist/services/Store/Memory.js +2 -2
  30. package/dist/services/query/dsl.d.ts +1 -1
  31. package/dist/services/query/dsl.d.ts.map +1 -1
  32. package/package.json +4 -5
  33. package/src/RequestContext.ts +1 -1
  34. package/src/api/setupRequest.ts +1 -1
  35. package/src/logger/shared.ts +1 -1
  36. package/src/services/Emailer/service.ts +1 -1
  37. package/src/services/Operations.ts +1 -1
  38. package/src/services/RepositoryBase.ts +3 -3
  39. package/src/services/Store/Memory.ts +1 -1
  40. package/src/services/query/dsl.ts +1 -1
  41. 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.48.0",
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
- "@effect-app/core": "1.18.0",
24
- "@effect-app/infra-adapters": "1.22.0",
25
- "effect-app": "1.31.0",
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",
@@ -1,4 +1,4 @@
1
- import { NonEmptyString255 } from "@effect-app/schema"
1
+ import { NonEmptyString255 } from "@effect-app/core/Schema"
2
2
  import { FiberRef, S } from "effect-app"
3
3
  import { UserProfileId } from "effect-app/ids"
4
4
 
@@ -1,4 +1,4 @@
1
- import { NonEmptyString255 } from "@effect-app/schema"
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"
@@ -1,4 +1,4 @@
1
- import { NonEmptyString255 } from "@effect-app/schema"
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/schema"
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/schema"
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/schema/custom/Parser"
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/schema"
25
- import { NonNegativeInt } from "@effect-app/schema"
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/schema"
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/schema"
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"
package/tsconfig.src.json CHANGED
@@ -37,9 +37,6 @@
37
37
  {
38
38
  "path": "../infra-adapters"
39
39
  },
40
- {
41
- "path": "../schema"
42
- },
43
40
  {
44
41
  "path": "../core"
45
42
  },