@twin.org/entity-storage-connector-synchronised 0.0.2-next.5 → 0.0.2-next.7
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/cjs/index.cjs
CHANGED
|
@@ -87,11 +87,11 @@ class SynchronisedEntityStorageConnector {
|
|
|
87
87
|
/**
|
|
88
88
|
* The component needs to be started when the node is initialized.
|
|
89
89
|
* @param nodeIdentity The identity of the node starting the component.
|
|
90
|
-
* @param
|
|
90
|
+
* @param nodeLoggingComponentType The node logging component type.
|
|
91
91
|
* @param componentState A persistent state which can be modified by the method.
|
|
92
92
|
* @returns Nothing.
|
|
93
93
|
*/
|
|
94
|
-
async start(nodeIdentity,
|
|
94
|
+
async start(nodeIdentity, nodeLoggingComponentType, componentState) {
|
|
95
95
|
this._nodeIdentity = nodeIdentity;
|
|
96
96
|
// Tell the synchronised storage about this storage key
|
|
97
97
|
await this._eventBusComponent.publish(synchronisedStorageModels.SynchronisedStorageTopics.RegisterStorageKey, {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -85,11 +85,11 @@ class SynchronisedEntityStorageConnector {
|
|
|
85
85
|
/**
|
|
86
86
|
* The component needs to be started when the node is initialized.
|
|
87
87
|
* @param nodeIdentity The identity of the node starting the component.
|
|
88
|
-
* @param
|
|
88
|
+
* @param nodeLoggingComponentType The node logging component type.
|
|
89
89
|
* @param componentState A persistent state which can be modified by the method.
|
|
90
90
|
* @returns Nothing.
|
|
91
91
|
*/
|
|
92
|
-
async start(nodeIdentity,
|
|
92
|
+
async start(nodeIdentity, nodeLoggingComponentType, componentState) {
|
|
93
93
|
this._nodeIdentity = nodeIdentity;
|
|
94
94
|
// Tell the synchronised storage about this storage key
|
|
95
95
|
await this._eventBusComponent.publish(SynchronisedStorageTopics.RegisterStorageKey, {
|
|
@@ -23,11 +23,11 @@ export declare class SynchronisedEntityStorageConnector<T extends ISynchronisedE
|
|
|
23
23
|
/**
|
|
24
24
|
* The component needs to be started when the node is initialized.
|
|
25
25
|
* @param nodeIdentity The identity of the node starting the component.
|
|
26
|
-
* @param
|
|
26
|
+
* @param nodeLoggingComponentType The node logging component type.
|
|
27
27
|
* @param componentState A persistent state which can be modified by the method.
|
|
28
28
|
* @returns Nothing.
|
|
29
29
|
*/
|
|
30
|
-
start(nodeIdentity: string,
|
|
30
|
+
start(nodeIdentity: string, nodeLoggingComponentType: string | undefined, componentState?: {
|
|
31
31
|
[id: string]: unknown;
|
|
32
32
|
}): Promise<void>;
|
|
33
33
|
/**
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.7](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-synchronised-v0.0.2-next.6...entity-storage-connector-synchronised-v0.0.2-next.7) (2025-08-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **entity-storage-connector-synchronised:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/entity-storage-models bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @twin.org/entity-storage-connector-memory bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
18
|
+
|
|
19
|
+
## [0.0.2-next.6](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-synchronised-v0.0.2-next.5...entity-storage-connector-synchronised-v0.0.2-next.6) (2025-08-19)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* update framework core ([b59a380](https://github.com/twinfoundation/entity-storage/commit/b59a380bb7fba2b43610f69074dcdee24a4737da))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Dependencies
|
|
28
|
+
|
|
29
|
+
* The following workspace dependencies were updated
|
|
30
|
+
* dependencies
|
|
31
|
+
* @twin.org/entity-storage-models bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
32
|
+
* devDependencies
|
|
33
|
+
* @twin.org/entity-storage-connector-memory bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
34
|
+
|
|
3
35
|
## [0.0.2-next.5](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-synchronised-v0.0.2-next.4...entity-storage-connector-synchronised-v0.0.2-next.5) (2025-08-11)
|
|
4
36
|
|
|
5
37
|
|
|
@@ -66,7 +66,7 @@ The schema for the entities.
|
|
|
66
66
|
|
|
67
67
|
### start()
|
|
68
68
|
|
|
69
|
-
> **start**(`nodeIdentity`, `
|
|
69
|
+
> **start**(`nodeIdentity`, `nodeLoggingComponentType`, `componentState?`): `Promise`\<`void`\>
|
|
70
70
|
|
|
71
71
|
The component needs to be started when the node is initialized.
|
|
72
72
|
|
|
@@ -78,9 +78,9 @@ The component needs to be started when the node is initialized.
|
|
|
78
78
|
|
|
79
79
|
The identity of the node starting the component.
|
|
80
80
|
|
|
81
|
-
#####
|
|
81
|
+
##### nodeLoggingComponentType
|
|
82
82
|
|
|
83
|
-
The node logging
|
|
83
|
+
The node logging component type.
|
|
84
84
|
|
|
85
85
|
`undefined` | `string`
|
|
86
86
|
|
|
@@ -204,7 +204,7 @@ Nothing.
|
|
|
204
204
|
|
|
205
205
|
### query()
|
|
206
206
|
|
|
207
|
-
> **query**(`conditions?`, `sortProperties?`, `properties?`, `cursor?`, `pageSize?`): `Promise`\<\{ `entities`: `Partial`\<`T`\>[]; `cursor
|
|
207
|
+
> **query**(`conditions?`, `sortProperties?`, `properties?`, `cursor?`, `pageSize?`): `Promise`\<\{ `entities`: `Partial`\<`T`\>[]; `cursor?`: `string`; \}\>
|
|
208
208
|
|
|
209
209
|
Find all the entities which match the conditions.
|
|
210
210
|
|
|
@@ -242,7 +242,7 @@ The suggested number of entities to return in each chunk, in some scenarios can
|
|
|
242
242
|
|
|
243
243
|
#### Returns
|
|
244
244
|
|
|
245
|
-
`Promise`\<\{ `entities`: `Partial`\<`T`\>[]; `cursor
|
|
245
|
+
`Promise`\<\{ `entities`: `Partial`\<`T`\>[]; `cursor?`: `string`; \}\>
|
|
246
246
|
|
|
247
247
|
All the entities for the storage matching the conditions,
|
|
248
248
|
and a cursor which can be used to request more entities.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/entity-storage-connector-synchronised",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.7",
|
|
4
4
|
"description": "Entity Storage connector implementation using synchronised storage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
18
|
"@twin.org/entity": "next",
|
|
19
|
-
"@twin.org/entity-storage-models": "0.0.2-next.
|
|
19
|
+
"@twin.org/entity-storage-models": "0.0.2-next.7",
|
|
20
20
|
"@twin.org/event-bus-models": "next",
|
|
21
21
|
"@twin.org/logging-models": "next",
|
|
22
22
|
"@twin.org/nameof": "next",
|