@platformatic/service 3.48.0 → 3.49.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/index.d.ts CHANGED
@@ -8,8 +8,9 @@ import type { PlatformaticServiceConfig } from './config.d.ts'
8
8
  export type { PlatformaticServiceConfig } from './config.d.ts'
9
9
 
10
10
  export interface ServiceContext extends BaseContext {
11
- applicationFactory?: typeof platformaticService
11
+ applicationFactory?: (app: FastifyInstance, capability: ServiceCapability) => Promise<void>
12
12
  fastifyPlugins?: Function[]
13
+ loggerConfig?: object
13
14
  }
14
15
 
15
16
  export interface PlatformaticApplication<Config> {
@@ -22,7 +23,11 @@ export type ServerInstance<Configuration = PlatformaticServiceConfig> = FastifyI
22
23
 
23
24
  export type ServiceConfiguration<T = {}> = Configuration<PlatformaticServiceConfig & T>
24
25
 
25
- export declare function transform (config: ServiceConfiguration): Promise<ServiceConfiguration>
26
+ export declare function transform (
27
+ config: ServiceConfiguration,
28
+ schema?: object,
29
+ options?: ConfigurationOptions
30
+ ): Promise<ServiceConfiguration>
26
31
 
27
32
  export declare function loadConfiguration (
28
33
  root: string | PlatformaticServiceConfig,
@@ -68,6 +73,10 @@ export declare class ServiceCapability<Config = PlatformaticServiceConfig> exten
68
73
  Config,
69
74
  BaseOptions<ServiceContext>
70
75
  > {
76
+ applicationFactory: (app: FastifyInstance, capability: ServiceCapability) => Promise<void>
77
+ fastifyOptions?: Record<string, unknown>
78
+ loggerConfig?: object
79
+
71
80
  constructor (root: string, config: Config, context?: object)
72
81
  getApplication (): FastifyInstance
73
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "3.48.0",
3
+ "version": "3.49.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -67,12 +67,12 @@
67
67
  "rfdc": "^1.3.1",
68
68
  "semgrator": "^0.3.0",
69
69
  "undici": "^7.0.0",
70
- "@platformatic/generators": "3.48.0",
71
- "@platformatic/scalar-theme": "3.48.0",
72
- "@platformatic/metrics": "3.48.0",
73
- "@platformatic/foundation": "3.48.0",
74
- "@platformatic/telemetry": "3.48.0",
75
- "@platformatic/basic": "3.48.0"
70
+ "@platformatic/basic": "3.49.1",
71
+ "@platformatic/metrics": "3.49.1",
72
+ "@platformatic/generators": "3.49.1",
73
+ "@platformatic/scalar-theme": "3.49.1",
74
+ "@platformatic/telemetry": "3.49.1",
75
+ "@platformatic/foundation": "3.49.1"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/service/3.48.0.json",
3
- "version": "3.48.0",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/3.49.1.json",
3
+ "version": "3.49.1",
4
4
  "title": "Platformatic Service Config",
5
5
  "type": "object",
6
6
  "properties": {