@workglow/storage 0.2.30 → 0.2.31
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/dist/browser.js +22 -14
- package/dist/browser.js.map +3 -3
- package/dist/bun.js +22 -14
- package/dist/bun.js.map +3 -3
- package/dist/node.js +22 -14
- package/dist/node.js.map +3 -3
- package/dist/tabular/TabularStorageRegistry.d.ts +13 -10
- package/dist/tabular/TabularStorageRegistry.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
import { ServiceRegistry } from "@workglow/util";
|
|
6
7
|
import { AnyTabularStorage } from "./ITabularStorage";
|
|
7
8
|
/**
|
|
8
9
|
* Service token for the tabular repository registry
|
|
@@ -10,20 +11,22 @@ import { AnyTabularStorage } from "./ITabularStorage";
|
|
|
10
11
|
*/
|
|
11
12
|
export declare const TABULAR_REPOSITORIES: import("@workglow/util").ServiceToken<Map<string, AnyTabularStorage>>;
|
|
12
13
|
/**
|
|
13
|
-
* Gets the
|
|
14
|
-
*
|
|
14
|
+
* Gets the tabular repository map from the given registry (defaults to global).
|
|
15
|
+
* Lazy-registers an empty map if absent — keeps scoped registries isolated.
|
|
15
16
|
*/
|
|
16
|
-
export declare function getGlobalTabularRepositories(): Map<string, AnyTabularStorage>;
|
|
17
|
+
export declare function getGlobalTabularRepositories(registry?: ServiceRegistry): Map<string, AnyTabularStorage>;
|
|
17
18
|
/**
|
|
18
|
-
* Registers a tabular repository
|
|
19
|
-
* @param id The unique identifier for this repository
|
|
20
|
-
* @param repository The repository instance to register
|
|
19
|
+
* Registers a tabular repository on the given registry by ID (defaults to global).
|
|
21
20
|
*/
|
|
22
|
-
export declare function registerTabularRepository(id: string, repository: AnyTabularStorage): void;
|
|
21
|
+
export declare function registerTabularRepository(id: string, repository: AnyTabularStorage, registry?: ServiceRegistry): void;
|
|
23
22
|
/**
|
|
24
|
-
* Gets a tabular repository by ID from the
|
|
25
|
-
* @param id The repository identifier
|
|
23
|
+
* Gets a tabular repository by ID from the given registry (defaults to global).
|
|
26
24
|
* @returns The repository instance or undefined if not found
|
|
27
25
|
*/
|
|
28
|
-
export declare function getTabularRepository(id: string): AnyTabularStorage | undefined;
|
|
26
|
+
export declare function getTabularRepository(id: string, registry?: ServiceRegistry): AnyTabularStorage | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Registers the tabular storage default factory and the "storage:tabular" input resolver/compactor
|
|
29
|
+
* on the given registry. Called by `bootstrapWorkglow` and `createOrchestrationContext`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function registerTabularStorageDefaults(registry?: ServiceRegistry): void;
|
|
29
32
|
//# sourceMappingURL=TabularStorageRegistry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabularStorageRegistry.d.ts","sourceRoot":"","sources":["../../src/tabular/TabularStorageRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"TabularStorageRegistry.d.ts","sourceRoot":"","sources":["../../src/tabular/TabularStorageRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAKL,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,uEAEhC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,GAAE,eAAuC,GAChD,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAKhC;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,GAAE,eAAuC,GAChD,IAAI,CAGN;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,EAAE,EAAE,MAAM,EACV,QAAQ,GAAE,eAAuC,GAChD,iBAAiB,GAAG,SAAS,CAE/B;AAgCD;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,QAAQ,GAAE,eAAuC,GAChD,IAAI,CAQN"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workglow/storage",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.31",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/workglow-dev/workglow.git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test": "bun test"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@workglow/util": "0.2.
|
|
29
|
+
"@workglow/util": "0.2.31"
|
|
30
30
|
},
|
|
31
31
|
"peerDependenciesMeta": {
|
|
32
32
|
"@workglow/util": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@workglow/util": "0.2.
|
|
37
|
+
"@workglow/util": "0.2.31"
|
|
38
38
|
},
|
|
39
39
|
"exports": {
|
|
40
40
|
".": {
|