@twin.org/engine-core 0.0.2-next.17 → 0.0.2-next.18

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.
@@ -74,11 +74,6 @@ class EngineCore {
74
74
  * Name for the engine logger.
75
75
  */
76
76
  static LOGGER_TYPE_NAME = "engine";
77
- /**
78
- * Runtime name for the class in camel case.
79
- * @internal
80
- */
81
- static _CLASS_NAME_CAMEL_CASE = core.StringHelper.camelCase("EngineCore");
82
77
  /**
83
78
  * Runtime name for the class.
84
79
  * @internal
@@ -188,9 +183,9 @@ class EngineCore {
188
183
  return false;
189
184
  }
190
185
  this.setupEngineLogger();
191
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.starting`));
186
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.starting`));
192
187
  if (this._context.config.debug) {
193
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.debuggingEnabled`));
188
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.debuggingEnabled`));
194
189
  }
195
190
  let canContinue;
196
191
  try {
@@ -200,18 +195,18 @@ class EngineCore {
200
195
  await this.initialiseTypeConfig(type, typeConfig, module, method);
201
196
  }
202
197
  await this.bootstrap();
203
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentsStarting`));
198
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.componentsStarting`));
204
199
  for (const instance of this._context.componentInstances) {
205
200
  if (core.Is.function(instance.component.start)) {
206
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentStarting`, {
201
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.componentStarting`, {
207
202
  element: instance.instanceType
208
203
  }));
209
204
  await instance.component.start(this._context.state.nodeIdentity, this._loggerTypeName);
210
205
  }
211
206
  }
212
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentsComplete`));
207
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.componentsComplete`));
213
208
  }
214
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.started`));
209
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.started`));
215
210
  this._isStarted = true;
216
211
  }
217
212
  catch (err) {
@@ -230,11 +225,11 @@ class EngineCore {
230
225
  * @returns Nothing.
231
226
  */
232
227
  async stop() {
233
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.stopping`));
234
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentsStopping`));
228
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.stopping`));
229
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.componentsStopping`));
235
230
  for (const instance of this._context.componentInstances) {
236
231
  if (core.Is.function(instance.component.stop)) {
237
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentStopping`, {
232
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.componentStopping`, {
238
233
  element: instance.instanceType
239
234
  }));
240
235
  try {
@@ -248,8 +243,8 @@ class EngineCore {
248
243
  }
249
244
  }
250
245
  await this.stateSave();
251
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentsStopped`));
252
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.stopped`));
246
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.componentsStopped`));
247
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.stopped`));
253
248
  }
254
249
  /**
255
250
  * Is the engine started.
@@ -518,12 +513,12 @@ class EngineCore {
518
513
  */
519
514
  async bootstrap() {
520
515
  if (!this._skipBootstrap) {
521
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.bootstrapStarted`));
516
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.bootstrapStarted`));
522
517
  // First bootstrap the components.
523
518
  for (const instance of this._context.componentInstances) {
524
519
  if (core.Is.function(instance.component.bootstrap)) {
525
520
  const instanceName = this.getInstanceName(instance);
526
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.bootstrapping`, {
521
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.bootstrapping`, {
527
522
  element: instanceName
528
523
  }));
529
524
  const bootstrapSuccess = await instance.component.bootstrap(this._loggerTypeName);
