@twin.org/entity-storage-connector-mongodb 0.0.2-next.6 → 0.0.2-next.8
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 +3 -1
- package/dist/esm/index.mjs +3 -1
- package/docs/changelog.md +32 -0
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -55,7 +55,7 @@ class MongoDbEntityStorageConnector {
|
|
|
55
55
|
* @returns A promise that resolves to a boolean indicating success.
|
|
56
56
|
*/
|
|
57
57
|
async bootstrap(nodeLoggingComponentType) {
|
|
58
|
-
const nodeLogging = core.ComponentFactory.getIfExists(nodeLoggingComponentType
|
|
58
|
+
const nodeLogging = core.ComponentFactory.getIfExists(nodeLoggingComponentType);
|
|
59
59
|
try {
|
|
60
60
|
await this._client.connect();
|
|
61
61
|
await nodeLogging?.log({
|
|
@@ -221,6 +221,8 @@ class MongoDbEntityStorageConnector {
|
|
|
221
221
|
const cursorValue = cursor ? Number(cursor) : 0;
|
|
222
222
|
const collection = await this.getCollection();
|
|
223
223
|
const entities = await collection
|
|
224
|
+
// False positive, this is not an array find call
|
|
225
|
+
// eslint-disable-next-line unicorn/no-array-callback-reference
|
|
224
226
|
?.find(filter, { projection })
|
|
225
227
|
.sort(sort)
|
|
226
228
|
.skip(cursorValue)
|
package/dist/esm/index.mjs
CHANGED
|
@@ -53,7 +53,7 @@ class MongoDbEntityStorageConnector {
|
|
|
53
53
|
* @returns A promise that resolves to a boolean indicating success.
|
|
54
54
|
*/
|
|
55
55
|
async bootstrap(nodeLoggingComponentType) {
|
|
56
|
-
const nodeLogging = ComponentFactory.getIfExists(nodeLoggingComponentType
|
|
56
|
+
const nodeLogging = ComponentFactory.getIfExists(nodeLoggingComponentType);
|
|
57
57
|
try {
|
|
58
58
|
await this._client.connect();
|
|
59
59
|
await nodeLogging?.log({
|
|
@@ -219,6 +219,8 @@ class MongoDbEntityStorageConnector {
|
|
|
219
219
|
const cursorValue = cursor ? Number(cursor) : 0;
|
|
220
220
|
const collection = await this.getCollection();
|
|
221
221
|
const entities = await collection
|
|
222
|
+
// False positive, this is not an array find call
|
|
223
|
+
// eslint-disable-next-line unicorn/no-array-callback-reference
|
|
222
224
|
?.find(filter, { projection })
|
|
223
225
|
.sort(sort)
|
|
224
226
|
.skip(cursorValue)
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @twin.org/entity-storage-connector-mongodb - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.8](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-mongodb-v0.0.2-next.7...entity-storage-connector-mongodb-v0.0.2-next.8) (2025-08-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* eslint migration to flat config ([f033b64](https://github.com/twinfoundation/entity-storage/commit/f033b64984c0e6a8129d929c9dd816dcc1b8dab0))
|
|
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.7 to 0.0.2-next.8
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @twin.org/entity-storage-connector-memory bumped from 0.0.2-next.7 to 0.0.2-next.8
|
|
18
|
+
|
|
19
|
+
## [0.0.2-next.7](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-mongodb-v0.0.2-next.6...entity-storage-connector-mongodb-v0.0.2-next.7) (2025-08-20)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* logging naming consistency ([f99d12d](https://github.com/twinfoundation/entity-storage/commit/f99d12dea04b6d4f2b5632ff5473e9ec7d5f9055))
|
|
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.6 to 0.0.2-next.7
|
|
32
|
+
* devDependencies
|
|
33
|
+
* @twin.org/entity-storage-connector-memory bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
34
|
+
|
|
3
35
|
## [0.0.2-next.6](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-mongodb-v0.0.2-next.5...entity-storage-connector-mongodb-v0.0.2-next.6) (2025-08-19)
|
|
4
36
|
|
|
5
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/entity-storage-connector-mongodb",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.8",
|
|
4
4
|
"description": "Entity Storage connector implementation using MongoDb storage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,10 +16,10 @@
|
|
|
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.8",
|
|
20
20
|
"@twin.org/logging-models": "next",
|
|
21
21
|
"@twin.org/nameof": "next",
|
|
22
|
-
"mongodb": "6.
|
|
22
|
+
"mongodb": "6.19.0"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/cjs/index.cjs",
|
|
25
25
|
"module": "./dist/esm/index.mjs",
|