@platformatic/service 2.74.3 → 2.75.0-alpha.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.
@@ -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://docs.microsoft.com/windows/wsl/) recommended).
8
- You'll need to have [Node.js](https://nodejs.org/) >= v18.8.0 or >= v20.6.0
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.74.3",
3
+ "version": "2.75.0-alpha.0",
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.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.32.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.74.3",
79
- "@platformatic/metrics": "2.74.3",
80
- "@platformatic/generators": "2.74.3",
81
- "@platformatic/scalar-theme": "2.74.3",
82
- "@platformatic/config": "2.74.3",
83
- "@platformatic/telemetry": "2.74.3",
84
- "@platformatic/utils": "2.74.3",
85
- "@platformatic/ts-compiler": "2.74.3"
78
+ "@platformatic/client": "2.75.0-alpha.0",
79
+ "@platformatic/config": "2.75.0-alpha.0",
80
+ "@platformatic/generators": "2.75.0-alpha.0",
81
+ "@platformatic/scalar-theme": "2.75.0-alpha.0",
82
+ "@platformatic/metrics": "2.75.0-alpha.0",
83
+ "@platformatic/utils": "2.75.0-alpha.0",
84
+ "@platformatic/ts-compiler": "2.75.0-alpha.0",
85
+ "@platformatic/telemetry": "2.75.0-alpha.0"
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.74.3.json",
3
- "version": "2.74.3",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/2.75.0-alpha.0.json",
3
+ "version": "2.75.0-alpha.0",
4
4
  "title": "Platformatic Service",
5
5
  "type": "object",
6
6
  "properties": {