@platformatic/runtime 3.50.0 → 3.52.0
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/lib/config.js +12 -4
- package/package.json +16 -16
- package/schema.json +2 -3
package/lib/config.js
CHANGED
|
@@ -142,9 +142,17 @@ export async function wrapInRuntimeConfig (config, context) {
|
|
|
142
142
|
// on purpose, the package.json might be missing
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
//
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
// Carry over only the server properties that the user actually set, so
|
|
146
|
+
// we do not end up with a `{ hostname: undefined, ... }` object that then
|
|
147
|
+
// gets populated by schema defaults or trips truthy checks downstream.
|
|
148
|
+
const server = {}
|
|
149
|
+
if (config.server) {
|
|
150
|
+
for (const key of ['hostname', 'port', 'http2', 'https']) {
|
|
151
|
+
if (config.server[key] !== undefined) {
|
|
152
|
+
server[key] = config.server[key]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
148
156
|
const production = context?.isProduction ?? context?.production
|
|
149
157
|
|
|
150
158
|
const runtimeConfig = config.runtime ?? {}
|
|
@@ -153,7 +161,7 @@ export async function wrapInRuntimeConfig (config, context) {
|
|
|
153
161
|
/* c8 ignore next */
|
|
154
162
|
const wrapped = {
|
|
155
163
|
$schema: schema.$id,
|
|
156
|
-
server,
|
|
164
|
+
...(Object.keys(server).length > 0 ? { server } : {}),
|
|
157
165
|
watch: !production,
|
|
158
166
|
...omitProperties(runtimeConfig, runtimeUnwrappablePropertiesList),
|
|
159
167
|
entrypoint: applicationId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/runtime",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.52.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -32,17 +32,18 @@
|
|
|
32
32
|
"neostandard": "^0.12.0",
|
|
33
33
|
"pino-abstract-transport": "^2.0.0",
|
|
34
34
|
"split2": "^4.2.0",
|
|
35
|
+
"tstyche": "^6.2.0",
|
|
35
36
|
"typescript": "^5.5.4",
|
|
36
37
|
"undici-oidc-interceptor": "^0.5.0",
|
|
37
38
|
"why-is-node-running": "^2.2.2",
|
|
38
|
-
"@platformatic/composer": "3.
|
|
39
|
-
"@platformatic/
|
|
40
|
-
"@platformatic/
|
|
41
|
-
"@platformatic/
|
|
42
|
-
"@platformatic/service": "3.
|
|
43
|
-
"@platformatic/sql-graphql": "3.
|
|
44
|
-
"@platformatic/sql-mapper": "3.
|
|
45
|
-
"@platformatic/wattpm-pprof-capture": "3.
|
|
39
|
+
"@platformatic/composer": "3.52.0",
|
|
40
|
+
"@platformatic/gateway": "3.52.0",
|
|
41
|
+
"@platformatic/db": "3.52.0",
|
|
42
|
+
"@platformatic/node": "3.52.0",
|
|
43
|
+
"@platformatic/service": "3.52.0",
|
|
44
|
+
"@platformatic/sql-graphql": "3.52.0",
|
|
45
|
+
"@platformatic/sql-mapper": "3.52.0",
|
|
46
|
+
"@platformatic/wattpm-pprof-capture": "3.52.0"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
49
|
"@fastify/accepts": "^5.0.0",
|
|
@@ -69,16 +70,15 @@
|
|
|
69
70
|
"semgrator": "^0.3.0",
|
|
70
71
|
"sonic-boom": "^4.2.0",
|
|
71
72
|
"systeminformation": "^5.27.11",
|
|
72
|
-
"tstyche": "^6.2.0",
|
|
73
73
|
"undici": "^7.0.0",
|
|
74
74
|
"undici-thread-interceptor": "^1.3.1",
|
|
75
75
|
"ws": "^8.16.0",
|
|
76
|
-
"@platformatic/
|
|
77
|
-
"@platformatic/
|
|
78
|
-
"@platformatic/generators": "3.
|
|
79
|
-
"@platformatic/
|
|
80
|
-
"@platformatic/
|
|
81
|
-
"@platformatic/telemetry": "3.
|
|
76
|
+
"@platformatic/basic": "3.52.0",
|
|
77
|
+
"@platformatic/foundation": "3.52.0",
|
|
78
|
+
"@platformatic/generators": "3.52.0",
|
|
79
|
+
"@platformatic/itc": "3.52.0",
|
|
80
|
+
"@platformatic/metrics": "3.52.0",
|
|
81
|
+
"@platformatic/telemetry": "3.52.0"
|
|
82
82
|
},
|
|
83
83
|
"engines": {
|
|
84
84
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.52.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Runtime Config",
|
|
5
5
|
"type": "object",
|
|
@@ -1702,8 +1702,7 @@
|
|
|
1702
1702
|
"type": "object",
|
|
1703
1703
|
"properties": {
|
|
1704
1704
|
"hostname": {
|
|
1705
|
-
"type": "string"
|
|
1706
|
-
"default": "127.0.0.1"
|
|
1705
|
+
"type": "string"
|
|
1707
1706
|
},
|
|
1708
1707
|
"port": {
|
|
1709
1708
|
"anyOf": [
|