@twin.org/node-core 0.0.2-next.18 → 0.0.2-next.19

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.
@@ -1710,8 +1710,9 @@ async function buildEngineServerConfiguration(envVars, coreEngineConfig, serverI
1710
1710
  }
1711
1711
  serverConfig.types.restRouteProcessor ??= [];
1712
1712
  serverConfig.types.socketRouteProcessor ??= [];
1713
- const disableNodeIdentity = core.Coerce.boolean(envVars.disableNodeIdentity);
1714
- if (!disableNodeIdentity) {
1713
+ const features = getFeatures(envVars);
1714
+ const hasNodeIdentity = features.includes(NodeFeatures.NodeIdentity);
1715
+ if (hasNodeIdentity) {
1715
1716
  serverConfig.types.restRouteProcessor.push({
1716
1717
  type: engineServerTypes.RestRouteProcessorType.NodeIdentity
1717
1718
  });
@@ -1981,7 +1982,7 @@ async function run(nodeOptions) {
1981
1982
  nodeOptions ??= {};
1982
1983
  const serverInfo = {
1983
1984
  name: nodeOptions?.serverName ?? "TWIN Node Server",
1984
- version: nodeOptions?.serverVersion ?? "0.0.2-next.18" // x-release-please-version
1985
+ version: nodeOptions?.serverVersion ?? "0.0.2-next.19" // x-release-please-version
1985
1986
  };
1986
1987
  cliCore.CLIDisplay.header(serverInfo.name, serverInfo.version, "đŸŒŠī¸ ");
1987
1988
  if (!core.Is.stringValue(nodeOptions?.executionDirectory)) {
@@ -1689,8 +1689,9 @@ async function buildEngineServerConfiguration(envVars, coreEngineConfig, serverI
1689
1689
  }
1690
1690
  serverConfig.types.restRouteProcessor ??= [];
1691
1691
  serverConfig.types.socketRouteProcessor ??= [];
1692
- const disableNodeIdentity = Coerce.boolean(envVars.disableNodeIdentity);
1693
- if (!disableNodeIdentity) {
1692
+ const features = getFeatures(envVars);
1693
+ const hasNodeIdentity = features.includes(NodeFeatures.NodeIdentity);
1694
+ if (hasNodeIdentity) {
1694
1695
  serverConfig.types.restRouteProcessor.push({
1695
1696
  type: RestRouteProcessorType.NodeIdentity
1696
1697
  });
@@ -1960,7 +1961,7 @@ async function run(nodeOptions) {
1960
1961
  nodeOptions ??= {};
1961
1962
  const serverInfo = {
1962
1963
  name: nodeOptions?.serverName ?? "TWIN Node Server",
1963
- version: nodeOptions?.serverVersion ?? "0.0.2-next.18" // x-release-please-version
1964
+ version: nodeOptions?.serverVersion ?? "0.0.2-next.19" // x-release-please-version
1964
1965
  };
1965
1966
  CLIDisplay.header(serverInfo.name, serverInfo.version, "đŸŒŠī¸ ");
1966
1967
  if (!Is.stringValue(nodeOptions?.executionDirectory)) {
@@ -43,10 +43,6 @@ export interface IEngineServerEnvironmentVariables extends IEngineEnvironmentVar
43
43
  * Additional MIME type processors to include, comma separated.
44
44
  */
45
45
  mimeTypeProcessors?: string;
46
- /**
47
- * Disable Node Identity route processors.
48
- */
49
- disableNodeIdentity?: string;
50
46
  /**
51
47
  * Include the body in the REST logging output, useful for debugging.
52
48
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @twin.org/node-core - Changelog
2
2
 
3
+ ## [0.0.2-next.19](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.18...node-core-v0.0.2-next.19) (2025-10-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * use features instead of disableNodeIdentity ([2e6109b](https://github.com/twinfoundation/node/commit/2e6109bd1de825e0f5396fc120d99ad7b3929852))
9
+
3
10
  ## [0.0.2-next.18](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.17...node-core-v0.0.2-next.18) (2025-10-03)
4
11
 
5
12
 
@@ -1740,14 +1740,6 @@ Additional MIME type processors to include, comma separated.
1740
1740
 
1741
1741
  ***
1742
1742
 
1743
- ### disableNodeIdentity?
1744
-
1745
- > `optional` **disableNodeIdentity**: `string`
1746
-
1747
- Disable Node Identity route processors.
1748
-
1749
- ***
1750
-
1751
1743
  ### routeLoggingIncludeBody?
1752
1744
 
1753
1745
  > `optional` **routeLoggingIncludeBody**: `string`
@@ -1776,18 +1776,6 @@ Additional MIME type processors to include, comma separated.
1776
1776
 
1777
1777
  ***
1778
1778
 
1779
- ### disableNodeIdentity?
1780
-
1781
- > `optional` **disableNodeIdentity**: `string`
1782
-
1783
- Disable Node Identity route processors.
1784
-
1785
- #### Inherited from
1786
-
1787
- [`IEngineServerEnvironmentVariables`](IEngineServerEnvironmentVariables.md).[`disableNodeIdentity`](IEngineServerEnvironmentVariables.md#disablenodeidentity)
1788
-
1789
- ***
1790
-
1791
1779
  ### routeLoggingIncludeBody?
1792
1780
 
1793
1781
  > `optional` **routeLoggingIncludeBody**: `string`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/node-core",
3
- "version": "0.0.2-next.18",
3
+ "version": "0.0.2-next.19",
4
4
  "description": "TWIN Node Core for serving APIs using the specified configuration",
5
5
  "repository": {
6
6
  "type": "git",