@platformatic/composer 2.75.0-alpha.0 → 2.75.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
@@ -494,6 +494,7 @@ export interface PlatformaticComposer {
494
494
  };
495
495
  startTimeout?: number;
496
496
  restartOnError?: boolean | number;
497
+ exitOnUnhandledErrors?: boolean;
497
498
  gracefulShutdown?: {
498
499
  runtime: number | string;
499
500
  service: number | string;
package/lib/stackable.js CHANGED
@@ -69,16 +69,16 @@ class ComposerStackable extends ServiceStackable {
69
69
  return true
70
70
  }
71
71
 
72
- const composedServices = this.#dependencies.map(dep => dep.id)
72
+ const unstarted = new Set(this.#dependencies.map(dep => dep.id))
73
73
  const workers = await globalThis[kITC].send('getWorkers')
74
74
 
75
75
  for (const worker of Object.values(workers)) {
76
- if (composedServices.includes(worker.service) && !worker.status.startsWith('start')) {
77
- return false
76
+ if (worker.status === 'started') {
77
+ unstarted.delete(worker.service)
78
78
  }
79
79
  }
80
80
 
81
- return true
81
+ return unstarted.size === 0
82
82
  }
83
83
 
84
84
  async #parseDependency (id, urlString) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/composer",
3
- "version": "2.75.0-alpha.0",
3
+ "version": "2.75.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -33,9 +33,9 @@
33
33
  "typescript": "^5.5.4",
34
34
  "why-is-node-running": "2",
35
35
  "ws": "^8.16.0",
36
- "@platformatic/client": "2.75.0-alpha.0",
37
- "@platformatic/config": "2.75.0-alpha.0",
38
- "@platformatic/db": "2.75.0-alpha.0"
36
+ "@platformatic/config": "2.75.0",
37
+ "@platformatic/client": "2.75.0",
38
+ "@platformatic/db": "2.75.0"
39
39
  },
40
40
  "dependencies": {
41
41
  "@fastify/error": "^4.0.0",
@@ -69,12 +69,12 @@
69
69
  "rfdc": "^1.3.1",
70
70
  "semgrator": "^0.3.0",
71
71
  "undici": "^7.0.0",
72
- "@platformatic/config": "2.75.0-alpha.0",
73
- "@platformatic/scalar-theme": "2.75.0-alpha.0",
74
- "@platformatic/generators": "2.75.0-alpha.0",
75
- "@platformatic/utils": "^2.75.0-alpha.0",
76
- "@platformatic/telemetry": "2.75.0-alpha.0",
77
- "@platformatic/service": "2.75.0-alpha.0"
72
+ "@platformatic/generators": "2.75.0",
73
+ "@platformatic/scalar-theme": "2.75.0",
74
+ "@platformatic/service": "2.75.0",
75
+ "@platformatic/utils": "^2.75.0",
76
+ "@platformatic/config": "2.75.0",
77
+ "@platformatic/telemetry": "2.75.0"
78
78
  },
79
79
  "scripts": {
80
80
  "test": "pnpm run lint && borp -T --timeout=1200000 -c 1 && tsd",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/composer/2.75.0-alpha.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/composer/2.75.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Composer",
5
5
  "type": "object",
@@ -1709,6 +1709,10 @@
1709
1709
  }
1710
1710
  ]
1711
1711
  },
1712
+ "exitOnUnhandledErrors": {
1713
+ "default": true,
1714
+ "type": "boolean"
1715
+ },
1712
1716
  "gracefulShutdown": {
1713
1717
  "type": "object",
1714
1718
  "properties": {