@platformatic/composer 3.10.0 → 3.12.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
@@ -466,12 +466,13 @@ export interface PlatformaticComposerConfig {
466
466
  verticalScaler?: {
467
467
  enabled?: boolean;
468
468
  maxTotalWorkers?: number;
469
+ maxTotalMemory?: number;
469
470
  minWorkers?: number;
470
471
  maxWorkers?: number;
471
472
  scaleUpELU?: number;
472
473
  scaleDownELU?: number;
473
- minELUDiff?: number;
474
474
  timeWindowSec?: number;
475
+ scaleDownTimeWindowSec?: number;
475
476
  cooldownSec?: number;
476
477
  scaleIntervalSec?: number;
477
478
  gracePeriod?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/composer",
3
- "version": "3.10.0",
3
+ "version": "3.12.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "json-schema-to-typescript": "^15.0.0"
24
24
  },
25
25
  "dependencies": {
26
- "@platformatic/foundation": "3.10.0",
27
- "@platformatic/gateway": "3.10.0"
26
+ "@platformatic/foundation": "3.12.0",
27
+ "@platformatic/gateway": "3.12.0"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/composer/3.10.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/composer/3.12.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Composer Config",
5
5
  "type": "object",
@@ -1879,6 +1879,10 @@
1879
1879
  "type": "number",
1880
1880
  "minimum": 1
1881
1881
  },
1882
+ "maxTotalMemory": {
1883
+ "type": "number",
1884
+ "minimum": 0
1885
+ },
1882
1886
  "minWorkers": {
1883
1887
  "type": "number",
1884
1888
  "minimum": 1
@@ -1897,12 +1901,11 @@
1897
1901
  "minimum": 0,
1898
1902
  "maximum": 1
1899
1903
  },
1900
- "minELUDiff": {
1904
+ "timeWindowSec": {
1901
1905
  "type": "number",
1902
- "minimum": 0,
1903
- "maximum": 1
1906
+ "minimum": 0
1904
1907
  },
1905
- "timeWindowSec": {
1908
+ "scaleDownTimeWindowSec": {
1906
1909
  "type": "number",
1907
1910
  "minimum": 0
1908
1911
  },
@@ -2037,6 +2040,34 @@
2037
2040
  "callbackUrl"
2038
2041
  ]
2039
2042
  }
2043
+ },
2044
+ "policies": {
2045
+ "type": "object",
2046
+ "properties": {
2047
+ "deny": {
2048
+ "type": "object",
2049
+ "patternProperties": {
2050
+ "^.*$": {
2051
+ "oneOf": [
2052
+ {
2053
+ "type": "string"
2054
+ },
2055
+ {
2056
+ "type": "array",
2057
+ "items": {
2058
+ "type": "string"
2059
+ },
2060
+ "minItems": 1
2061
+ }
2062
+ ]
2063
+ }
2064
+ }
2065
+ }
2066
+ },
2067
+ "required": [
2068
+ "deny"
2069
+ ],
2070
+ "additionalProperties": false
2040
2071
  }
2041
2072
  },
2042
2073
  "additionalProperties": false