@platformatic/runtime 3.51.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 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
- // If the application supports its (so far, only @platformatic/service and descendants)
146
- const { hostname, port, http2, https } = config.server ?? {}
147
- const server = { hostname, port, http2, https }
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.51.0",
3
+ "version": "3.52.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -36,14 +36,14 @@
36
36
  "typescript": "^5.5.4",
37
37
  "undici-oidc-interceptor": "^0.5.0",
38
38
  "why-is-node-running": "^2.2.2",
39
- "@platformatic/composer": "3.51.0",
40
- "@platformatic/db": "3.51.0",
41
- "@platformatic/node": "3.51.0",
42
- "@platformatic/service": "3.51.0",
43
- "@platformatic/sql-graphql": "3.51.0",
44
- "@platformatic/gateway": "3.51.0",
45
- "@platformatic/sql-mapper": "3.51.0",
46
- "@platformatic/wattpm-pprof-capture": "3.51.0"
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"
47
47
  },
48
48
  "dependencies": {
49
49
  "@fastify/accepts": "^5.0.0",
@@ -73,12 +73,12 @@
73
73
  "undici": "^7.0.0",
74
74
  "undici-thread-interceptor": "^1.3.1",
75
75
  "ws": "^8.16.0",
76
- "@platformatic/basic": "3.51.0",
77
- "@platformatic/generators": "3.51.0",
78
- "@platformatic/foundation": "3.51.0",
79
- "@platformatic/metrics": "3.51.0",
80
- "@platformatic/itc": "3.51.0",
81
- "@platformatic/telemetry": "3.51.0"
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.51.0.json",
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": [