@ti-engine/core 1.12.1 → 1.12.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.
- package/CHANGELOG.md +8 -0
- package/bin/start-instance.js +4 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.3
|
|
6
|
+
|
|
7
|
+
* chore(package): update `package.json` structure
|
|
8
|
+
|
|
9
|
+
## Version 1.12.2
|
|
10
|
+
|
|
11
|
+
* fix(start): move the logger reporting the .env file loading after the instance has received an ID (for real this time).
|
|
12
|
+
|
|
5
13
|
## Version 1.12.1
|
|
6
14
|
|
|
7
15
|
* fix(start): move the logger reporting the .env file loading after the instance has received an ID.
|
package/bin/start-instance.js
CHANGED
|
@@ -79,10 +79,6 @@ const defaultNameFromClass = ( () => {
|
|
|
79
79
|
|
|
80
80
|
process.env.TI_INSTANCE_NAME = process.env.TI_INSTANCE_NAME || defaultNameFromClass;
|
|
81
81
|
|
|
82
|
-
logger.log( envFileLoaded
|
|
83
|
-
? `Loaded environment variables from '${ envFilePath }'.`
|
|
84
|
-
: `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 );
|
|
85
|
-
|
|
86
82
|
// Configure the process termination handlers to ensure a graceful shutdown:
|
|
87
83
|
|
|
88
84
|
/**
|
|
@@ -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.
|
|
3
|
+
"version": "1.12.3",
|
|
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",
|
|
@@ -59,10 +59,6 @@
|
|
|
59
59
|
"default": "./components/definitions.types.js"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
"scripts": {
|
|
63
|
-
"test": "node --test",
|
|
64
|
-
"build:types": "tsc -p tsconfig.types.json"
|
|
65
|
-
},
|
|
66
62
|
"imports": {
|
|
67
63
|
"#auditing": {
|
|
68
64
|
"types": "./types/components/auditing.d.ts",
|
|
@@ -202,5 +198,9 @@
|
|
|
202
198
|
"homepage": "https://github.com/Belleal/ti-engine/tree/master/packages/core#readme",
|
|
203
199
|
"engines": {
|
|
204
200
|
"node": ">=20.12.0"
|
|
201
|
+
},
|
|
202
|
+
"scripts": {
|
|
203
|
+
"test": "node --test",
|
|
204
|
+
"build:types": "tsc -p tsconfig.types.json"
|
|
205
205
|
}
|
|
206
206
|
}
|