@platformatic/service 3.47.0 → 3.49.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/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> {
@@ -68,6 +69,10 @@ export declare class ServiceCapability<Config = PlatformaticServiceConfig> exten
68
69
  Config,
69
70
  BaseOptions<ServiceContext>
70
71
  > {
72
+ applicationFactory: (app: FastifyInstance, capability: ServiceCapability) => Promise<void>
73
+ fastifyOptions?: Record<string, unknown>
74
+ loggerConfig?: object
75
+
71
76
  constructor (root: string, config: Config, context?: object)
72
77
  getApplication (): FastifyInstance
73
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "3.47.0",
3
+ "version": "3.49.0",
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/basic": "3.47.0",
71
- "@platformatic/foundation": "3.47.0",
72
- "@platformatic/generators": "3.47.0",
73
- "@platformatic/scalar-theme": "3.47.0",
74
- "@platformatic/telemetry": "3.47.0",
75
- "@platformatic/metrics": "3.47.0"
70
+ "@platformatic/basic": "3.49.0",
71
+ "@platformatic/foundation": "3.49.0",
72
+ "@platformatic/metrics": "3.49.0",
73
+ "@platformatic/generators": "3.49.0",
74
+ "@platformatic/scalar-theme": "3.49.0",
75
+ "@platformatic/telemetry": "3.49.0"
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.47.0.json",
3
- "version": "3.47.0",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/3.49.0.json",
3
+ "version": "3.49.0",
4
4
  "title": "Platformatic Service Config",
5
5
  "type": "object",
6
6
  "properties": {