@platformatic/node 3.0.0-alpha.6 → 3.0.0-rc.1

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
@@ -202,6 +202,7 @@ export interface PlatformaticNodeJsConfig {
202
202
  };
203
203
  startTimeout?: number;
204
204
  restartOnError?: boolean | number;
205
+ exitOnUnhandledErrors?: boolean;
205
206
  gracefulShutdown?: {
206
207
  runtime: number | string;
207
208
  application: number | string;
package/lib/capability.js CHANGED
@@ -194,6 +194,8 @@ export class NodeCapability extends BaseCapability {
194
194
  }
195
195
 
196
196
  async stop () {
197
+ await super.stop()
198
+
197
199
  if (this.childManager) {
198
200
  return this.stopCommand()
199
201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/node",
3
- "version": "3.0.0-alpha.6",
3
+ "version": "3.0.0-rc.1",
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.0.0-alpha.6",
21
- "@platformatic/generators": "3.0.0-alpha.6",
22
- "@platformatic/foundation": "3.0.0-alpha.6"
20
+ "@platformatic/basic": "3.0.0-rc.1",
21
+ "@platformatic/foundation": "3.0.0-rc.1",
22
+ "@platformatic/generators": "3.0.0-rc.1"
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.0.0-alpha.6",
35
- "@platformatic/service": "3.0.0-alpha.6"
34
+ "@platformatic/gateway": "3.0.0-rc.1",
35
+ "@platformatic/service": "3.0.0-rc.1"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=22.18.0"
@@ -41,7 +41,7 @@
41
41
  "test": "node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js test/**/*.test.js",
42
42
  "gen-schema": "node lib/schema.js > schema.json",
43
43
  "gen-types": "json2ts > config.d.ts < schema.json",
44
- "build": "pnpm run gen-schema && pnpm run gen-types",
44
+ "build": "npm run gen-schema && npm run gen-types",
45
45
  "lint": "eslint"
46
46
  }
47
47
  }
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/node/3.0.0-alpha.6.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/node/3.0.0-rc.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Node.js Config",
5
5
  "type": "object",
@@ -533,6 +533,13 @@
533
533
  },
534
534
  "additionalProperties": false
535
535
  },
536
+ "dependencies": {
537
+ "type": "array",
538
+ "items": {
539
+ "type": "string"
540
+ },
541
+ "default": []
542
+ },
536
543
  "arguments": {
537
544
  "type": "array",
538
545
  "items": {
@@ -914,6 +921,10 @@
914
921
  }
915
922
  ]
916
923
  },
924
+ "exitOnUnhandledErrors": {
925
+ "default": true,
926
+ "type": "boolean"
927
+ },
917
928
  "gracefulShutdown": {
918
929
  "type": "object",
919
930
  "properties": {