@ti-engine/core 1.12.0 → 1.12.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  This document contains the list of changes made to the framework. The format is based on the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification.
4
4
 
5
+ ## Version 1.12.2
6
+
7
+ * fix(start): move the logger reporting the .env file loading after the instance has received an ID (for real this time).
8
+
9
+ ## Version 1.12.1
10
+
11
+ * fix(start): move the logger reporting the .env file loading after the instance has received an ID.
12
+ * build(deps): update `@types/node` from ^26.2.0 to ^26.5.1.
13
+
5
14
  ## Version 1.12.0
6
15
 
7
16
  * feat(start-instance): report which `.env` file was loaded, or that none was found at the resolved path, at `DEBUG`.
@@ -59,10 +59,6 @@ try {
59
59
  const tools = require( "#tools" );
60
60
  const logger = require( "#logger" );
61
61
 
62
- logger.log( envFileLoaded
63
- ? `Loaded environment variables from '${ envFilePath }'.`
64
- : `No environment file at '${ envFilePath }' — continuing with the environment as supplied. If settings you expected are missing, check the working directory this instance was started from.`, logger.logSeverity.DEBUG );
65
-
66
62
  // Configure the current instance variables before requiring any platform modules and store the necessary ones in memory cache:
67
63
  process.env.TI_INSTANCE_ID = "ti-" + tools.getUUID();
68
64
  process.env.TI_INSTANCE_CLASS = process.env.TI_INSTANCE_CLASS || "";
@@ -171,6 +167,10 @@ try {
171
167
  };
172
168
 
173
169
  if ( mainInstance.isServiceInstance ) {
170
+ logger.log( envFileLoaded
171
+ ? `Loaded environment variables from '${ envFilePath }'.`
172
+ : `No environment file at '${ envFilePath }' — continuing with the environment as supplied. If settings you expected are missing, check the working directory this instance was started from.`, logger.logSeverity.DEBUG );
173
+
174
174
  logger.log( `Starting new instance of type '${ process.env.TI_INSTANCE_NAME }' with instance ID '${ process.env.TI_INSTANCE_ID }'.`, logger.logSeverity.NOTICE );
175
175
  mainInstance.start().catch( ( error ) => {
176
176
  logger.log( `Error detected during instance '${ process.env.TI_INSTANCE_ID }' startup!`, logger.logSeverity.ALERT, error );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ti-engine/core",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
4
4
  "description": "Microservice framework for Node.js: a Redis-backed message exchange with end-to-end call tracing, retries and tamper-evident message envelopes.",
5
5
  "keywords": [
6
6
  "microservices",
@@ -172,12 +172,14 @@
172
172
  }
173
173
  },
174
174
  "dependencies": {
175
- "@types/node": "^26.2.0",
175
+ "@types/node": "^26.5.1",
176
176
  "ioredis": "^6.0.0",
177
177
  "lodash": "^4.18.1",
178
178
  "node-schedule": "^2.1.1"
179
179
  },
180
- "optionalDependencies": {},
180
+ "devDependencies": {
181
+ "typescript": "^7.0.2"
182
+ },
181
183
  "files": [
182
184
  "bin/",
183
185
  "components/",
@@ -200,8 +202,5 @@
200
202
  "homepage": "https://github.com/Belleal/ti-engine/tree/master/packages/core#readme",
201
203
  "engines": {
202
204
  "node": ">=20.12.0"
203
- },
204
- "devDependencies": {
205
- "typescript": "^7.0.2"
206
205
  }
207
206
  }