@xyo-network/archivist 2.22.18 → 2.22.21

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.
@@ -16,5 +16,10 @@ export declare class XyoMemoryArchivist<C extends XyoMemoryArchivistConfig<XyoPa
16
16
  insert(payloads: XyoPayload[]): PromisableArray<XyoPayload>;
17
17
  find<R extends XyoPayload = XyoPayload>(query: XyoPayloadFindQuery): PromisableArray<R>;
18
18
  all(): Promise<XyoPayload[]> | XyoPayload[];
19
- commit(): Promise<import("@xyo-network/payload").XyoPayloadBase[]>;
19
+ commit(): Promise<{
20
+ schema: string;
21
+ previousHash?: string | undefined;
22
+ sources?: string[] | undefined;
23
+ timestamp?: number | undefined;
24
+ }[]>;
20
25
  }
package/package.json CHANGED
@@ -10,14 +10,14 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@xylabs/sdk-js": "^2.6.2",
13
- "@xyo-network/account": "^2.22.18",
14
- "@xyo-network/boundwitness": "^2.22.18",
15
- "@xyo-network/payload": "^2.22.18",
13
+ "@xyo-network/account": "^2.22.21",
14
+ "@xyo-network/boundwitness": "^2.22.21",
15
+ "@xyo-network/payload": "^2.22.21",
16
16
  "lru-cache": "^7.13.1"
17
17
  },
18
18
  "description": "Primary SDK for using XYO Protocol 2.0",
19
19
  "devDependencies": {
20
- "@xylabs/tsconfig": "^2.5.3",
20
+ "@xylabs/tsconfig": "^2.5.6",
21
21
  "tslib": "^2.4.0"
22
22
  },
23
23
  "browser": "dist/esm/index.js",
@@ -53,6 +53,6 @@
53
53
  },
54
54
  "sideEffects": false,
55
55
  "types": "dist/esm/index.d.ts",
56
- "version": "2.22.18",
56
+ "version": "2.22.21",
57
57
  "packageManager": "yarn@3.1.1"
58
58
  }
@@ -24,8 +24,14 @@ export interface StashArchivist<TReadResponse> {
24
24
  commit?(): PromisableArray<TReadResponse>
25
25
  }
26
26
 
27
- export interface Archivist<TReadResponse, TWriteResponse = TReadResponse, TWrite = TReadResponse, TQueryResponse = TReadResponse, TQuery = unknown, TId = string>
28
- extends ReadArchivist<TReadResponse, TId>,
27
+ export interface Archivist<
28
+ TReadResponse,
29
+ TWriteResponse = TReadResponse,
30
+ TWrite = TReadResponse,
31
+ TQueryResponse = TReadResponse,
32
+ TQuery = unknown,
33
+ TId = string
34
+ > extends ReadArchivist<TReadResponse, TId>,
29
35
  QueryArchivist<TReadResponse, TQueryResponse, TQuery>,
30
36
  WriteArchivist<TReadResponse, TWriteResponse, TWrite, TId>,
31
37
  StashArchivist<TReadResponse> {}