@effect-app/infra 0.113.10 → 0.115.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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 0.115.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e0b2e24: fix: update for Secret
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [e0b2e24]
12
+ - @effect-app/prelude@0.91.0
13
+ - @effect-app/core@0.85.0
14
+ - @effect-app/infra-adapters@0.71.1
15
+ - @effect-app/schema@0.82.1
16
+
17
+ ## 0.114.0
18
+
19
+ ### Minor Changes
20
+
21
+ - ac36723: update dependencies
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [ac36723]
26
+ - @effect-app/infra-adapters@0.71.0
27
+ - @effect-app/prelude@0.90.0
28
+ - @effect-app/schema@0.82.0
29
+ - @effect-app/core@0.84.0
30
+
3
31
  ## 0.113.10
4
32
 
5
33
  ### Patch Changes
@@ -7,7 +7,7 @@ exports.writeOpenapiDocs = writeOpenapiDocs;
7
7
  exports.writeOpenapiDocsI = writeOpenapiDocsI;
8
8
  var tsplus_module_1 = _interopRequireWildcard(require("effect/Effect"));
9
9
  var tsplus_module_2 = _interopRequireWildcard(require("effect/Order"));
10
- var tsplus_module_3 = _interopRequireWildcard(require("@effect-app/core/Array"));
10
+ var tsplus_module_3 = _interopRequireWildcard(require("effect/ReadonlyArray"));
11
11
  var _utils = require("@effect-app/core/utils");
12
12
  var _fileUtil = require("@effect-app/infra-adapters/fileUtil");
13
13
  var Plutus = _interopRequireWildcard(require("@effect-app/infra-adapters/Openapi/atlas-plutus"));
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.LiveSendgrid = LiveSendgrid;
7
7
  exports.isTestAddress = isTestAddress;
8
8
  exports.renderMessage = renderMessage;
9
- var tsplus_module_1 = _interopRequireWildcard(require("effect/ConfigSecret"));
9
+ var tsplus_module_1 = _interopRequireWildcard(require("effect/Secret"));
10
10
  var tsplus_module_2 = _interopRequireWildcard(require("effect/Effect"));
11
11
  var tsplus_module_3 = _interopRequireWildcard(require("effect/Layer"));
12
12
  var tsplus_module_4 = _interopRequireWildcard(require("effect/Equivalence"));
@@ -7,7 +7,7 @@ var _exportNames = {
7
7
  StoreMakerLive: true
8
8
  };
9
9
  exports.StoreMakerLive = StoreMakerLive;
10
- var tsplus_module_1 = _interopRequireWildcard(require("effect/ConfigSecret"));
10
+ var tsplus_module_1 = _interopRequireWildcard(require("effect/Secret"));
11
11
  var tsplus_module_2 = _interopRequireWildcard(require("effect/Effect"));
12
12
  var tsplus_module_3 = _interopRequireWildcard(require("effect/Layer"));
13
13
  var CosmosClient = _interopRequireWildcard(require("@effect-app/infra-adapters/cosmos-client"));
@@ -15,7 +15,7 @@ export interface SendgridConfig {
15
15
  subjectPrefix: string
16
16
  realMail: boolean
17
17
  defaultFrom: Email | { name?: NonEmptyString255; email: Email }
18
- apiKey: ConfigSecret
18
+ apiKey: Secret
19
19
  }
20
20
  export type EmailMsg = sgMail.MailDataRequired
21
21
  export type EmailTemplateMsg = MailData & { templateId: string }
@@ -179,7 +179,7 @@ export interface PersistenceModelType<Id extends string> {
179
179
  }
180
180
 
181
181
  export interface StorageConfig {
182
- url: ConfigSecret
182
+ url: Secret
183
183
  prefix: string
184
184
  dbName: string
185
185
  }
@@ -1,6 +1,6 @@
1
1
  import * as tsplus_module_1 from "effect/Effect";
2
2
  import * as tsplus_module_2 from "effect/Order";
3
- import * as tsplus_module_3 from "@effect-app/core/Array";
3
+ import * as tsplus_module_3 from "effect/ReadonlyArray";
4
4
  import { typedValuesOf } from "@effect-app/core/utils";
5
5
  import { writeTextFile } from "@effect-app/infra-adapters/fileUtil";
