@platformatic/runtime 3.20.0 → 3.22.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/runtime.js CHANGED
@@ -1198,6 +1198,7 @@ export class Runtime extends EventEmitter {
1198
1198
 
1199
1199
  const { entrypoint, localUrl, config, path } = application[kConfig]
1200
1200
 
1201
+ const sourceMaps = application[kConfig].sourceMaps ?? this.#config.sourceMaps
1201
1202
  const status = await sendViaITC(application, 'getStatus')
1202
1203
  const { type, version, dependencies } = await sendViaITC(application, 'getApplicationInfo')
1203
1204
 
@@ -1210,7 +1211,8 @@ export class Runtime extends EventEmitter {
1210
1211
  dependencies,
1211
1212
  version,
1212
1213
  localUrl,
1213
- entrypoint
1214
+ entrypoint,
1215
+ sourceMaps
1214
1216
  }
1215
1217
 
1216
1218
  if (this.#isProduction) {
@@ -7,7 +7,7 @@ import { kApplicationId, kId, kLastWorkerScalerELU, kWorkerStartTime, kWorkerSta
7
7
  const healthCheckInterval = 1000
8
8
  export const kOriginalWorkers = Symbol('plt.runtime.application.dynamicWorkersScalerOriginalWorkers')
9
9
 
10
- const defaultCooldown = 60_000
10
+ const defaultCooldown = 20_000
11
11
  const defaultGracePeriod = 30_000
12
12
  const scaleIntervalPeriod = 60_000
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "3.20.0",
3
+ "version": "3.22.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.20.0",
39
- "@platformatic/db": "3.20.0",
40
- "@platformatic/gateway": "3.20.0",
41
- "@platformatic/service": "3.20.0",
42
- "@platformatic/sql-graphql": "3.20.0",
43
- "@platformatic/sql-mapper": "3.20.0",
44
- "@platformatic/node": "3.20.0",
45
- "@platformatic/wattpm-pprof-capture": "3.20.0"
38
+ "@platformatic/composer": "3.22.0",
39
+ "@platformatic/db": "3.22.0",
40
+ "@platformatic/gateway": "3.22.0",
41
+ "@platformatic/node": "3.22.0",
42
+ "@platformatic/sql-graphql": "3.22.0",
43
+ "@platformatic/service": "3.22.0",
44
+ "@platformatic/wattpm-pprof-capture": "3.22.0",
45
+ "@platformatic/sql-mapper": "3.22.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/itc": "3.20.0",
75
- "@platformatic/foundation": "3.20.0",
76
- "@platformatic/generators": "3.20.0",
77
- "@platformatic/metrics": "3.20.0",
78
- "@platformatic/basic": "3.20.0",
79
- "@platformatic/telemetry": "3.20.0"
74
+ "@platformatic/foundation": "3.22.0",
75
+ "@platformatic/generators": "3.22.0",
76
+ "@platformatic/itc": "3.22.0",
77
+ "@platformatic/telemetry": "3.22.0",
78
+ "@platformatic/metrics": "3.22.0",
79
+ "@platformatic/basic": "3.22.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.20.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.22.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Runtime Config",
5
5
  "type": "object",
@@ -225,8 +225,7 @@
225
225
  "type": "string"
226
226
  },
227
227
  "sourceMaps": {
228
- "type": "boolean",
229
- "default": false
228
+ "type": "boolean"
230
229
  },
231
230
  "packageManager": {
232
231
  "type": "string",
@@ -518,8 +517,7 @@
518
517
  "type": "string"
519
518
  },
520
519
  "sourceMaps": {
521
- "type": "boolean",
522
- "default": false
520
+ "type": "boolean"
523
521
  },
524
522
  "packageManager": {
525
523
  "type": "string",
@@ -809,8 +807,7 @@
809
807
  "type": "string"
810
808
  },
811
809
  "sourceMaps": {
812
- "type": "boolean",
813
- "default": false
810
+ "type": "boolean"
814
811
  },
815
812
  "packageManager": {
816
813
  "type": "string",
@@ -1100,8 +1097,7 @@
1100
1097
  "type": "string"
1101
1098
  },
1102
1099
  "sourceMaps": {
1103
- "type": "boolean",
1104
- "default": false
1100
+ "type": "boolean"
1105
1101
  },
1106
1102
  "packageManager": {
1107
1103
  "type": "string",