@platformatic/gateway 3.14.0 → 3.15.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
@@ -485,6 +485,7 @@ export interface PlatformaticGatewayConfig {
485
485
  rejectUnauthorized?: boolean;
486
486
  };
487
487
  };
488
+ reuseTcpPorts?: boolean;
488
489
  startTimeout?: number;
489
490
  restartOnError?: boolean | number;
490
491
  exitOnUnhandledErrors?: boolean;
package/lib/capability.js CHANGED
@@ -36,12 +36,13 @@ export class GatewayCapability extends ServiceCapability {
36
36
  await super.init()
37
37
  }
38
38
 
39
- start () {
39
+ async start () {
40
40
  if (this.url) {
41
41
  return this.url
42
42
  }
43
43
 
44
- const url = super.start()
44
+ await super._start()
45
+ const url = await super.start()
45
46
 
46
47
  this.#runtimeEventHandler = this.#handleRuntimeEvent.bind(this)
47
48
  globalThis[kITC]?.on('runtime:event', this.#runtimeEventHandler)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/gateway",
3
- "version": "3.14.0",
3
+ "version": "3.15.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.14.0"
36
+ "@platformatic/db": "3.15.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/basic": "3.14.0",
68
- "@platformatic/foundation": "^3.14.0",
69
- "@platformatic/service": "3.14.0",
70
- "@platformatic/telemetry": "3.14.0",
71
- "@platformatic/scalar-theme": "3.14.0"
67
+ "@platformatic/foundation": "^3.15.0",
68
+ "@platformatic/basic": "3.15.0",
69
+ "@platformatic/scalar-theme": "3.15.0",
70
+ "@platformatic/service": "3.15.0",
71
+ "@platformatic/telemetry": "3.15.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.14.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.15.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Gateway Config",
5
5
  "type": "object",
@@ -1316,6 +1316,10 @@
1316
1316
  "useHttp": {
1317
1317
  "type": "boolean"
1318
1318
  },
1319
+ "reuseTcpPorts": {
1320
+ "type": "boolean",
1321
+ "default": true
1322
+ },
1319
1323
  "workers": {
1320
1324
  "anyOf": [
1321
1325
  {
@@ -1882,6 +1886,10 @@
1882
1886
  },
1883
1887
  "additionalProperties": false
1884
1888
  },
1889
+ "reuseTcpPorts": {
1890
+ "type": "boolean",
1891
+ "default": true
1892
+ },
1885
1893
  "startTimeout": {
1886
1894
  "default": 30000,
1887
1895
  "type": "number",