@platformatic/runtime 3.49.0 → 3.50.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.
Files changed (3) hide show
  1. package/index.d.ts +21 -17
  2. package/package.json +19 -17
  3. package/schema.json +1 -1
package/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { BaseGenerator } from '@platformatic/generators'
4
4
  import { JSONSchemaType } from 'ajv'
5
5
  import * as colorette from 'colorette'
6
6
  import { Logger } from 'pino'
7
- import { PlatformaticRuntimeConfig } from './config'
7
+ import { PlatformaticRuntimeConfig } from './config.js'
8
8
 
9
9
  export type RuntimeConfiguration = Promise<Configuration<PlatformaticRuntimeConfig>>
10
10
 
@@ -48,21 +48,21 @@ export namespace errors {
48
48
  }
49
49
 
50
50
  export namespace symbols {
51
- export declare const kConfig: unique symbol
52
- export declare const kId: unique symbol
53
- export declare const kFullId: unique symbol
54
- export declare const kApplicationId: unique symbol
55
- export declare const kWorkerId: unique symbol
56
- export declare const kITC: unique symbol
57
- export declare const kHealthCheckTimer: unique symbol
58
- export declare const kHealthMetricsTimer: unique symbol
59
- export declare const kLastHealthCheckELU: unique symbol
60
- export declare const kLastWorkerScalerELU: unique symbol
61
- export declare const kWorkerStatus: unique symbol
62
- export declare const kWorkerHealthSignals: unique symbol
63
- export declare const kStderrMarker: string
64
- export declare const kInterceptors: unique symbol
65
- export declare const kWorkersBroadcast: unique symbol
51
+ export const kConfig: unique symbol
52
+ export const kId: unique symbol
53
+ export const kFullId: unique symbol
54
+ export const kApplicationId: unique symbol
55
+ export const kWorkerId: unique symbol
56
+ export const kITC: unique symbol
57
+ export const kHealthCheckTimer: unique symbol
58
+ export const kHealthMetricsTimer: unique symbol
59
+ export const kLastHealthCheckELU: unique symbol
60
+ export const kLastWorkerScalerELU: unique symbol
61
+ export const kWorkerStatus: unique symbol
62
+ export const kWorkerHealthSignals: unique symbol
63
+ export const kStderrMarker: string
64
+ export const kInterceptors: unique symbol
65
+ export const kWorkersBroadcast: unique symbol
66
66
  }
67
67
 
68
68
  export interface InjectParams {
@@ -165,6 +165,10 @@ export function create (
165
165
 
166
166
  export declare function prepareApplication (config: RuntimeConfiguration, application: object): object
167
167
 
168
- export declare function transform (config: RuntimeConfiguration): Promise<RuntimeConfiguration>
168
+ export declare function transform (
169
+ config: RuntimeConfiguration,
170
+ schema?: object,
171
+ context?: ConfigurationOptions
172
+ ): Promise<RuntimeConfiguration>
169
173
 
170
174
  export declare function loadApplicationsCommands (): Promise<ApplicationsCommands>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "3.49.0",
3
+ "version": "3.50.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "eslint": "9",
26
26
  "execa": "^9.0.0",
27
27
  "express": "^4.18.3",
28
- "fast-jwt": "^5.0.0",
28
+ "fast-jwt": "^6.0.0",
29
29
  "get-port": "^7.1.0",
30
30
  "inspector-client": "^0.2.0",
31
31
  "json-schema-to-typescript": "^15.0.0",
@@ -35,14 +35,14 @@
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/gateway": "3.49.0",
39
- "@platformatic/node": "3.49.0",
40
- "@platformatic/service": "3.49.0",
41
- "@platformatic/db": "3.49.0",
42
- "@platformatic/composer": "3.49.0",
43
- "@platformatic/sql-graphql": "3.49.0",
44
- "@platformatic/sql-mapper": "3.49.0",
45
- "@platformatic/wattpm-pprof-capture": "3.49.0"
38
+ "@platformatic/composer": "3.50.0",
39
+ "@platformatic/db": "3.50.0",
40
+ "@platformatic/node": "3.50.0",
41
+ "@platformatic/gateway": "3.50.0",
42
+ "@platformatic/service": "3.50.0",
43
+ "@platformatic/sql-graphql": "3.50.0",
44
+ "@platformatic/sql-mapper": "3.50.0",
45
+ "@platformatic/wattpm-pprof-capture": "3.50.0"
46
46
  },
47
47
  "dependencies": {
48
48
  "@fastify/accepts": "^5.0.0",
@@ -69,26 +69,28 @@
69
69
  "semgrator": "^0.3.0",
70
70
  "sonic-boom": "^4.2.0",
71
71
  "systeminformation": "^5.27.11",
72
+ "tstyche": "^6.2.0",
72
73
  "undici": "^7.0.0",
73
74
  "undici-thread-interceptor": "^1.3.1",
74
75
  "ws": "^8.16.0",
75
- "@platformatic/basic": "3.49.0",
76
- "@platformatic/foundation": "3.49.0",
77
- "@platformatic/generators": "3.49.0",
78
- "@platformatic/itc": "3.49.0",
79
- "@platformatic/metrics": "3.49.0",
80
- "@platformatic/telemetry": "3.49.0"
76
+ "@platformatic/foundation": "3.50.0",
77
+ "@platformatic/itc": "3.50.0",
78
+ "@platformatic/generators": "3.50.0",
79
+ "@platformatic/metrics": "3.50.0",
80
+ "@platformatic/basic": "3.50.0",
81
+ "@platformatic/telemetry": "3.50.0"
81
82
  },
82
83
  "engines": {
83
84
  "node": ">=22.19.0"
84
85
  },
85
86
  "scripts": {
86
- "test": "npm run test:main && npm run test:api && npm run test:cli && npm run test:start && npm run test:multiple-workers",
87
+ "test": "npm run test:types && npm run test:main && npm run test:api && npm run test:cli && npm run test:start && npm run test:multiple-workers",
87
88
  "test:main": "node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js test/versions/*.test.js",
88
89
  "test:api": "node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/api/*.test.js test/management-api/*.test.js",
89
90
  "test:cli": "node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/cli/*.test.js test/cli/**/*.test.js",
90
91
  "test:start": "node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/start/*.test.js",
91
92
  "test:multiple-workers": "node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/multiple-workers/*.test.js",
93
+ "test:types": "tstyche",
92
94
  "gen-schema": "node lib/schema.js > schema.json",
93
95
  "gen-types": "json2ts > config.d.ts < schema.json",
94
96
  "build": "npm run gen-schema && npm run gen-types",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.49.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.50.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Runtime Config",
5
5
  "type": "object",