@platformatic/gateway 3.5.1 → 3.6.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
@@ -389,6 +389,7 @@ export interface PlatformaticGatewayConfig {
389
389
  [k: string]: unknown;
390
390
  }[];
391
391
  workers?: number | string;
392
+ workersRestartDelay?: number | string;
392
393
  logger?: {
393
394
  level: (
394
395
  | ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
package/lib/capability.js CHANGED
@@ -62,12 +62,12 @@ export class GatewayCapability extends ServiceCapability {
62
62
  }
63
63
 
64
64
  if (unstarted.size > 0) {
65
- globalThis[kITC].notify('event', { event: 'unhealthy' })
65
+ globalThis.platformatic.events.emitAndNotify('unhealthy')
66
66
  return false
67
67
  }
68
68
  }
69
69
 
70
- globalThis[kITC].notify('event', { event: 'healthy' })
70
+ globalThis.platformatic.events.emitAndNotify('healthy')
71
71
  return true
72
72
  }
73
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/gateway",
3
- "version": "3.5.1",
3
+ "version": "3.6.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "typescript": "^5.5.4",
34
34
  "why-is-node-running": "2",
35
35
  "ws": "^8.16.0",
36
- "@platformatic/db": "3.5.1"
36
+ "@platformatic/db": "3.6.0"
37
37
  },
38
38
  "dependencies": {
39
39
  "@fastify/error": "^4.0.0",
@@ -64,11 +64,11 @@
64
64
  "rfdc": "^1.3.1",
65
65
  "semgrator": "^0.3.0",
66
66
  "undici": "^7.0.0",
67
- "@platformatic/foundation": "^3.5.1",
68
- "@platformatic/scalar-theme": "3.5.1",
69
- "@platformatic/telemetry": "3.5.1",
70
- "@platformatic/service": "3.5.1",
71
- "@platformatic/basic": "3.5.1"
67
+ "@platformatic/basic": "3.6.0",
68
+ "@platformatic/scalar-theme": "3.6.0",
69
+ "@platformatic/foundation": "^3.6.0",
70
+ "@platformatic/service": "3.6.0",
71
+ "@platformatic/telemetry": "3.6.0"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.5.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.6.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Gateway Config",
5
5
  "type": "object",
@@ -1524,6 +1524,18 @@
1524
1524
  ],
1525
1525
  "default": 1
1526
1526
  },
1527
+ "workersRestartDelay": {
1528
+ "anyOf": [
1529
+ {
1530
+ "type": "number",
1531
+ "minimum": 0
1532
+ },
1533
+ {
1534
+ "type": "string"
1535
+ }
1536
+ ],
1537
+ "default": 0
1538
+ },
1527
1539
  "logger": {
1528
1540
  "type": "object",
1529
1541
  "properties": {