@platformatic/runtime 3.25.0 → 3.26.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/config.d.ts CHANGED
@@ -51,6 +51,7 @@ export type PlatformaticRuntimeConfig = {
51
51
  packageManager?: "npm" | "pnpm" | "yarn";
52
52
  preload?: string | string[];
53
53
  nodeOptions?: string;
54
+ execArgv?: string[];
54
55
  permissions?: {
55
56
  fs?: {
56
57
  read?: string[];
package/lib/config.js CHANGED
@@ -147,19 +147,22 @@ export async function wrapInRuntimeConfig (config, context) {
147
147
  const server = { hostname, port, http2, https }
148
148
  const production = context?.isProduction ?? context?.production
149
149
 
150
+ const runtimeConfig = config.runtime ?? {}
151
+
150
152
  // Important: do not change the order of the properties in this object
151
153
  /* c8 ignore next */
152
154
  const wrapped = {
153
155
  $schema: schema.$id,
154
156
  server,
155
157
  watch: !production,
156
- ...omitProperties(config.runtime ?? {}, runtimeUnwrappablePropertiesList),
158
+ ...omitProperties(runtimeConfig, runtimeUnwrappablePropertiesList),
157
159
  entrypoint: applicationId,
158
160
  applications: [
159
161
  {
160
162
  id: applicationId,
161
163
  path: config[kMetadata].root,
162
- config: config[kMetadata].path
164
+ config: config[kMetadata].path,
165
+ ...(runtimeConfig.application ?? {})
163
166
  }
164
167
  ]
165
168
  }
package/lib/runtime.js CHANGED
@@ -1415,7 +1415,7 @@ export class Runtime extends EventEmitter {
1415
1415
  const errorLabel = this.#workerExtendedLabel(applicationId, index, workersCount)
1416
1416
  const health = deepmerge(config.health ?? {}, applicationConfig.health ?? {})
1417
1417
 
1418
- const execArgv = []
1418
+ const execArgv = applicationConfig.execArgv ?? []
1419
1419
 
1420
1420
  if (!applicationConfig.skipTelemetryHooks && config.telemetry && config.telemetry.enabled !== false) {
1421
1421
  const require = createRequire(import.meta.url)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "3.25.0",
3
+ "version": "3.26.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -35,14 +35,14 @@
35
35
  "typescript": "^5.5.4",
36
36
  "undici-oidc-interceptor": "^0.5.0",
37
37
  "why-is-node-running": "^2.2.2",
38
- "@platformatic/composer": "3.25.0",
39
- "@platformatic/db": "3.25.0",
40
- "@platformatic/node": "3.25.0",
41
- "@platformatic/gateway": "3.25.0",
42
- "@platformatic/sql-graphql": "3.25.0",
43
- "@platformatic/sql-mapper": "3.25.0",
44
- "@platformatic/wattpm-pprof-capture": "3.25.0",
45
- "@platformatic/service": "3.25.0"
38
+ "@platformatic/composer": "3.26.0",
39
+ "@platformatic/db": "3.26.0",
40
+ "@platformatic/gateway": "3.26.0",
41
+ "@platformatic/node": "3.26.0",
42
+ "@platformatic/service": "3.26.0",
43
+ "@platformatic/sql-graphql": "3.26.0",
44
+ "@platformatic/sql-mapper": "3.26.0",
45
+ "@platformatic/wattpm-pprof-capture": "3.26.0"
46
46
  },
47
47
  "dependencies": {
48
48
  "@fastify/accepts": "^5.0.0",
@@ -71,12 +71,12 @@
71
71
  "undici": "^7.0.0",
72
72
  "undici-thread-interceptor": "^0.15.0",
73
73
  "ws": "^8.16.0",
74
- "@platformatic/basic": "3.25.0",
75
- "@platformatic/generators": "3.25.0",
76
- "@platformatic/itc": "3.25.0",
77
- "@platformatic/foundation": "3.25.0",
78
- "@platformatic/metrics": "3.25.0",
79
- "@platformatic/telemetry": "3.25.0"
74
+ "@platformatic/foundation": "3.26.0",
75
+ "@platformatic/basic": "3.26.0",
76
+ "@platformatic/itc": "3.26.0",
77
+ "@platformatic/metrics": "3.26.0",
78
+ "@platformatic/generators": "3.26.0",
79
+ "@platformatic/telemetry": "3.26.0"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.25.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.26.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Runtime Config",
5
5
  "type": "object",
@@ -253,6 +253,12 @@
253
253
  "nodeOptions": {
254
254
  "type": "string"
255
255
  },
256
+ "execArgv": {
257
+ "type": "array",
258
+ "items": {
259
+ "type": "string"
260
+ }
261
+ },
256
262
  "permissions": {
257
263
  "type": "object",
258
264
  "properties": {
@@ -545,6 +551,12 @@
545
551
  "nodeOptions": {
546
552
  "type": "string"
547
553
  },
554
+ "execArgv": {
555
+ "type": "array",
556
+ "items": {
557
+ "type": "string"
558
+ }
559
+ },
548
560
  "permissions": {
549
561
  "type": "object",
550
562
  "properties": {
@@ -835,6 +847,12 @@
835
847
  "nodeOptions": {
836
848
  "type": "string"
837
849
  },
850
+ "execArgv": {
851
+ "type": "array",
852
+ "items": {
853
+ "type": "string"
854
+ }
855
+ },
838
856
  "permissions": {
839
857
  "type": "object",
840
858
  "properties": {
@@ -1125,6 +1143,12 @@
1125
1143
  "nodeOptions": {
1126
1144
  "type": "string"
1127
1145
  },
1146
+ "execArgv": {
1147
+ "type": "array",
1148
+ "items": {
1149
+ "type": "string"
1150
+ }
1151
+ },
1128
1152
  "permissions": {
1129
1153
  "type": "object",
1130
1154
  "properties": {