@effect-app/infra 0.133.10 → 0.133.12

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,26 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 0.133.12
4
+
5
+ ### Patch Changes
6
+
7
+ - cf69a10: update for schema
8
+ - Updated dependencies [cf69a10]
9
+ - @effect-app/schema@0.150.10
10
+ - @effect-app/infra-adapters@0.85.11
11
+ - @effect-app/prelude@0.107.11
12
+
13
+ ## 0.133.11
14
+
15
+ ### Patch Changes
16
+
17
+ - 5564b85: update packages
18
+ - Updated dependencies [5564b85]
19
+ - @effect-app/infra-adapters@0.85.10
20
+ - @effect-app/prelude@0.107.10
21
+ - @effect-app/schema@0.150.9
22
+ - @effect-app/core@0.97.3
23
+
3
24
  ## 0.133.10
4
25
 
5
26
  ### Patch Changes
@@ -14,7 +14,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
14
14
 
15
15
  const jwt = exports.jwt = S.transformOrFail(S.string, S.unknown, (s, __, ast) => S.ParseResult.try({
16
16
  try: () => (0, _jwtDecode.jwtDecode)(s),
17
- catch: e => S.ParseResult.parseError([S.ParseResult.type(ast, s, e.message)])
17
+ catch: e => S.ParseResult.parseError(S.ParseResult.type(ast, s, e.message))
18
18
  }), _ => {
19
19
  throw new Error("not implemented");
20
20
  });
@@ -1 +1 @@
1
- {"version":3,"file":"jwt.cjs","names":["S","_interopRequireWildcard","require","_jwtDecode","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","jwt","exports","transformOrFail","string","unknown","s","__","ast","ParseResult","try","jwtDecode","catch","parseError","type","message","_","Error"],"sources":["../../../../_src/api/express/schema/jwt.ts"],"sourcesContent":[null],"mappings":";;;;;;AAGA,IAAAA,CAAA,GAAAC,uBAAA,CAAA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AAe,CAClC3B,CAAC,CAAC4B,MAAM,EACR5B,CAAC,CAAC6B,OAAO,EACT,CAACC,CAAC,EAAEC,EAAE,EAAEC,GAAG,KACThC,CARS,CAQTiC,WAAW,CAACC,GAAG,CAAC;EACdA,GAAG,EAAEA,CAAA,KAAM,IAAAC,oBAAS,EAACL,CAAC,CAAC;EACvBM,KAAK,EAAG/B,CAAM,IAAKL,CAVZ,CAUYiC,WAAW,CAACI,UAAU,CAAC,CAACrC,CAVpC,CAUoCiC,WAAW,CAACK,IAAI,CAACN,GAAG,EAAEF,CAAC,EAAEzB,CAAC,CAACkC,OAAO,CAAC,CAAC;CAChF,CAAC,EACHC,CAAC,IAAqC;EACrC,MAAM,IAAIC,KAAK,CAAC,iBAAiB,CAAC;AACpC,CAAC,CACF"}
1
+ {"version":3,"file":"jwt.cjs","names":["S","_interopRequireWildcard","require","_jwtDecode","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","jwt","exports","transformOrFail","string","unknown","s","__","ast","ParseResult","try","jwtDecode","catch","parseError","type","message","_","Error"],"sources":["../../../../_src/api/express/schema/jwt.ts"],"sourcesContent":[null],"mappings":";;;;;;AAGA,IAAAA,CAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAAsC,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG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qC;EACrC,MAAM,IAAIC,KAAK,CAAC,iBAAiB,CAAC;AACpC,CAAC,CACF"}
@@ -11,7 +11,7 @@ export const jwt = S.transformOrFail(
11
11
  (s, __, ast) =>
12
12
  ParseResult.try({
13
13
  try: () => jwtDecode(s),
14
- catch: (e: any) => ParseResult.parseError([ParseResult.type(ast, s, e.message)])
14
+ catch: (e: any) => ParseResult.parseError(ParseResult.type(ast, s, e.message))
15
15
  }),
16
16
  (_): ParseResult.ParseResult<string> => {
17
17
  throw new Error("not implemented")
@@ -5,8 +5,8 @@ import * as S from "@effect-app/schema";
5
5
  import { jwtDecode } from "jwt-decode";
6
6
  export const jwt = S.transformOrFail(S.string, S.unknown, (s, __, ast) => S.ParseResult.try({
7
7
  try: () => jwtDecode(s),
8
- catch: (e) => S.ParseResult.parseError([S.ParseResult.type(ast, s, e.message)])
8
+ catch: (e) => S.ParseResult.parseError(S.ParseResult.type(ast, s, e.message))
9
9
  }), (_) => {
10
10
  throw new Error("not implemented");
11
11
  });
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiand0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vX3NyYy9hcGkvZXhwcmVzcy9zY2hlbWEvand0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDREQUE0RDtBQUM1RCx1REFBdUQ7QUFDdkQsaURBQWlEO0FBQ2pELE9BQU8sS0FBSyxDQUFDLE1BQU0sb0JBQW9CLENBQUE7QUFFdkMsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLFlBQVksQ0FBQTtBQUV0QyxNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsQ0FBQyxDQUFDLGVBQWUsQ0FDbEMsQ0FBQyxDQUFDLE1BQU0sRUFDUixDQUFDLENBQUMsT0FBTyxFQUNULENBQUMsQ0FBQyxFQUFFLEVBQUUsRUFBRSxHQUFHLEVBQUUsRUF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csQ0FBQyxHQUFHLENBQUM7SUFDZCxHQUFHLEVBQUUsR0FBRyxFQUFFLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQztJQUN2QixLQUFLLEVBQUUsQ0FBQyxDQUFNLEVBQUUsRUFBRSxDQUFDLEFBVmIsQ0FBQyxDQVVZLFdBQVcsQ0FBQyxVQUFVLENBQUMsQUFWcEMsQ0FBQyxDQVVtQyxXQUFXLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxDQUFDO0NBQy9FLENBQUMsRUFDSixDQUFDLENBQUMsRUFBbUMsRUFBRTtJQUNyQyxNQUFNLElBQUksS0FBSyxDQUFDLGlCQUFpQixDQUFDLENBQUE7QUFDcEMsQ0FBQyxDQUNGLENBQUEifQ==
@@ -99,7 +99,7 @@ export declare function makeRepo<PM extends {
99
99
  value: A_1;
100
100
  readonly S: PM;
101
101
  };
102
- }) => Where | readonly [Where, ...Where[]], mode?: "and" | "or" | undefined) => Filter<PM>;
102
+ }) => Where | readonly [Where, ...Where[]], mode?: "or" | "and" | undefined) => Filter<PM>;
103
103
  query: (fn: (f: import("./Store/filterApi/query.js").FilterTest<PM>, fields: import("./Store/filterApi/proxy.js").Filter<PM, never>) => QueryBuilder<PM>) => QueryBuilder<PM>;