6
6
  import * as Plutus from "@effect-app/infra-adapters/Openapi/atlas-plutus";
@@ -1,4 +1,4 @@
1
- import * as tsplus_module_1 from "effect/ConfigSecret";
1
+ import * as tsplus_module_1 from "effect/Secret";
2
2
  import * as tsplus_module_2 from "effect/Effect";
3
3
  import * as tsplus_module_3 from "effect/Layer";
4
4
  import * as tsplus_module_4 from "effect/Equivalence";
@@ -1,7 +1,7 @@
1
1
  import { TagClass } from "@effect-app/prelude/service";
2
2
  import { Effect } from "effect/Effect";
3
3
  import { Email, NonEmptyString255 } from "@effect-app/prelude/schema";
4
- import { ConfigSecret } from "effect/ConfigSecret";
4
+ import { Secret } from "effect/Secret";
5
5
  import { NonEmptyReadonlyArray } from "effect/ReadonlyArray";
6
6
  import type { MailContent, MailData } from "@sendgrid/helpers/classes/mail.js";
7
7
  import type { ResponseError } from "@sendgrid/mail";
@@ -25,7 +25,7 @@ export interface SendgridConfig {
25
25
  name?: NonEmptyString255;
26
26
  email: Email;
27
27
  };
28
- apiKey: ConfigSecret;
28
+ apiKey: Secret;
29
29
  }
30
30
  export type EmailMsg = sgMail.MailDataRequired;
31
31
  export type EmailTemplateMsg = MailData & {
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../_src/services/Emailer/service.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAA;;AAExC;;;GAGG;AACH,8BAAsB,OAAQ,SAAQ,YAAmB;IACvD,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,aAAa,EAAE,IAAI,CAAC,CAAA;CAC7F;AAED,MAAM,WAAW,cAAc;IAC7B,cAAc,CAAC,EAAE,KAAK,GAAG;QAAE,IAAI,CAAC,EAAE,iBAAiB,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,CAAA;IACnE,aAAa,EAAE,MAAM,CA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AK,CAAA;KAAE,CAAA;IACnE,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,KAAK,GAAG;QAAE,IAAI,CAAC,EAAE,iBAAiB,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,CAAA;IAC/D,MAAM,EAAE,MAAM,CAAA;CACf;AACD,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAA;AAC9C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhE,MAAM,MAAM,oBAAoB,GAC5B,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,GACtB,CACA;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAA;CAAE,CAC/G,GACC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAA"}
@@ -110,7 +110,7 @@ export declare function makeRepo<PM extends {
110
110
  value: A_1;
111
111
  readonly S: PM;
112
112
  };
113
- }) => Where | readonly [Where, ...Where[]], mode?: "or" | "and" | undefined) => Filter<PM>;
113
+ }) => Where | readonly [Where, ...Where[]], mode?: "and" | "or" | undefined) => Filter<PM>;
114
114
  };
115
115
  /**
116
116
  * only use this as a shortcut if you don't have the item already
@@ -1,4 +1,4 @@
1
- import * as tsplus_module_1 from "effect/ConfigSecret";
1
+ import * as tsplus_module_1 from "effect/Secret";
2
2
  import * as tsplus_module_2 from "effect/Effect";
3
3
  import * as tsplus_module_3 from "effect/Layer";
4
4
  /* eslint-disable @typescript-eslint/no-explicit-any */
@@ -2,7 +2,7 @@ import { Effect } from "effect/Effect";
2
2
  import { Option } from "@effect-app/core/Option";
3
3
  import { NonEmptyReadonlyArray } from "effect/ReadonlyArray";
4
4
  import { TagClass } from "@effect-app/prelude/service";
5
- import { ConfigSecret } from "effect/ConfigSecret";
5
+ import { Secret } from "effect/Secret";
6
6
  import type { UniqueKey } from "@azure/cosmos";
7
7
  import type { ParserEnv } from "@effect-app/schema/custom/Parser";
8
8
  import type { OptimisticConcurrencyException } from "../../errors.js";
@@ -116,7 +116,7 @@ export interface PersistenceModelType<Id extends string> {
116
116
  _etag: string | undefined;
117
117
  }
