@twin.org/engine-models 0.0.3-next.1 → 0.0.3-next.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"IEngineCoreContext.js","sourceRoot":"","sources":["../../../src/models/IEngineCoreContext.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IEngineCoreConfig } from \"./config/IEngineCoreConfig.js\";\nimport type { IEngineState } from \"./IEngineState.js\";\n\n/**\n * The context for the engine core.\n */\nexport interface IEngineCoreContext<\n\tC extends IEngineCoreConfig = IEngineCoreConfig,\n\tS extends IEngineState = IEngineState\n> {\n\t/**\n\t * The engine core config.\n\t */\n\tconfig: C;\n\n\t/**\n\t * The engine core state.\n\t */\n\tstate: S;\n\n\t/**\n\t * The state dirty flag, which flags that the state needs saving.\n\t */\n\tstateDirty: boolean;\n\n\t/**\n\t * The registered instances to use when components don't have custom types.\n\t * The default entry will be the first in the list.\n\t */\n\tregisteredInstances: {\n\t\t[name: string]: { type: string; isDefault?: boolean; features?: string[] }[];\n\t};\n\n\t/**\n\t * The components.\n\t */\n\tcomponentInstances: { instanceType: string; component: IComponent }[];\n}\n"]}
1
+ {"version":3,"file":"IEngineCoreContext.js","sourceRoot":"","sources":["../../../src/models/IEngineCoreContext.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IEngineCoreConfig } from \"./config/IEngineCoreConfig.js\";\nimport type { IEngineState } from \"./IEngineState.js\";\n\n/**\n * The context for the engine core.\n */\nexport interface IEngineCoreContext<\n\tC extends IEngineCoreConfig = IEngineCoreConfig,\n\tS extends IEngineState = IEngineState\n> {\n\t/**\n\t * The engine core config.\n\t */\n\tconfig: C;\n\n\t/**\n\t * The engine core state.\n\t */\n\tstate: S;\n\n\t/**\n\t * The state dirty flag, which flags that the state needs saving.\n\t */\n\tstateDirty: boolean;\n\n\t/**\n\t * The registered instances to use when components don't have custom types.\n\t * The default entry will be the first in the list.\n\t */\n\tregisteredInstances: {\n\t\t[name: string]: { type: string; isDefault?: boolean; features?: string[] }[];\n\t};\n\n\t/**\n\t * The components.\n\t */\n\tcomponentInstances: { instanceType: string; component: IComponent; initialised: boolean }[];\n}\n"]}
@@ -34,5 +34,6 @@ export interface IEngineCoreContext<C extends IEngineCoreConfig = IEngineCoreCon
34
34
  componentInstances: {
35
35
  instanceType: string;
36
36
  component: IComponent;
37
+ initialised: boolean;
37
38
  }[];
38
39
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/engine-models - Changelog
2
2
 
3
+ ## [0.0.3-next.3](https://github.com/twinfoundation/engine/compare/engine-models-v0.0.3-next.2...engine-models-v0.0.3-next.3) (2025-11-14)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * make sure stop is called even if start is not implemented ([ece2b9d](https://github.com/twinfoundation/engine/commit/ece2b9de5c6dff2b5ccf2a3115c1a7328a330125))
9
+
10
+ ## [0.0.3-next.2](https://github.com/twinfoundation/engine/compare/engine-models-v0.0.3-next.1...engine-models-v0.0.3-next.2) (2025-11-13)
11
+
12
+
13
+ ### Features
14
+
15
+ * close already started components on startup error ([a55a117](https://github.com/twinfoundation/engine/commit/a55a117a508998288c8ae804e732fc6085cb22fa))
16
+
3
17
  ## [0.0.3-next.1](https://github.com/twinfoundation/engine/compare/engine-models-v0.0.3-next.0...engine-models-v0.0.3-next.1) (2025-11-13)
4
18
 
5
19
 
@@ -64,3 +64,7 @@ The components.
64
64
  #### component
65
65
 
66
66
  > **component**: `IComponent`
67
+
68
+ #### initialised
69
+
70
+ > **initialised**: `boolean`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-models",
3
- "version": "0.0.3-next.1",
3
+ "version": "0.0.3-next.3",
4
4
  "description": "Models which define the structure of the engine.",
5
5
  "repository": {
6
6
  "type": "git",