104
104
  };
105
105
  /**
@@ -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, import("./shared.js").OptimisticLockException | simpledb.InvalidStateError | CouldNotAquireDbLockException, A>;
10
10
  };
11
11
  export declare function initialise(dir: string): void;
12
12
  //# sourceMappingURL=diskdb.d.ts.map
@@ -4,8 +4,8 @@ import { Option } from "@effect-app/core/Option";
4
4
  import type { DBRecord } 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>) => {
7
- find: (id: string) => import("effect/Effect").Effect<RDecode | simpledb.RecordCache, import("@effect/schema/ParseResult").ParseError | simpledb.InvalidStateError, import("effect/Option").Option<A>>;
7
+ find: (id: string) => import("effect/Effect").Effect<simpledb.RecordCache | RDecode, import("@effect/schema/ParseResult").ParseError | simpledb.InvalidStateError, import("effect/Option").Option<A>>;
8
8
  findBy: <V extends Partial<A>>(keys: V, eq: Equivalence<V>) => import("effect/Effect").Effect<RDecode, import("@effect/schema/ParseResult").ParseError, import("effect/Option").Option<A & {}>>;
9
- save: (record: A) => import("effect/Effect").Effect<REncode | simpledb.RecordCache, import("@effect/schema/ParseResult").ParseError | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
9
+ save: (record: A) => import("effect/Effect").Effect<simpledb.RecordCache | REncode, import("@effect/schema/ParseResult").ParseError | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
10
10
  };
11
11
  //# 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,22 +6,22 @@ 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<simpledb.RecordCache | RDecode | RedisClient, 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<simpledb.RecordCache | REncode | RedisClient, import("./shared.js").OptimisticLockException | simpledb.InvalidStateError | CouldNotAquireDbLockException, A>;
12
12
  };
13
13
  declare const RedisSerializedDBRecord_base: S.Class<{
14
- readonly version: string;
15
- readonly timestamp: string;
16
14
  readonly data: string;
17
- }, {
15
+ readonly timestamp: string;
18
16
  readonly version: string;
19
- readonly timestamp: Date;
20
- readonly data: string;
21
17
  }, {
22
- readonly version: string;
18
+ readonly data: string;
23
19
  readonly timestamp: Date;
20
+ readonly version: string;
21
+ }, {
24
22
  readonly data: string;
23
+ readonly timestamp: Date;
24
+ readonly version: string;
25
25
  }, RedisSerializedDBRecord, {
26
26
  version: S.Schema<string, string>;
27
27
  timestamp: S.Schema<string, Date>;
@@ -38,17 +38,17 @@ export interface DBRecord<TKey extends string> {
38
38
  id: TKey;
39
39
  }
40
40
  declare const SerializedDBRecord_base: S.Class<{
41
- readonly version: string;
42
- readonly timestamp: string;
43
41
  readonly data: string;
44
- }, {
42
+ readonly timestamp: string;
45
43
  readonly version: string;
46
- readonly timestamp: Date;
47
- readonly data: string;
48
44
  }, {
49
- readonly version: string;
45
+ readonly data: string;
50
46
  readonly timestamp: Date;
47
+ readonly version: string;
48
+ }, {
51
49
  readonly data: string;
50
+ readonly timestamp: Date;
51
+ readonly version: string;
52
52
  }, SerializedDBRecord, {
53
53
  version: S.Schema<string, string>;
54
54
  timestamp: S.Schema<string, Date>;
@@ -57,13 +57,13 @@ declare const SerializedDBRecord_base: S.Class<{
57
57
  export declare class SerializedDBRecord extends SerializedDBRecord_base {
58
58
  }
59
59
  export declare function makeSerialisedDBRecord(s: Schema<any, any>): S.Schema<{
60
- readonly version: number;
61
- readonly timestamp: string;
62
60
  readonly data: any;
63
- }, {
61
+ readonly timestamp: string;
64
62
  readonly version: number;
65
- readonly timestamp: Date;
63
+ }, {
66
64
  readonly data: any;
65
+ readonly timestamp: Date;
66
+ readonly version: number;
67
67
  }>;
68
68
  export interface CachedRecord<T> {
69
69
  version: string;
@@ -19,5 +19,5 @@ export declare const RecordCache: import("effect/Context").Tag<RecordCache, Reco
19
19
  export declare const LiveRecordCache: import("effect/Layer").Layer<never, never, RecordCache>;
20
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
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>;
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,13 +1,13 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "0.133.10",
3
+ "version": "0.133.12",
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/platform": "^0.40.3",
10
- "@effect/schema": "npm:@effect-app/schema-fork@0.0.0-20240108102209",
9
+ "@effect/platform": "^0.40.4",
10
+ "@effect/schema": "npm:@effect-app/schema-fork@0.0.0-20240109124241",
11
11
  "express-oauth2-jwt-bearer": "^1.6.0",
12
12
  "@faker-js/faker": "^8.3.1",
13
13
  "@sendgrid/helpers": "^8.0.0",
@@ -21,16 +21,16 @@
21
21
  "proper-lockfile": "^4.1.2",
22
22
  "pure-rand": "6.0.4",
23
23
  "redlock": "^4.2.0",
24
- "@effect-app/schema": "0.150.8",
25
- "@effect-app/infra-adapters": "0.85.9",
26
- "@effect-app/core": "0.97.2",
27
- "@effect-app/prelude": "0.107.9"
24
+ "@effect-app/core": "0.97.3",
25
+ "@effect-app/prelude": "0.107.11",
26
+ "@effect-app/infra-adapters": "0.85.11",
27
+ "@effect-app/schema": "0.150.10"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@babel/cli": "^7.23.4",
31
31
  "@sentry/node": "^7.92.0",
32
32
  "@types/express": "^4.17.21",
33
- "@types/node": "~20.10.7",
33
+ "@types/node": "~20.10.8",
34
34
  "@types/proper-lockfile": "^4.1.4",
35
35
  "@types/redis": "^2.8.32",
36
36
  "@types/redlock": "^4.0.7",