@platformatic/runtime 2.5.5 → 2.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
@@ -5,7 +5,7 @@
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
7
 
8
- export type HttpsSchemasPlatformaticDevPlatformaticRuntime255Json = {
8
+ export type HttpsSchemasPlatformaticDevPlatformaticRuntime260Json = {
9
9
  [k: string]: unknown;
10
10
  } & {
11
11
  $schema?: string;
@@ -22,6 +22,11 @@ async function managementApiPlugin (app, opts) {
22
22
 
23
23
  const runtime = opts.runtime
24
24
 
25
+ app.get('/status', async () => {
26
+ const status = runtime.getRuntimeStatus()
27
+ return { status }
28
+ })
29
+
25
30
  app.get('/metadata', async () => {
26
31
  return runtime.getRuntimeMetadata()
27
32
  })
package/lib/runtime.js CHANGED
@@ -202,6 +202,10 @@ class Runtime extends EventEmitter {
202
202
  return this.#url
203
203
  }
204
204
 
205
+ getRuntimeStatus () {
206
+ return this.#status
207
+ }
208
+
205
209
  async close (fromManagementApi = false, silent = false) {
206
210
  this.#updateStatus('closing')
207
211
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "2.5.5",
3
+ "version": "2.6.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -19,7 +19,7 @@
19
19
  "devDependencies": {
20
20
  "@fastify/express": "^4.0.0",
21
21
  "@fastify/formbody": "^8.0.0",
22
- "borp": "^0.17.0",
22
+ "borp": "^0.18.0",
23
23
  "c8": "^10.0.0",
24
24
  "eslint": "9",
25
25
  "execa": "^8.0.1",
@@ -35,11 +35,11 @@
35
35
  "typescript": "^5.5.4",
36
36
  "undici-oidc-interceptor": "^0.5.0",
37
37
  "why-is-node-running": "^2.2.2",
38
- "@platformatic/db": "2.5.5",
39
- "@platformatic/composer": "2.5.5",
40
- "@platformatic/sql-graphql": "2.5.5",
41
- "@platformatic/sql-mapper": "2.5.5",
42
- "@platformatic/service": "2.5.5"
38
+ "@platformatic/composer": "2.6.0",
39
+ "@platformatic/db": "2.6.0",
40
+ "@platformatic/service": "2.6.0",
41
+ "@platformatic/sql-graphql": "2.6.0",
42
+ "@platformatic/sql-mapper": "2.6.0"
43
43
  },
44
44
  "dependencies": {
45
45
  "@fastify/error": "^4.0.0",
@@ -70,13 +70,13 @@
70
70
  "undici": "^6.9.0",
71
71
  "undici-thread-interceptor": "^0.7.0",
72
72
  "ws": "^8.16.0",
73
- "@platformatic/basic": "2.5.5",
74
- "@platformatic/generators": "2.5.5",
75
- "@platformatic/itc": "2.5.5",
76
- "@platformatic/config": "2.5.5",
77
- "@platformatic/telemetry": "2.5.5",
78
- "@platformatic/ts-compiler": "2.5.5",
79
- "@platformatic/utils": "2.5.5"
73
+ "@platformatic/basic": "2.6.0",
74
+ "@platformatic/config": "2.6.0",
75
+ "@platformatic/generators": "2.6.0",
76
+ "@platformatic/itc": "2.6.0",
77
+ "@platformatic/telemetry": "2.6.0",
78
+ "@platformatic/ts-compiler": "2.6.0",
79
+ "@platformatic/utils": "2.6.0"
80
80
  },
81
81
  "scripts": {
82
82
  "test": "npm run lint && borp --concurrency=1 --timeout=180000 && tsd",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/runtime/2.5.5.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/runtime/2.6.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "type": "object",
5
5
  "properties": {