@platformatic/node 3.5.0 → 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
@@ -118,6 +118,7 @@ export interface PlatformaticNodeJsConfig {
118
118
  [k: string]: unknown;
119
119
  }[];
120
120
  workers?: number | string;
121
+ workersRestartDelay?: number | string;
121
122
  logger?: {
122
123
  level: (
123
124
  | ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
package/lib/capability.js CHANGED
@@ -199,7 +199,7 @@ export class NodeCapability extends BaseCapability {
199
199
  if (this.childManager) {
200
200
  return this.stopCommand()
201
201
  // This is needed if the capability was subclassed
202
- } else if (!this.#server) {
202
+ } else if (!this.#server && !this.#app) {
203
203
  return
204
204
  }
205
205
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/node",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "Platformatic Node.js Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -17,9 +17,9 @@
17
17
  "dependencies": {
18
18
  "json5": "^2.2.3",
19
19
  "light-my-request": "^6.0.0",
20
- "@platformatic/basic": "3.5.0",
21
- "@platformatic/generators": "3.5.0",
22
- "@platformatic/foundation": "3.5.0"
20
+ "@platformatic/basic": "3.6.0",
21
+ "@platformatic/generators": "3.6.0",
22
+ "@platformatic/foundation": "3.6.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "cleaner-spec-reporter": "^0.5.0",
@@ -31,8 +31,8 @@
31
31
  "neostandard": "^0.12.0",
32
32
  "tsx": "^4.19.0",
33
33
  "typescript": "^5.5.4",
34
- "@platformatic/gateway": "3.5.0",
35
- "@platformatic/service": "3.5.0"
34
+ "@platformatic/gateway": "3.6.0",
35
+ "@platformatic/service": "3.6.0"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/node/3.5.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/node/3.6.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Node.js Config",
5
5
  "type": "object",
@@ -634,6 +634,18 @@
634
634
  ],
635
635
  "default": 1
636
636
  },
637
+ "workersRestartDelay": {
638
+ "anyOf": [
639
+ {
640
+ "type": "number",
641
+ "minimum": 0
642
+ },
643
+ {
644
+ "type": "string"
645
+ }
646
+ ],
647
+ "default": 0
648
+ },
637
649
  "logger": {
638
650
  "type": "object",
639
651
  "properties": {