118
118
  export interface StorageConfig {
119
- url: ConfigSecret;
119
+ url: Secret;
120
120
  prefix: string;
121
121
  dbName: string;
122
122
  }
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/service.ts"],"names":[],"mappings":";;;;;AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAU,SAAS,EAAE,MAAM,kCAAkC,CAAA;AAGzE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAErE,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,UAAU,CAAC,EAAE,SAAS,EAAE,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,CAAA;IAC5C,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAA;CAChD,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAA;AAC9D,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;AAGxD,MAAM,MAAM,KAAK,GACb;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,IAAI,GAAG,QAAQ,CAAC;IAAC,KAAK,EAAE,eAAe,CAAA;CAAE,GAC5D;IAAE,GAAG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from "./shared.js";
8
8
  import * as simpledb from "./simpledb.js";
9
9
  export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => Effect<REncode, never, EA>, decode: (d: EA) => Effect<RDecode, EDecode, A>, indexes: IndexingPolicy) => import("effect/Effect").Effect<Cosmos.CosmosClient, import("effect/Cause").UnknownException, {
10
- find: (id: string) => import("effect/Effect").Effect<RDecode | Cosmos.CosmosClient | simpledb.RecordCache, import("effect/Cause").UnknownException | simpledb.InvalidStateError, import("effect/Option").Option<A>>;
10
+ find: (id: string) => import("effect/Effect").Effect<Cosmos.CosmosClient | simpledb.RecordCache | RDecode, import("effect/Cause").UnknownException | simpledb.InvalidStateError, import("effect/Option").Option<A>>;
11
11
  findBy: (parameters: Record<string, string>) => import("effect/Effect").Effect<Cosmos.CosmosClient, import("effect/Cause").UnknownException, import("effect/Option").Option<any>>;
12
- save: (record: A) => import("effect/Effect").Effect<REncode | Cosmos.CosmosClient | simpledb.RecordCache, OptimisticLockException, A>;
12
+ save: (record: A) => import("effect/Effect").Effect<Cosmos.CosmosClient | simpledb.RecordCache | REncode, OptimisticLockException, A>;
13
13
  }>;
14
14
  //# sourceMappingURL=cosmosdb.d.ts.map
@@ -4,9 +4,9 @@ import type { DBRecord, Index } from "./shared.js";
4
4
  import { CouldNotAquireDbLockException } from "./shared.js";
5
5
  import * as simpledb from "./simpledb.js";
6
6
  export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => Effect<REncode, never, EA>, decode: (d: EA) => Effect<RDecode, EDecode, A>, schemaVersion: string, makeIndexKey: (r: A) => Index, dir?: string) => {
7
- find: (id: string) => import("effect/Effect").Effect<RDecode | simpledb.RecordCache, simpledb.InvalidStateError, import("effect/Option").Option<A>>;
7
+ find: (id: string) => import("effect/Effect").Effect<simpledb.RecordCache | RDecode, simpledb.InvalidStateError, import("effect/Option").Option<A>>;
8
8
  findByIndex: (index: Index) => import("effect/Effect").Effect<never, never, import("effect/Option").Option<TKey & {}>>;
9
- save: (record: A) => import("effect/Effect").Effect<REncode | simpledb.RecordCache, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
9
+ save: (record: A) => import("effect/Effect").Effect<simpledb.RecordCache | REncode, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
10
10
  };
11
11
  export declare function initialise(dir: string): void;
12
12
  //# sourceMappingURL=diskdb.d.ts.map
@@ -5,8 +5,8 @@ import * as S from "@effect-app/schema";
5
5
  import type { DBRecord } from "./shared.js";
6
6
  import * as simpledb from "./simpledb.js";
7
7
  export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => Effect<REncode, never, EA>, decode: (d: EA) => Effect<RDecode, EDecode, A>) => {
8
- find: (id: string) => import("effect/Effect").Effect<RDecode | simpledb.RecordCache, S.CondemnException | simpledb.InvalidStateError, import("effect/Option").Option<A>>;
8
+ find: (id: string) => import("effect/Effect").Effect<simpledb.RecordCache | RDecode, simpledb.InvalidStateError | S.CondemnException, import("effect/Option").Option<A>>;
9
9
  findBy: <V extends Partial<A>>(keys: V, eq: Equivalence<V>) => import("effect/Effect").Effect<RDecode, S.CondemnException, import("effect/Option").Option<A & {}>>;
10
- save: (record: A) => import("effect/Effect").Effect<REncode | simpledb.RecordCache, S.CondemnException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
10
+ save: (record: A) => import("effect/Effect").Effect<simpledb.RecordCache | REncode, import("./shared.js").OptimisticLockException | simpledb.InvalidStateError | S.CondemnException, A>;
11
11
  };
