@platformatic/service 2.74.3 → 2.75.0-alpha.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 +1 -0
- package/lib/generator/README.md +3 -3
- package/lib/stackable.js +7 -0
- package/package.json +11 -11
- package/schema.json +6 -2
package/config.d.ts
CHANGED
package/lib/generator/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Platformatic Service API
|
|
2
2
|
|
|
3
|
-
This is a generated [Platformatic Service](https://docs.platformatic.dev/docs/service/overview) application.
|
|
3
|
+
This is a generated [Platformatic Service](https://docs.platformatic.dev/docs/reference/service/overview) application.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
|
-
Platformatic supports macOS, Linux and Windows ([WSL](https://
|
|
8
|
-
You'll need to have [Node.js](https://nodejs.org/)
|
|
7
|
+
Platformatic supports macOS, Linux and Windows ([WSL](https://learn.microsoft.com/en-us/windows/wsl/) recommended).
|
|
8
|
+
You'll need to have [Node.js](https://nodejs.org/) (v20.16.0+ or v22.3.0+)
|
|
9
9
|
|
|
10
10
|
## Setup
|
|
11
11
|
|
package/lib/stackable.js
CHANGED
|
@@ -356,6 +356,13 @@ class ServiceStackable {
|
|
|
356
356
|
globalThis.platformatic.onHttpStatsSize = (url, val) => {
|
|
357
357
|
httpStatsSizeMetric.set({ dispatcher_stats_url: url }, val)
|
|
358
358
|
}
|
|
359
|
+
|
|
360
|
+
const activeResourcesEventLoopMetric = new client.Gauge({
|
|
361
|
+
name: 'active_resources_event_loop',
|
|
362
|
+
help: 'Number of active resources keeping the event loop alive',
|
|
363
|
+
registers: [registry]
|
|
364
|
+
})
|
|
365
|
+
globalThis.platformatic.onActiveResourcesEventLoop = (val) => activeResourcesEventLoopMetric.set(val)
|
|
359
366
|
}
|
|
360
367
|
|
|
361
368
|
#updateConfig () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.75.0-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"self-cert": "^2.0.0",
|
|
30
30
|
"split2": "^4.2.0",
|
|
31
31
|
"strip-ansi": "^7.1.0",
|
|
32
|
-
"tsd": "^0.
|
|
32
|
+
"tsd": "^0.33.0",
|
|
33
33
|
"typescript": "^5.5.4",
|
|
34
34
|
"undici": "7.11.0",
|
|
35
35
|
"vscode-json-languageservice": "^5.3.9",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@fastify/static": "^8.0.0",
|
|
47
47
|
"@fastify/swagger": "^9.0.0",
|
|
48
48
|
"@fastify/under-pressure": "^9.0.0",
|
|
49
|
-
"@scalar/fastify-api-reference": "1.
|
|
49
|
+
"@scalar/fastify-api-reference": "1.34.4",
|
|
50
50
|
"@types/ws": "^8.5.10",
|
|
51
51
|
"ajv": "^8.12.0",
|
|
52
52
|
"cli-progress": "^3.12.0",
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
"rfdc": "^1.3.1",
|
|
76
76
|
"semgrator": "^0.3.0",
|
|
77
77
|
"undici": "^7.0.0",
|
|
78
|
-
"@platformatic/client": "2.
|
|
79
|
-
"@platformatic/
|
|
80
|
-
"@platformatic/generators": "2.
|
|
81
|
-
"@platformatic/
|
|
82
|
-
"@platformatic/
|
|
83
|
-
"@platformatic/telemetry": "2.
|
|
84
|
-
"@platformatic/
|
|
85
|
-
"@platformatic/
|
|
78
|
+
"@platformatic/client": "2.75.0-alpha.1",
|
|
79
|
+
"@platformatic/config": "2.75.0-alpha.1",
|
|
80
|
+
"@platformatic/generators": "2.75.0-alpha.1",
|
|
81
|
+
"@platformatic/metrics": "2.75.0-alpha.1",
|
|
82
|
+
"@platformatic/scalar-theme": "2.75.0-alpha.1",
|
|
83
|
+
"@platformatic/telemetry": "2.75.0-alpha.1",
|
|
84
|
+
"@platformatic/ts-compiler": "2.75.0-alpha.1",
|
|
85
|
+
"@platformatic/utils": "2.75.0-alpha.1"
|
|
86
86
|
},
|
|
87
87
|
"scripts": {
|
|
88
88
|
"test": "pnpm run lint && borp -T --concurrency=1 --timeout=1200000 && tsd",
|
package/schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/service/2.
|
|
3
|
-
"version": "2.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/service/2.75.0-alpha.1.json",
|
|
3
|
+
"version": "2.75.0-alpha.1",
|
|
4
4
|
"title": "Platformatic Service",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -1458,6 +1458,10 @@
|
|
|
1458
1458
|
}
|
|
1459
1459
|
]
|
|
1460
1460
|
},
|
|
1461
|
+
"exitOnUnhandledErrors": {
|
|
1462
|
+
"default": true,
|
|
1463
|
+
"type": "boolean"
|
|
1464
|
+
},
|
|
1461
1465
|
"gracefulShutdown": {
|
|
1462
1466
|
"type": "object",
|
|
1463
1467
|
"properties": {
|