@twin.org/entity-storage-connector-file 0.0.2-next.5 → 0.0.2-next.6

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.
@@ -4,7 +4,6 @@ var promises = require('node:fs/promises');
4
4
  var path = require('node:path');
5
5
  var core = require('@twin.org/core');
6
6
  var entity = require('@twin.org/entity');
7
- var loggingModels = require('@twin.org/logging-models');
8
7
 
9
8
  // Copyright 2024 IOTA Stiftung.
10
9
  // SPDX-License-Identifier: Apache-2.0.
@@ -51,11 +50,11 @@ class FileEntityStorageConnector {
51
50
  }
52
51
  /**
53
52
  * Bootstrap the connector by creating and initializing any resources it needs.
54
- * @param nodeLoggingConnectorType The node logging connector type, defaults to "node-logging".
53
+ * @param nodeLoggingComponentType The node logging component type.
55
54
  * @returns True if the bootstrapping process was successful.
56
55
  */
57
- async bootstrap(nodeLoggingConnectorType) {
58
- const nodeLogging = loggingModels.LoggingConnectorFactory.getIfExists(nodeLoggingConnectorType ?? "node-logging");
56
+ async bootstrap(nodeLoggingComponentType) {
57
+ const nodeLogging = core.ComponentFactory.getIfExists(nodeLoggingComponentType ?? "logging");
59
58
  if (!(await this.dirExists(this._directory))) {
60
59
  await nodeLogging?.log({
61
60
  level: "info",
@@ -1,8 +1,7 @@
1
1
  import { mkdir, readFile, writeFile, access } from 'node:fs/promises';
2
2
  import path from 'node:path';
3
- import { Guards, BaseError, Coerce, ObjectHelper, Is } from '@twin.org/core';
3
+ import { Guards, ComponentFactory, BaseError, Coerce, ObjectHelper, Is } from '@twin.org/core';
4
4
  import { EntitySchemaFactory, EntitySchemaHelper, EntitySorter, EntityConditions, ComparisonOperator } from '@twin.org/entity';
5
- import { LoggingConnectorFactory } from '@twin.org/logging-models';
6
5
 
7
6
  // Copyright 2024 IOTA Stiftung.
8
7
  // SPDX-License-Identifier: Apache-2.0.
@@ -49,11 +48,11 @@ class FileEntityStorageConnector {
49
48
  }
50
49
  /**
51
50
  * Bootstrap the connector by creating and initializing any resources it needs.
52
- * @param nodeLoggingConnectorType The node logging connector type, defaults to "node-logging".
51
+ * @param nodeLoggingComponentType The node logging component type.
53
52
  * @returns True if the bootstrapping process was successful.
54
53
  */
55
- async bootstrap(nodeLoggingConnectorType) {
56
- const nodeLogging = LoggingConnectorFactory.getIfExists(nodeLoggingConnectorType ?? "node-logging");
54
+ async bootstrap(nodeLoggingComponentType) {
55
+ const nodeLogging = ComponentFactory.getIfExists(nodeLoggingComponentType ?? "logging");
57
56
  if (!(await this.dirExists(this._directory))) {
58
57
  await nodeLogging?.log({
59
58
  level: "info",
@@ -16,10 +16,10 @@ export declare class FileEntityStorageConnector<T = unknown> implements IEntityS
16
16
  constructor(options: IFileEntityStorageConnectorConstructorOptions);
17
17
  /**
18
18
  * Bootstrap the connector by creating and initializing any resources it needs.
19
- * @param nodeLoggingConnectorType The node logging connector type, defaults to "node-logging".
19
+ * @param nodeLoggingComponentType The node logging component type.
20
20
  * @returns True if the bootstrapping process was successful.
21
21
  */
22
- bootstrap(nodeLoggingConnectorType?: string): Promise<boolean>;
22
+ bootstrap(nodeLoggingComponentType?: string): Promise<boolean>;
23
23
  /**
24
24
  * Get the schema for the entities.
25
25
  * @returns The schema for the entities.
package/docs/changelog.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @twin.org/entity-storage-connector-file - Changelog
2
2
 
3
+ ## [0.0.2-next.6](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-file-v0.0.2-next.5...entity-storage-connector-file-v0.0.2-next.6) (2025-08-19)
4
+
5
+
6
+ ### Features
7
+
8
+ * update framework core ([b59a380](https://github.com/twinfoundation/entity-storage/commit/b59a380bb7fba2b43610f69074dcdee24a4737da))
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.5 to 0.0.2-next.6
16
+ * devDependencies
17
+ * @twin.org/entity-storage-connector-memory bumped from 0.0.2-next.5 to 0.0.2-next.6
18
+
3
19
  ## [0.0.2-next.5](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-file-v0.0.2-next.4...entity-storage-connector-file-v0.0.2-next.5) (2025-08-11)
4
20
 
5
21
 
@@ -48,17 +48,17 @@ Runtime name for the class.
48
48
 
49
49
  ### bootstrap()
50
50
 
51
- > **bootstrap**(`nodeLoggingConnectorType?`): `Promise`\<`boolean`\>
51
+ > **bootstrap**(`nodeLoggingComponentType?`): `Promise`\<`boolean`\>
52
52
 
53
53
  Bootstrap the connector by creating and initializing any resources it needs.
54
54
 
55
55
  #### Parameters
56
56
 
57
- ##### nodeLoggingConnectorType?
57
+ ##### nodeLoggingComponentType?
58
58
 
59
59
  `string`
60
60
 
61
- The node logging connector type, defaults to "node-logging".
61
+ The node logging component type.
62
62
 
63
63
  #### Returns
64
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/entity-storage-connector-file",
3
- "version": "0.0.2-next.5",
3
+ "version": "0.0.2-next.6",
4
4
  "description": "Entity Storage connector implementation using file 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.5",
19
+ "@twin.org/entity-storage-models": "0.0.2-next.6",
20
20
  "@twin.org/logging-models": "next",
21
21
  "@twin.org/nameof": "next"
22
22
  },