@platformatic/foundation 3.61.1 → 3.62.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 (2) hide show
  1. package/lib/schema.js +46 -0
  2. package/package.json +2 -2
package/lib/schema.js CHANGED
@@ -96,6 +96,37 @@ export const preload = {
96
96
  ]
97
97
  }
98
98
 
99
+ const extension = {
100
+ anyOf: [
101
+ { type: 'string', resolvePath: true },
102
+ {
103
+ type: 'object',
104
+ additionalProperties: false,
105
+ required: ['path'],
106
+ properties: {
107
+ path: {
108
+ type: 'string',
109
+ resolvePath: true
110
+ },
111
+ options: {
112
+ type: 'object',
113
+ additionalProperties: true
114
+ }
115
+ }
116
+ }
117
+ ]
118
+ }
119
+
120
+ export const extensions = {
121
+ anyOf: [
122
+ ...extension.anyOf,
123
+ {
124
+ type: 'array',
125
+ items: extension
126
+ }
127
+ ]
128
+ }
129
+
99
130
  export const watch = {
100
131
  type: 'object',
101
132
  properties: {
@@ -619,6 +650,8 @@ export const health = {
619
650
  gracePeriod: overridableValue({ type: 'number', minimum: 0 }, 30000),
620
651
  maxUnhealthyChecks: overridableValue({ type: 'number', minimum: 1 }, 10),
621
652
  maxELU: overridableValue({ type: 'number', minimum: 0, maximum: 1 }, 0.99),
653
+ maxEventLoopDelay: overridableValue({ type: 'number', minimum: 0 }),
654
+ maxEventLoopDelayP99: overridableValue({ type: 'number', minimum: 0 }),
622
655
  maxHeapUsed: overridableValue({ type: 'number', minimum: 0, maximum: 1 }, 0.99),
623
656
  maxHeapTotal: overridableValue({ type: 'number', minimum: 0 }, 4 * Math.pow(1024, 3)), // 4GB
624
657
  maxYoungGeneration: overridableValue({ type: 'number', minimum: 0 }, 128 * Math.pow(1024, 2)), // 128MB,
@@ -873,6 +906,17 @@ export const application = {
873
906
  ]
874
907
  },
875
908
  health: { ...healthWithoutDefaults },
909
+ restartOnError: {
910
+ description:
911
+ 'Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.',
912
+ anyOf: [
913
+ { type: 'boolean' },
914
+ {
915
+ type: 'number',
916
+ minimum: 0
917
+ }
918
+ ]
919
+ },
876
920
  dependencies: {
877
921
  type: 'array',
878
922
  items: {
@@ -997,6 +1041,7 @@ export const runtimeProperties = {
997
1041
  type: 'string'
998
1042
  },
999
1043
  preload,
1044
+ extensions,
1000
1045
  entrypoint: {
1001
1046
  type: 'string'
1002
1047
  },
@@ -1594,6 +1639,7 @@ export const schemaComponents = {
1594
1639
  env,
1595
1640
  workers,
1596
1641
  preload,
1642
+ extensions,
1597
1643
  watch,
1598
1644
  cors,
1599
1645
  logger,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/foundation",
3
- "version": "3.61.1",
3
+ "version": "3.62.0",
4
4
  "description": "Platformatic Foundation",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "pino": "^9.9.0",
43
43
  "pino-test": "^1.0.1",
44
44
  "tstyche": "^6.2.0",
45
- "typescript": "^5.5.4"
45
+ "typescript": "^5.9.3"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=22.19.0"