@platformatic/basic 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
@@ -301,12 +301,13 @@ export interface PlatformaticBasicConfig {
301
301
  verticalScaler?: {
302
302
  enabled?: boolean;
303
303
  maxTotalWorkers?: number;
304
+ maxTotalMemory?: number;
304
305
  minWorkers?: number;
305
306
  maxWorkers?: number;
306
307
  scaleUpELU?: number;
307
308
  scaleDownELU?: number;
308
- minELUDiff?: number;
309
309
  timeWindowSec?: number;
310
+ scaleDownTimeWindowSec?: number;
310
311
  cooldownSec?: number;
311
312
  scaleIntervalSec?: number;
312
313
  gracePeriod?: number;
@@ -341,6 +342,15 @@ export interface PlatformaticBasicConfig {
341
342
  maxRetries?: number;
342
343
  [k: string]: unknown;
343
344
  }[];
345
+ policies?: {
346
+ deny: {
347
+ /**
348
+ * This interface was referenced by `undefined`'s JSON-Schema definition
349
+ * via the `patternProperty` "^.*$".
350
+ */
351
+ [k: string]: string | [string, ...string[]];
352
+ };
353
+ };
344
354
  };
345
355
  [k: string]: unknown;
346
356
  }
package/lib/capability.js CHANGED
@@ -425,6 +425,7 @@ export class BaseCapability extends EventEmitter {
425
425
  } finally {
426
426
  await this.childManager?.eject()
427
427
  await this.childManager?.close()
428
+ this.childManager = null
428
429
  }
429
430
  }
430
431
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/basic",
3
- "version": "3.10.0",
3
+ "version": "3.12.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -25,10 +25,10 @@
25
25
  "split2": "^4.2.0",
26
26
  "undici": "^7.0.0",
27
27
  "ws": "^8.18.0",
28
- "@platformatic/foundation": "3.10.0",
29
- "@platformatic/itc": "3.10.0",
30
- "@platformatic/metrics": "3.10.0",
31
- "@platformatic/telemetry": "3.10.0"
28
+ "@platformatic/foundation": "3.12.0",
29
+ "@platformatic/itc": "3.12.0",
30
+ "@platformatic/metrics": "3.12.0",
31
+ "@platformatic/telemetry": "3.12.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "cleaner-spec-reporter": "^0.5.0",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.10.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.12.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Basic Config",
5
5
  "type": "object",
@@ -1219,6 +1219,10 @@
1219
1219
  "type": "number",
1220
1220
  "minimum": 1
1221
1221
  },
1222
+ "maxTotalMemory": {
1223
+ "type": "number",
1224
+ "minimum": 0
1225
+ },
1222
1226
  "minWorkers": {
1223
1227
  "type": "number",
1224
1228
  "minimum": 1
@@ -1237,12 +1241,11 @@
1237
1241
  "minimum": 0,
1238
1242
  "maximum": 1
1239
1243
  },
1240
- "minELUDiff": {
1244
+ "timeWindowSec": {
1241
1245
  "type": "number",
1242
- "minimum": 0,
1243
- "maximum": 1
1246
+ "minimum": 0
1244
1247
  },
1245
- "timeWindowSec": {
1248
+ "scaleDownTimeWindowSec": {
1246
1249
  "type": "number",
1247
1250
  "minimum": 0
1248
1251
  },
@@ -1377,6 +1380,34 @@
1377
1380
  "callbackUrl"
1378
1381
  ]
1379
1382
  }
1383
+ },
1384
+ "policies": {
1385
+ "type": "object",
1386
+ "properties": {
1387
+ "deny": {
1388
+ "type": "object",
1389
+ "patternProperties": {
1390
+ "^.*$": {
1391
+ "oneOf": [
1392
+ {
1393
+ "type": "string"
1394
+ },
1395
+ {
1396
+ "type": "array",
1397
+ "items": {
1398
+ "type": "string"
1399
+ },
1400
+ "minItems": 1
1401
+ }
1402
+ ]
1403
+ }
1404
+ }
1405
+ }
1406
+ },
1407
+ "required": [
1408
+ "deny"
1409
+ ],
1410
+ "additionalProperties": false
1380
1411
  }
1381
1412
  },
1382
1413
  "additionalProperties": false