@platformatic/service 3.28.2 → 3.29.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/config.d.ts CHANGED
@@ -325,6 +325,8 @@ export interface PlatformaticServiceConfig {
325
325
  maxMemory?: number;
326
326
  cooldown?: number;
327
327
  gracePeriod?: number;
328
+ scaleUpELU?: number;
329
+ scaleDownELU?: number;
328
330
  [k: string]: unknown;
329
331
  };
330
332
  workersRestartDelay?: number | string;
@@ -657,13 +659,7 @@ export interface PlatformaticServiceConfig {
657
659
  maxWorkers?: number;
658
660
  cooldownSec?: number;
659
661
  gracePeriod?: number;
660
- /**
661
- * @deprecated
662
- */
663
662
  scaleUpELU?: number;
664
- /**
665
- * @deprecated
666
- */
667
663
  scaleDownELU?: number;
668
664
  /**
669
665
  * @deprecated
@@ -727,6 +723,8 @@ export interface PlatformaticServiceConfig {
727
723
  static?: number;
728
724
  minimum?: number;
729
725
  maximum?: number;
726
+ scaleUpELU?: number;
727
+ scaleDownELU?: number;
730
728
  [k: string]: unknown;
731
729
  };
732
730
  health?: {
package/lib/capability.js CHANGED
@@ -69,7 +69,7 @@ export class ServiceCapability extends BaseCapability {
69
69
  return this.url
70
70
  }
71
71
 
72
- await super._start()
72
+ await super._start({ listen })
73
73
 
74
74
  // Create the application if needed
75
75
  if (!this.#app) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "3.28.2",
3
+ "version": "3.29.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -67,12 +67,12 @@
67
67
  "rfdc": "^1.3.1",
68
68
  "semgrator": "^0.3.0",
69
69
  "undici": "^7.0.0",
70
- "@platformatic/basic": "3.28.2",
71
- "@platformatic/foundation": "3.28.2",
72
- "@platformatic/metrics": "3.28.2",
73
- "@platformatic/telemetry": "3.28.2",
74
- "@platformatic/scalar-theme": "3.28.2",
75
- "@platformatic/generators": "3.28.2"
70
+ "@platformatic/generators": "3.29.1",
71
+ "@platformatic/basic": "3.29.1",
72
+ "@platformatic/foundation": "3.29.1",
73
+ "@platformatic/scalar-theme": "3.29.1",
74
+ "@platformatic/metrics": "3.29.1",
75
+ "@platformatic/telemetry": "3.29.1"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/service/3.28.2.json",
3
- "version": "3.28.2",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/3.29.1.json",
3
+ "version": "3.29.1",
4
4
  "title": "Platformatic Service Config",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1080,6 +1080,16 @@
1080
1080
  "maximum": {
1081
1081
  "type": "number",
1082
1082
  "minimum": 0
1083
+ },
1084
+ "scaleUpELU": {
1085
+ "type": "number",
1086
+ "minimum": 0,
1087
+ "maximum": 1
1088
+ },
1089
+ "scaleDownELU": {
1090
+ "type": "number",
1091
+ "minimum": 0,
1092
+ "maximum": 1
1083
1093
  }
1084
1094
  }
1085
1095
  }
@@ -1359,6 +1369,16 @@
1359
1369
  "gracePeriod": {
1360
1370
  "type": "number",
1361
1371
  "minimum": 0
1372
+ },
1373
+ "scaleUpELU": {
1374
+ "type": "number",
1375
+ "minimum": 0,
1376
+ "maximum": 1
1377
+ },
1378
+ "scaleDownELU": {
1379
+ "type": "number",
1380
+ "minimum": 0,
1381
+ "maximum": 1
1362
1382
  }
1363
1383
  }
1364
1384
  }
@@ -2391,14 +2411,12 @@
2391
2411
  "scaleUpELU": {
2392
2412
  "type": "number",
2393
2413
  "minimum": 0,
2394
- "maximum": 1,
2395
- "deprecated": true
2414
+ "maximum": 1
2396
2415
  },
2397
2416
  "scaleDownELU": {
2398
2417
  "type": "number",
2399
2418
  "minimum": 0,
2400
- "maximum": 1,
2401
- "deprecated": true
2419
+ "maximum": 1
2402
2420
  },
2403
2421
  "timeWindowSec": {
2404
2422
  "type": "number",
@@ -2599,6 +2617,16 @@
2599
2617
  "maximum": {
2600
2618
  "type": "number",
2601
2619
  "minimum": 0
2620
+ },
2621
+ "scaleUpELU": {
2622
+ "type": "number",
2623
+ "minimum": 0,
2624
+ "maximum": 1
2625
+ },
2626
+ "scaleDownELU": {
2627
+ "type": "number",
2628
+ "minimum": 0,
2629
+ "maximum": 1
2602
2630
  }
2603
2631
  }
2604
2632
  }