@twin.org/engine-server 0.0.2-next.20 → 0.0.2-next.22

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.
@@ -208,7 +208,7 @@ class EngineServer {
208
208
  /**
209
209
  * Runtime name for the class.
210
210
  */
211
- CLASS_NAME = "EngineServer";
211
+ static CLASS_NAME = "EngineServer";
212
212
  /**
213
213
  * The engine.
214
214
  * @internal
@@ -245,8 +245,8 @@ class EngineServer {
245
245
  * @param options.engineCore The engine core to serve from.
246
246
  */
247
247
  constructor(options) {
248
- core.Guards.object(this.CLASS_NAME, "options", options);
249
- core.Guards.object(this.CLASS_NAME, "options.engineCore", options.engineCore);
248
+ core.Guards.object(EngineServer.CLASS_NAME, "options", options);
249
+ core.Guards.object(EngineServer.CLASS_NAME, "options.engineCore", options.engineCore);
250
250
  this._engineCore = options.engineCore;
251
251
  this._restRouteGenerators = [];
252
252
  this._socketRouteGenerators = [];
@@ -306,9 +306,9 @@ class EngineServer {
306
306
  * @param method The method to call on the module.
307
307
  */
308
308
  addRestRouteGenerator(type, module, method) {
309
- core.Guards.stringValue(this.CLASS_NAME, "type", type);
310
- core.Guards.stringValue(this.CLASS_NAME, "module", module);
311
- core.Guards.stringValue(this.CLASS_NAME, "method", method);
309
+ core.Guards.stringValue(EngineServer.CLASS_NAME, "type", type);
310
+ core.Guards.stringValue(EngineServer.CLASS_NAME, "module", module);
311
+ core.Guards.stringValue(EngineServer.CLASS_NAME, "method", method);
312
312
  this._restRouteGenerators.push({
313
313
  type,
314
314
  module,
@@ -322,9 +322,9 @@ class EngineServer {
322
322
  * @param method The method to call on the module.
323
323
  */
324
324
  addSocketRouteGenerator(type, module, method) {
325
- core.Guards.stringValue(this.CLASS_NAME, "type", type);
326
- core.Guards.stringValue(this.CLASS_NAME, "module", module);
327
- core.Guards.stringValue(this.CLASS_NAME, "method", method);
325
+ core.Guards.stringValue(EngineServer.CLASS_NAME, "type", type);
326
+ core.Guards.stringValue(EngineServer.CLASS_NAME, "module", module);
327
+ core.Guards.stringValue(EngineServer.CLASS_NAME, "method", method);
328
328
  this._socketRouteGenerators.push({
329
329
  type,
330
330
  module,
@@ -206,7 +206,7 @@ class EngineServer {
206
206
  /**
207
207
  * Runtime name for the class.
208
208
  */
209
- CLASS_NAME = "EngineServer";
209
+ static CLASS_NAME = "EngineServer";
210
210
  /**
211
211
  * The engine.
212
212
  * @internal
@@ -243,8 +243,8 @@ class EngineServer {
243
243
  * @param options.engineCore The engine core to serve from.
244
244
  */
245
245
  constructor(options) {
246
- Guards.object(this.CLASS_NAME, "options", options);
247
- Guards.object(this.CLASS_NAME, "options.engineCore", options.engineCore);
246
+ Guards.object(EngineServer.CLASS_NAME, "options", options);
247
+ Guards.object(EngineServer.CLASS_NAME, "options.engineCore", options.engineCore);
248
248
  this._engineCore = options.engineCore;
249
249
  this._restRouteGenerators = [];
250
250
  this._socketRouteGenerators = [];
@@ -304,9 +304,9 @@ class EngineServer {
304
304
  * @param method The method to call on the module.
305
305
  */
306
306
  addRestRouteGenerator(type, module, method) {
307
- Guards.stringValue(this.CLASS_NAME, "type", type);
308
- Guards.stringValue(this.CLASS_NAME, "module", module);
309
- Guards.stringValue(this.CLASS_NAME, "method", method);
307
+ Guards.stringValue(EngineServer.CLASS_NAME, "type", type);
308
+ Guards.stringValue(EngineServer.CLASS_NAME, "module", module);
309
+ Guards.stringValue(EngineServer.CLASS_NAME, "method", method);
310
310
  this._restRouteGenerators.push({
311
311
  type,
312
312
  module,
@@ -320,9 +320,9 @@ class EngineServer {
320
320
  * @param method The method to call on the module.
321
321
  */
322
322
  addSocketRouteGenerator(type, module, method) {
323
- Guards.stringValue(this.CLASS_NAME, "type", type);
324
- Guards.stringValue(this.CLASS_NAME, "module", module);
325
- Guards.stringValue(this.CLASS_NAME, "method", method);
323
+ Guards.stringValue(EngineServer.CLASS_NAME, "type", type);
324
+ Guards.stringValue(EngineServer.CLASS_NAME, "module", module);
325
+ Guards.stringValue(EngineServer.CLASS_NAME, "method", method);
326
326
  this._socketRouteGenerators.push({
327
327
  type,
328
328
  module,
@@ -8,7 +8,7 @@ export declare class EngineServer<T extends IEngineServerConfig = IEngineServerC
8
8
  /**
9
9
  * Runtime name for the class.
10
10
  */
11
- readonly CLASS_NAME: string;
11
+ static readonly CLASS_NAME: string;
12
12
  /**
13
13
  * Create a new instance of EngineServer.
14
14
  * @param options The options for the engine.
package/docs/changelog.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @twin.org/engine-server - Changelog
2
2
 
3
+ ## [0.0.2-next.22](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.21...engine-server-v0.0.2-next.22) (2025-10-07)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **engine-server:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/engine-core bumped from 0.0.2-next.21 to 0.0.2-next.22
16
+ * @twin.org/engine-models bumped from 0.0.2-next.21 to 0.0.2-next.22
17
+ * @twin.org/engine-server-types bumped from 0.0.2-next.21 to 0.0.2-next.22
18
+ * devDependencies
19
+ * @twin.org/engine bumped from 0.0.2-next.21 to 0.0.2-next.22
20
+
21
+ ## [0.0.2-next.21](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.20...engine-server-v0.0.2-next.21) (2025-10-07)
22
+
23
+
24
+ ### Features
25
+
26
+ * use peer dependencies ([69dd744](https://github.com/twinfoundation/engine/commit/69dd7449010b8e6f5f35e7fad201ad4c1cab400c))
27
+
28
+
29
+ ### Dependencies
30
+
31
+ * The following workspace dependencies were updated
32
+ * dependencies
33
+ * @twin.org/engine-core bumped from 0.0.2-next.20 to 0.0.2-next.21
34
+ * @twin.org/engine-models bumped from 0.0.2-next.20 to 0.0.2-next.21
35
+ * @twin.org/engine-server-types bumped from 0.0.2-next.20 to 0.0.2-next.21
36
+ * devDependencies
37
+ * @twin.org/engine bumped from 0.0.2-next.20 to 0.0.2-next.21
38
+
3
39
  ## [0.0.2-next.20](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.19...engine-server-v0.0.2-next.20) (2025-10-06)
4
40
 
5
41
 
@@ -40,7 +40,7 @@ The engine core to serve from.
40
40
 
41
41
  ### CLASS\_NAME
42
42
 
43
- > `readonly` **CLASS\_NAME**: `string`
43
+ > `readonly` `static` **CLASS\_NAME**: `string`
44
44
 
45
45
  Runtime name for the class.
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-server",
3
- "version": "0.0.2-next.20",
3
+ "version": "0.0.2-next.22",
4
4
  "description": "Engine implementation for a server.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,9 +17,9 @@
17
17
  "@twin.org/api-models": "next",
18
18
  "@twin.org/api-server-fastify": "next",
19
19
  "@twin.org/core": "next",
20
- "@twin.org/engine-core": "0.0.2-next.20",
21
- "@twin.org/engine-models": "0.0.2-next.20",
22
- "@twin.org/engine-server-types": "0.0.2-next.20",
20
+ "@twin.org/engine-core": "0.0.2-next.22",
21
+ "@twin.org/engine-models": "0.0.2-next.22",
22
+ "@twin.org/engine-server-types": "0.0.2-next.22",
23
23
  "@twin.org/modules": "next",
24
24
  "@twin.org/nameof": "next"
25
25
  },