12
12
  //# sourceMappingURL=memdb.d.ts.map
@@ -6,8 +6,8 @@ import type { DBRecord } from "./shared.js";
6
6
  import { OptimisticLockException } from "./shared.js";
7
7
  import * as simpledb from "./simpledb.js";
8
8
  export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => Effect<REncode, never, EA>, decode: (d: EA) => Effect<RDecode, EDecode, A>, indexes: IndexDescription[]) => import("effect/Effect").Effect<MongoClient, import("effect/Cause").UnknownException, {
9
- find: (id: string) => import("effect/Effect").Effect<RDecode | MongoClient | simpledb.RecordCache, import("effect/Cause").UnknownException | simpledb.InvalidStateError, import("effect/Option").Option<A>>;
9
+ find: (id: string) => import("effect/Effect").Effect<simpledb.RecordCache | RDecode | MongoClient, import("effect/Cause").UnknownException | simpledb.InvalidStateError, import("effect/Option").Option<A>>;
10
10
  findBy: (keys: Record<string, string>) => import("effect/Effect").Effect<MongoClient, import("effect/Cause").UnknownException, import("effect/Option").Option<TKey>>;
11
- save: (record: A) => import("effect/Effect").Effect<REncode | MongoClient | simpledb.RecordCache, OptimisticLockException, A>;
11
+ save: (record: A) => import("effect/Effect").Effect<simpledb.RecordCache | REncode | MongoClient, OptimisticLockException, A>;
12
12
  }>;
13
13
  //# sourceMappingURL=mongodb.d.ts.map
@@ -6,9 +6,9 @@ import type { DBRecord, Index } from "./shared.js";
6
6
  import { CouldNotAquireDbLockException } from "./shared.js";
7
7
  import * as simpledb from "./simpledb.js";
8
8
  export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => Effect<REncode, never, EA>, decode: (d: EA) => Effect<RDecode, EDecode, A>, schemaVersion: string, makeIndexKey: (r: A) => Index) => {
9
- find: (id: string) => import("effect/Effect").Effect<RDecode | RedisClient | simpledb.RecordCache, simpledb.InvalidStateError, import("effect/Option").Option<A>>;
9
+ find: (id: string) => import("effect/Effect").Effect<RedisClient | simpledb.RecordCache | RDecode, simpledb.InvalidStateError, import("effect/Option").Option<A>>;
10
10
  findByIndex: (index: Index) => import("effect/Effect").Effect<RedisClient, import("@effect-app/infra-adapters/redis-client").ConnectionException, import("effect/Option").Option<TKey>>;
11
- save: (record: A) => import("effect/Effect").Effect<REncode | RedisClient | simpledb.RecordCache, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
11
+ save: (record: A) => import("effect/Effect").Effect<RedisClient | simpledb.RecordCache | REncode, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
12
12
  };
