@twin.org/entity-storage-connector-memory 0.0.1-next.28 → 0.0.1-next.29

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/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/entity-storage-connector-memory - Changelog
2
2
 
3
+ ## [0.0.1-next.29](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-memory-v0.0.1-next.28...entity-storage-connector-memory-v0.0.1-next.29) (2025-04-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * use shared store mechanism ([#34](https://github.com/twinfoundation/entity-storage/issues/34)) ([68b6b71](https://github.com/twinfoundation/entity-storage/commit/68b6b71e7a96d7d016cd57bfff36775b56bf3f93))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/entity-storage-models bumped from 0.0.1-next.28 to 0.0.1-next.29
16
+
3
17
  ## [0.0.1-next.28](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-memory-v0.0.1-next.27...entity-storage-connector-memory-v0.0.1-next.28) (2025-04-09)
4
18
 
5
19
 
@@ -4,7 +4,9 @@ Class for performing entity storage operations in-memory.
4
4
 
5
5
  ## Type Parameters
6
6
 
7
- **T** = `unknown`
7
+ ### T
8
+
9
+ `T` = `unknown`
8
10
 
9
11
  ## Implements
10
12
 
@@ -12,9 +14,9 @@ Class for performing entity storage operations in-memory.
12
14
 
13
15
  ## Constructors
14
16
 
15
- ### new MemoryEntityStorageConnector()
17
+ ### Constructor
16
18
 
17
- > **new MemoryEntityStorageConnector**\<`T`\>(`options`): [`MemoryEntityStorageConnector`](MemoryEntityStorageConnector.md)\<`T`\>
19
+ > **new MemoryEntityStorageConnector**\<`T`\>(`options`): `MemoryEntityStorageConnector`\<`T`\>
18
20
 
19
21
  Create a new instance of MemoryEntityStorageConnector.
20
22
 
@@ -28,7 +30,7 @@ The options for the connector.
28
30
 
29
31
  #### Returns
30
32
 
31
- [`MemoryEntityStorageConnector`](MemoryEntityStorageConnector.md)\<`T`\>
33
+ `MemoryEntityStorageConnector`\<`T`\>
32
34
 
33
35
  ## Properties
34
36
 
@@ -64,7 +66,7 @@ The schema for the entities.
64
66
 
65
67
  ### get()
66
68
 
67
- > **get**(`id`, `secondaryIndex`?, `conditions`?): `Promise`\<`undefined` \| `T`\>
69
+ > **get**(`id`, `secondaryIndex?`, `conditions?`): `Promise`\<`undefined` \| `T`\>
68
70
 
69
71
  Get an entity.
70
72
 
@@ -102,7 +104,7 @@ The object if it can be found or undefined.
102
104
 
103
105
  ### set()
104
106
 
105
- > **set**(`entity`, `conditions`?): `Promise`\<`void`\>
107
+ > **set**(`entity`, `conditions?`): `Promise`\<`void`\>
106
108
 
107
109
  Set an entity.
108
110
 
@@ -134,7 +136,7 @@ The id of the entity.
134
136
 
135
137
  ### remove()
136
138
 
137
- > **remove**(`id`, `conditions`?): `Promise`\<`void`\>
139
+ > **remove**(`id`, `conditions?`): `Promise`\<`void`\>
138
140
 
139
141
  Remove the entity.
140
142
 
@@ -166,7 +168,7 @@ Nothing.
166
168
 
167
169
  ### query()
168
170
 
169
- > **query**(`conditions`?, `sortProperties`?, `properties`?, `cursor`?, `pageSize`?): `Promise`\<\{ `entities`: `Partial`\<`T`\>[]; `cursor`: `string`; \}\>
171
+ > **query**(`conditions?`, `sortProperties?`, `properties?`, `cursor?`, `pageSize?`): `Promise`\<\{ `entities`: `Partial`\<`T`\>[]; `cursor`: `string`; \}\>
170
172
 
171
173
  Find all the entities which match the conditions.
172
174
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/entity-storage-connector-memory",
3
- "version": "0.0.1-next.28",
3
+ "version": "0.0.1-next.29",
4
4
  "description": "Entity Storage connector implementation using in-memory 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.1-next.28",
19
+ "@twin.org/entity-storage-models": "0.0.1-next.29",
20
20
  "@twin.org/nameof": "next"
21
21
  },
22
22
  "main": "./dist/cjs/index.cjs",