@@ -539,7 +534,7 @@ class EngineCore {
539
534
  if (core.Is.function(this._customBootstrap)) {
540
535
  await this._customBootstrap(this, this._context);
541
536
  }
542
- this.logInfo(core.I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.bootstrapComplete`));
537
+ this.logInfo(core.I18n.formatMessage(`${"engineCore"}.bootstrapComplete`));
543
538
  }
544
539
  }
545
540
  /**
@@ -72,11 +72,6 @@ class EngineCore {
72
72
  * Name for the engine logger.
73
73
  */
74
74
  static LOGGER_TYPE_NAME = "engine";
75
- /**
76
- * Runtime name for the class in camel case.
77
- * @internal
78
- */
79
- static _CLASS_NAME_CAMEL_CASE = StringHelper.camelCase("EngineCore");
80
75
  /**
81
76
  * Runtime name for the class.
82
77
  * @internal
@@ -186,9 +181,9 @@ class EngineCore {
186
181
  return false;
187
182
  }
188
183
  this.setupEngineLogger();
189
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.starting`));
184
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.starting`));
190
185
  if (this._context.config.debug) {
191
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.debuggingEnabled`));
186
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.debuggingEnabled`));
192
187
  }
193
188
  let canContinue;
194
189
  try {
@@ -198,18 +193,18 @@ class EngineCore {
198
193
  await this.initialiseTypeConfig(type, typeConfig, module, method);
199
194
  }
200
195
  await this.bootstrap();
201
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentsStarting`));
196
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.componentsStarting`));
202
197
  for (const instance of this._context.componentInstances) {
203
198
  if (Is.function(instance.component.start)) {
204
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentStarting`, {
199
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.componentStarting`, {
205
200
  element: instance.instanceType
206
201
  }));
207
202
  await instance.component.start(this._context.state.nodeIdentity, this._loggerTypeName);
208
203
  }
209
204
  }
210
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentsComplete`));
205
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.componentsComplete`));
211
206
  }
212
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.started`));
207
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.started`));
213
208
  this._isStarted = true;
214
209
  }
215
210
  catch (err) {
@@ -228,11 +223,11 @@ class EngineCore {
228
223
  * @returns Nothing.
229
224
  */
230
225
  async stop() {
231
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.stopping`));
232
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentsStopping`));
226
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.stopping`));
227
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.componentsStopping`));
233
228
  for (const instance of this._context.componentInstances) {
234
229
  if (Is.function(instance.component.stop)) {
235
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentStopping`, {
230
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.componentStopping`, {
236
231
  element: instance.instanceType
237
232
  }));
238
233
  try {
@@ -246,8 +241,8 @@ class EngineCore {
246
241
  }
247
242
  }
248
243
  await this.stateSave();
249
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.componentsStopped`));
250
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.stopped`));
244
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.componentsStopped`));
245
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.stopped`));
251
246
  }
252
247
  /**
253
248
  * Is the engine started.
@@ -516,12 +511,12 @@ class EngineCore {
516
511
  */
517
512
  async bootstrap() {
518
513
  if (!this._skipBootstrap) {
519
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.bootstrapStarted`));
514
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.bootstrapStarted`));
520
515
  // First bootstrap the components.
521
516
  for (const instance of this._context.componentInstances) {
522
517
  if (Is.function(instance.component.bootstrap)) {
523
518
  const instanceName = this.getInstanceName(instance);
524
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.bootstrapping`, {
519
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.bootstrapping`, {
525
520
  element: instanceName
526
521
  }));
527
522
  const bootstrapSuccess = await instance.component.bootstrap(this._loggerTypeName);
@@ -537,7 +532,7 @@ class EngineCore {
537
532
  if (Is.function(this._customBootstrap)) {
538
533
  await this._customBootstrap(this, this._context);
539
534
  }
540
- this.logInfo(I18n.formatMessage(`${EngineCore._CLASS_NAME_CAMEL_CASE}.bootstrapComplete`));
535
+ this.logInfo(I18n.formatMessage(`${"engineCore"}.bootstrapComplete`));
541
536
  }
542
537
  }
543
538
  /**
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/engine-core - Changelog
2
2
 
3
+ ## [0.0.2-next.18](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.17...engine-core-v0.0.2-next.18) (2025-09-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * upgrade framework components ([efd52e8](https://github.com/twinfoundation/engine/commit/efd52e80564fff29c3897bfa09b6305b3a322812))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/engine-models bumped from 0.0.2-next.17 to 0.0.2-next.18
16
+
3
17
  ## [0.0.2-next.17](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.16...engine-core-v0.0.2-next.17) (2025-09-26)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-core",
3
- "version": "0.0.2-next.17",
3
+ "version": "0.0.2-next.18",
4
4
  "description": "Engine core.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "@twin.org/core": "next",
18
18
  "@twin.org/crypto": "next",
19
19
  "@twin.org/data-core": "next",
20
- "@twin.org/engine-models": "0.0.2-next.17",
20
+ "@twin.org/engine-models": "0.0.2-next.18",
21
21
  "@twin.org/entity": "next",
22
22
  "@twin.org/logging-connector-console": "next",
23
23
  "@twin.org/logging-models": "next",