13
13
  declare const RedisSerializedDBRecord_base: S.Class<RedisSerializedDBRecord, S.SchemaProperties<S.ToProps<{
14
14
  version: S.SchemaDefaultSchema<unknown, string, string, string, {}>;
@@ -17,7 +17,7 @@ export interface RecordCache extends ReturnType<typeof makeLiveRecordCache> {
17
17
  }
18
18
  export declare const RecordCache: import("effect/Context").Tag<RecordCache, RecordCache>;
19
19
  export declare const LiveRecordCache: import("effect/Layer").Layer<never, never, RecordCache>;
20
- export declare function find<R, RDecode, EDecode, E, EA, A>(tryRead: (id: string) => Effect<R, E, Option<CachedRecord<EA>>>, decode: (d: EA) => Effect<RDecode, EDecode, A>, type: string): (id: string) => import("effect/Effect").Effect<R | RDecode | RecordCache, E | InvalidStateError, import("effect/Option").Option<A>>;
21
- export declare function storeDirectly<R, E, TKey extends string, A extends DBRecord<TKey>>(save: (r: A, version: Option<Version>) => Effect<R, E, CachedRecord<A>>, type: string): (record: A) => import("effect/Effect").Effect<R | RecordCache, E, A>;
22
- export declare function store<R, E, R2, E2, TKey extends string, EA, A extends DBRecord<TKey>>(tryRead: (id: string) => Effect<R, E, Option<CachedRecord<EA>>>, save: (r: A, version: Option<Version>) => Effect<R, E, CachedRecord<A>>, lock: (id: string) => Effect<R2 | Scope, E2, unknown>, type: string): (record: A) => import("effect/Effect").Effect<R | RecordCache | Exclude<R2, import("effect/Scope").Scope>, E | E2 | OptimisticLockException | InvalidStateError, A>;
20
+ export declare function find<R, RDecode, EDecode, E, EA, A>(tryRead: (id: string) => Effect<R, E, Option<CachedRecord<EA>>>, decode: (d: EA) => Effect<RDecode, EDecode, A>, type: string): (id: string) => import("effect/Effect").Effect<RecordCache | R | RDecode, InvalidStateError | E, import("effect/Option").Option<A>>;
21
+ export declare function storeDirectly<R, E, TKey extends string, A extends DBRecord<TKey>>(save: (r: A, version: Option<Version>) => Effect<R, E, CachedRecord<A>>, type: string): (record: A) => import("effect/Effect").Effect<RecordCache | R, E, A>;
22
+ export declare function store<R, E, R2, E2, TKey extends string, EA, A extends DBRecord<TKey>>(tryRead: (id: string) => Effect<R, E, Option<CachedRecord<EA>>>, save: (r: A, version: Option<Version>) => Effect<R, E, CachedRecord<A>>, lock: (id: string) => Effect<R2 | Scope, E2, unknown>, type: string): (record: A) => import("effect/Effect").Effect<RecordCache | R | Exclude<R2, import("effect/Scope").Scope>, OptimisticLockException | InvalidStateError | E | E2, A>;
23
23
  //# sourceMappingURL=simpledb.d.ts.map
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "0.113.10",
3
+ "version": "0.115.0",
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": "^2.0.0-next.58",
9
+ "effect": "^2.0.0-next.59",
10
10
  "@faker-js/faker": "^8.3.1",
11
- "@sendgrid/helpers": "^7.7.0",
12
- "@sendgrid/mail": "^7.7.0",
13
- "change-case": "^5.2.0",
11
+ "@sendgrid/helpers": "^8.0.0",
12
+ "@sendgrid/mail": "^8.1.0",
13
+ "change-case": "^5.3.0",
14
14
  "cross-fetch": "^4.0.0",
15
15
  "fast-check": "~3.14.0",
16
16
  "object-hash": "^3.0.0",
@@ -18,14 +18,14 @@
18
18
  "proper-lockfile": "^4.1.2",
19
19
  "pure-rand": "6.0.4",
20
20
  "redlock": "^4.2.0",
21
- "@effect-app/core": "0.83.3",
22
- "@effect-app/infra-adapters": "0.70.11",
23
- "@effect-app/prelude": "0.89.0",
24
- "@effect-app/schema": "0.81.0"
21
+ "@effect-app/core": "0.85.0",
22
+ "@effect-app/schema": "0.82.1",
23
+ "@effect-app/prelude": "0.91.0",
24
+ "@effect-app/infra-adapters": "0.71.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@babel/cli": "^7.23.4",
28
- "@sentry/node": "^7.84.0",
28
+ "@sentry/node": "^7.85.0",
29
29
  "@types/express": "^4.17.21",
30
30
  "@types/node": "~20.10.3",
31
31
  "@types/proper-lockfile": "^4.1.4",
@@ -39,7 +39,7 @@
39
39
  "ts-node": "^10.9.1",
40
40
  "typescript": "npm:@effect-app/typescript@5.4.0-tsplus.202311222",
41
41
  "vitest": "^1.0.1",
42
- "@effect-app/compiler": "0.41.0"
42
+ "@effect-app/compiler": "0.42.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "express": "^4.18.2"