@onlineapps/conn-orch-registry 2.0.0 → 2.0.2-rc.1
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/package.json +2 -3
- package/src/defaults.js +7 -4
- package/src/config.js +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/conn-orch-registry",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Connector-registry-client provides the core communication mechanism for microservices in this environment. It enables them to interact with a services_registry to receive and fulfill tasks by submitting heartbeats or their API descriptions.",
|
|
6
6
|
"keywords": [
|
|
@@ -37,8 +37,7 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@onlineapps/mq-client-core": "2.0.
|
|
41
|
-
"@onlineapps/runtime-config": "1.0.3",
|
|
40
|
+
"@onlineapps/mq-client-core": "2.0.1",
|
|
42
41
|
"amqplib": "^0.10.9",
|
|
43
42
|
"uuid": "^9.0.1"
|
|
44
43
|
},
|
package/src/defaults.js
CHANGED
|
@@ -9,10 +9,13 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
module.exports = {
|
|
12
|
-
specificationEndpoint
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
// `specificationEndpoint`, `specProtocol` and `specHost` lived here until
|
|
13
|
+
// 2026-08-29. Their only reader was src/config.js, whose only readers were its
|
|
14
|
+
// own tests — a declaration nothing runtime read, which forced every
|
|
15
|
+
// environment to carry REGISTRY_SPEC_HOST / _PROTOCOL / _ENDPOINT for nobody
|
|
16
|
+
// (change-discipline.md § Removing something removes its declaration).
|
|
17
|
+
// Measured: zero occurrences outside that module and its test, in api,
|
|
18
|
+
// api_biz, infra and both env trees.
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
* How long register() waits for the registry's `registerResponse` /
|
package/src/config.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Runtime configuration schema for @onlineapps/conn-orch-registry.
|
|
5
|
-
*
|
|
6
|
-
* Uses @onlineapps/runtime-config for unified priority:
|
|
7
|
-
* 1. Explicit config
|
|
8
|
-
* 2. Environment variable
|
|
9
|
-
* 3. Module-owned defaults (from ./defaults.js)
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
const { createRuntimeConfig } = require('@onlineapps/runtime-config');
|
|
13
|
-
const DEFAULTS = require('./defaults');
|
|
14
|
-
|
|
15
|
-
const runtimeCfg = createRuntimeConfig({
|
|
16
|
-
defaults: DEFAULTS,
|
|
17
|
-
schema: {
|
|
18
|
-
// Local spec fetch settings (optional; only required when auto-fetching spec)
|
|
19
|
-
servicePort: { env: 'PORT', type: 'number' },
|
|
20
|
-
specHost: { env: 'REGISTRY_SPEC_HOST', defaultKey: 'specHost' },
|
|
21
|
-
specProtocol: { env: 'REGISTRY_SPEC_PROTOCOL', defaultKey: 'specProtocol' },
|
|
22
|
-
specificationEndpoint: { env: 'REGISTRY_SPEC_ENDPOINT', defaultKey: 'specificationEndpoint' },
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
module.exports = runtimeCfg;
|